.client-account-page {
  background: #f6f7f9;
  color: #111827;
  min-height: 100vh;
}

.client-account-page header {
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.client-account-page header::before {
  background: rgba(8,8,8,0.88);
}

.client-account-popup-page {
  background: transparent;
  display: block;
  min-height: auto;
}

.client-account-header {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px clamp(16px, 4vw, 48px);
}

.client-account-logo img {
  display: block;
  height: 52px;
  width: auto;
}

.client-account-nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.client-account-nav a,
.client-account-footer a {
  color: #374151;
  text-decoration: none;
}

.client-account-nav a:hover,
.client-account-footer a:hover {
  color: #d20a13;
}

.client-account-main {
  margin: 0 auto;
  max-width: 920px;
  padding: clamp(28px, 6vw, 72px) 16px;
}

.client-account-popup-main {
  margin: 0;
  max-width: none;
  padding: 0;
}

.client-account-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  margin: 0 auto;
  max-width: 620px;
  padding: clamp(22px, 4vw, 38px);
}

.client-account-popup-main .client-account-card {
  border: 0;
  box-shadow: none;
  max-width: none;
  padding: clamp(22px, 4vw, 38px);
}

.client-account-card-wide {
  max-width: 780px;
}

.client-account-page-heading {
  align-items: flex-start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.client-account-kicker {
  color: #d20a13;
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.client-account-back {
  text-decoration: none;
}

.client-account-back:hover,
.client-account-back:focus-visible {
  color: #a4070f;
  outline: none;
}

.client-account-logout-button {
  flex: 0 0 auto;
}

.client-account-card h1 {
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.12;
  margin: 0 0 12px;
}

.client-account-intro {
  color: #4b5563;
  line-height: 1.65;
  margin: 0 0 24px;
}

.client-account-form {
  display: grid;
  gap: 16px;
}

.client-account-field {
  display: grid;
  gap: 7px;
}

.client-account-field span,
.client-account-check span {
  color: #374151;
  font-size: 14px;
  font-weight: 700;
}

.client-account-field input,
.client-account-field select,
.client-account-field textarea {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-sizing: border-box;
  font: inherit;
  height: 44px;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

.client-account-field textarea {
  height: auto;
  resize: vertical;
}

.client-account-field input:focus,
.client-account-field select:focus,
.client-account-field textarea:focus {
  border-color: #d20a13;
  box-shadow: 0 0 0 3px rgba(210, 10, 19, 0.12);
  outline: none;
}

.client-account-phone-group {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(150px, 0.42fr) minmax(0, 1fr);
}

.client-account-country-selects {
  display: grid;
  gap: 8px;
  position: relative;
}

.client-account-country-selects.is-enhanced select[data-account-phone-country-main] {
  height: 1px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

.client-account-country-combobox {
  position: relative;
}

.client-account-country-button {
  align-items: center;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  color: #111827;
  cursor: pointer;
  display: flex;
  font: inherit;
  justify-content: space-between;
  min-height: 44px;
  padding: 10px 34px 10px 12px;
  position: relative;
  text-align: left;
  width: 100%;
}

.client-account-country-button::after {
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #374151;
  content: "";
  position: absolute;
  right: 12px;
  top: calc(50% - 2px);
}

.client-account-country-button:focus-visible {
  border-color: #d20a13;
  box-shadow: 0 0 0 3px rgba(210, 10, 19, 0.12);
  outline: none;
}

.client-account-country-list {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.18);
  left: 0;
  max-height: 260px;
  overflow-y: auto;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 50;
}

.client-account-country-list[hidden] {
  display: none;
}

.client-account-country-option {
  background: transparent;
  border: 0;
  border-radius: 5px;
  color: #111827;
  cursor: pointer;
  display: block;
  font: inherit;
  padding: 9px 10px;
  text-align: left;
  width: 100%;
}

.client-account-country-option:hover,
.client-account-country-option:focus-visible,
.client-account-country-option[aria-selected="true"] {
  background: rgba(210, 10, 19, 0.1);
  outline: none;
}

.client-account-country-option-more {
  border-top: 1px solid #e5e7eb;
  color: #b91c1c;
  font-weight: 700;
  margin-top: 4px;
}

.client-account-profile-form {
  gap: 20px;
}

.client-account-profile-summary .client-account-info {
  background: transparent;
  border: 0;
  gap: 8px;
  padding: 0;
}

.client-account-company-toggle {
  margin-top: 2px;
}

.client-account-company-hidden {
  display: none !important;
}

.client-account-profile-phone-block {
  display: grid;
  gap: 10px;
}

.client-account-profile-phone-block h2 {
  font-size: 17px;
  margin: 0;
}

.client-account-phone-list {
  display: grid;
  gap: 12px;
}

.client-account-phone-row {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(130px, .8fr) minmax(150px, .7fr) minmax(170px, 1fr) auto;
}

.client-account-phone-row-actions {
  display: flex;
  gap: 8px;
  padding-bottom: 1px;
}

.client-account-icon-button {
  align-items: center;
  background: #111827;
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  height: 34px;
  justify-content: center;
  line-height: 1;
  min-width: 34px;
  padding: 0 10px;
}

.client-account-icon-button:hover,
.client-account-icon-button:focus-visible {
  background: #d20a13;
  outline: none;
}

.client-account-add-phone-under {
  justify-self: start;
}

.client-account-password-wrap {
  display: block;
  position: relative;
}

.client-account-password-wrap input {
  padding-right: 46px;
  width: 100%;
}

.client-account-password-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #4b5563;
  cursor: pointer;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
}

.client-account-password-toggle:hover,
.client-account-password-toggle:focus-visible,
.client-account-password-toggle.is-visible {
  background: #f3f4f6;
  color: #111827;
  outline: none;
}

.client-account-password-toggle svg {
  display: block;
  fill: currentColor;
  height: 18px;
  width: 18px;
}

.client-account-check {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  line-height: 1.45;
}

.client-account-check input {
  margin-top: 3px;
}

.client-account-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.client-account-button {
  background: #d20a13;
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  text-decoration: none;
}

.client-account-button-secondary {
  background: #111827;
}

.client-account-discount-list {
  display: grid;
  gap: 14px;
}

.client-account-discount-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 16px;
}

.client-account-discount-card h2 {
  font-size: 24px;
  margin: 4px 0 0;
}

.client-account-discount-details {
  display: grid;
  gap: 10px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.client-account-discount-details div {
  background: #f9fafb;
  border-radius: 6px;
  padding: 10px 12px;
}

.client-account-discount-details dt {
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.client-account-discount-details dd {
  color: #111827;
  margin: 0;
}

.client-account-link {
  color: #d20a13;
  font-weight: 700;
  text-decoration: none;
}

.client-account-message {
  border-radius: 6px;
  line-height: 1.55;
  margin: 0 0 18px;
  padding: 13px 15px;
}

.client-account-message-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
}

.client-account-message-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.client-account-message-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.client-account-message ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.client-account-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 22px 0;
}

.client-account-info {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px;
}

.client-account-info strong {
  display: block;
  font-size: 13px;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.client-account-shortcut {
  color: inherit;
  display: block;
  text-decoration: none;
}

.client-account-shortcut:hover,
.client-account-shortcut:focus-visible {
  border-color: #d20a13;
  outline: none;
}

.client-account-panel {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin: 18px 0;
  padding: 18px;
}

.client-account-panel h2 {
  font-size: 18px;
  margin: 0 0 14px;
}

.client-account-inline-request {
  margin: 0 0 18px;
  padding: 0 2px;
}

.client-account-inline-request p {
  margin: 0 0 8px;
}

.client-account-text-button {
  border: 0;
  background: transparent;
  color: #111827;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.client-account-text-button:hover,
.client-account-text-button:focus-visible {
  color: #e1000f;
}

.client-account-two-columns {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.client-account-inline-info {
  margin: 0 0 18px;
}

.client-account-list {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.client-account-address {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px;
}

.client-account-address summary {
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: space-between;
}

.client-account-address summary span {
  font-weight: 700;
}

.client-account-address summary small {
  color: #6b7280;
}

.client-account-address form {
  margin-top: 16px;
}

.client-account-export {
  background: #111827;
  border-radius: 8px;
  color: #f9fafb;
  max-height: 360px;
  overflow: auto;
  padding: 14px;
  white-space: pre-wrap;
  word-break: break-word;
}

.client-account-reservation-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.client-account-reservation {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
}

.client-account-reservation-main,
.client-account-reservation-head {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.client-account-reservation-main strong {
  display: block;
}

.client-account-reservation-main span,
.client-account-reservation-route span {
  color: #6b7280;
  display: block;
  font-size: 14px;
  line-height: 1.45;
}

.client-account-reservation-route {
  border-top: 1px solid #eef0f3;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
  padding-top: 14px;
}

.client-account-passkey {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.client-account-passkey strong,
.client-account-passkey span {
  display: block;
}

.client-account-passkey-login {
  border-style: dashed;
  margin-top: 18px;
  padding: 16px;
}

.client-account-popup-page .client-account-passkey-login {
  display: none;
}

.client-account-passkey-login h2 {
  font-size: 16px;
  margin: 0 0 8px;
}

.client-account-button-compact {
  font-size: 14px;
  min-height: 0;
  padding: 7px 12px;
}

.client-account-email-edit-button {
  background: #111827;
  color: #fff;
  align-self: start;
  line-height: 1.1;
}

.client-account-muted {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
}

.client-account-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  padding: 26px 16px 40px;
}

@media (max-width: 640px) {
  .client-account-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .client-account-nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .client-account-grid {
    grid-template-columns: 1fr;
  }

  .client-account-two-columns {
    grid-template-columns: 1fr;
  }

  .client-account-page-heading {
    flex-direction: column;
  }

  .client-account-phone-group {
    grid-template-columns: 1fr;
  }

  .client-account-phone-row,
  .client-account-discount-card,
  .client-account-discount-details {
    grid-template-columns: 1fr;
  }

  .client-account-phone-row-actions {
    padding-bottom: 0;
  }

  .client-account-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .client-account-button {
    width: 100%;
  }

  .client-account-reservation-main,
  .client-account-reservation-head,
  .client-account-passkey {
    flex-direction: column;
  }

  .client-account-reservation-route {
    grid-template-columns: 1fr;
  }
}
