:root {
  --button-alignment-release: "20260726-button-alignment-os-955";
}

.button-alignment-os-ready :is(.launch-primary, .launch-secondary, .launch-soft-button, .primary-action, .secondary-action, .glass-action, .danger-action, button, [role="button"]) {
  box-sizing: border-box;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  font-weight: 520;
  letter-spacing: 0;
  line-height: 1.16;
  text-align: center;
  overflow-wrap: anywhere;
}

.button-alignment-os-ready :is(.launch-primary, .launch-secondary, .launch-soft-button, .primary-action, .secondary-action, .glass-action, .danger-action).gn-long-label,
.button-alignment-os-ready button.gn-long-label,
.button-alignment-os-ready [role="button"].gn-long-label {
  min-height: 46px;
  white-space: normal;
}

.button-alignment-os-ready :is(.launch-primary, .launch-secondary, .launch-soft-button, .primary-action, .secondary-action, .glass-action, .danger-action) > svg,
.button-alignment-os-ready button > svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.button-alignment-os-ready .launch-actions {
  min-width: 0;
}

.button-alignment-os-ready .launch-actions :is(a, button) {
  min-width: 0;
  white-space: normal;
}

.button-alignment-os-ready .booking-flow-controls,
.button-alignment-os-ready .launch-cta-row,
.button-alignment-os-ready .account-dialog-actions,
.button-alignment-os-ready .booking-handoff-actions,
.button-alignment-os-ready .provider-application-consents + .launch-primary,
.button-alignment-os-ready .test-guide-actions {
  align-items: center;
}

.button-alignment-os-ready .gn-button-overflow {
  outline: 2px solid #d53070;
  outline-offset: 2px;
}

.button-alignment-os-ready .launch-form .service-finder-card {
  grid-template-columns: 34px minmax(0, 1fr) minmax(64px, auto);
  justify-content: stretch;
  min-height: 88px;
  height: auto !important;
  padding: 11px;
  text-align: left;
  white-space: normal;
}

.button-alignment-os-ready .service-finder-copy {
  align-content: center;
  min-width: 0;
}

.button-alignment-os-ready .service-finder-copy strong {
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.button-alignment-os-ready .service-finder-state {
  justify-self: end;
  min-width: 64px;
  text-align: right;
  white-space: normal;
}

@media (max-width: 760px) {
  .button-alignment-os-ready .launch-header-inner {
    align-items: center;
  }

  .button-alignment-os-ready .launch-actions {
    grid-column: 1 / -1;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr)) !important;
    width: 100%;
    padding-right: 0 !important;
    gap: 8px;
  }

  .button-alignment-os-ready .launch-actions .launch-theme-toggle {
    position: fixed !important;
    top: calc(10px + env(safe-area-inset-top, 0px));
    right: calc(10px + env(safe-area-inset-right, 0px));
    z-index: 30;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0 !important;
    border-radius: 8px;
    box-shadow: 0 12px 26px rgba(68, 24, 46, 0.14);
  }

  .button-alignment-os-ready .launch-actions .launch-theme-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .button-alignment-os-ready .launch-actions a {
    display: inline-flex !important;
    width: 100%;
    min-height: 42px;
    padding-inline: 12px;
  }

  .button-alignment-os-ready .launch-cta-row,
  .button-alignment-os-ready .booking-flow-controls,
  .button-alignment-os-ready .account-dialog-actions,
  .button-alignment-os-ready .completion-actions,
  .button-alignment-os-ready .test-guide-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 8px;
  }

  .button-alignment-os-ready .launch-cta-row > *,
  .button-alignment-os-ready .booking-flow-controls > *,
  .button-alignment-os-ready .account-dialog-actions > *,
  .button-alignment-os-ready .completion-actions > *,
  .button-alignment-os-ready .test-guide-actions > * {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .button-alignment-os-ready .launch-actions {
    grid-template-columns: 1fr !important;
  }

  .button-alignment-os-ready .launch-actions a {
    grid-column: 1 / -1;
  }

  .button-alignment-os-ready .launch-form .service-finder-card {
    grid-template-columns: 32px minmax(0, 1fr);
    min-height: 94px;
  }

  .button-alignment-os-ready .service-finder-state {
    grid-column: 2;
    justify-self: start;
    min-width: 0;
    text-align: left;
  }
}
