/* =========================================================
   CREACIONES NERYS — CUSTOMER ACCOUNT FOUNDATION
   Optional customer accounts + guest-friendly quote flow
   ========================================================= */

.account-nav-button,
.quote-account-button {
  appearance: none;
  border: 1px solid rgba(35, 127, 136, 0.20);
  background: rgba(255, 255, 255, 0.82);
  color: var(--nerys-teal, #237f88);
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.account-nav-button:hover,
.quote-account-button:hover {
  transform: translateY(-1px);
  border-color: rgba(57, 209, 225, 0.55);
  background: #fff;
}

.quote-account-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 22px;
  padding: 13px 16px;
  border: 1px solid rgba(57, 209, 225, 0.24);
  border-radius: 18px;
  background: rgba(233, 251, 253, 0.72);
  color: #42555a;
  font-size: 14px;
}

.quote-account-note strong {
  color: var(--nerys-teal, #237f88);
}

.quote-account-note button {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--nerys-teal, #237f88);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.account-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  place-items: center;
  padding: 22px;
  background: rgba(13, 37, 42, 0.48);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.account-modal.is-open {
  display: grid;
}

.account-card {
  position: relative;
  width: min(100%, 680px);
  max-height: min(760px, calc(100vh - 44px));
  overflow-y: auto;
  border: 1px solid rgba(57, 209, 225, 0.22);
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 0%, rgba(57, 209, 225, .15), transparent 34%),
    #fff;
  box-shadow: 0 28px 90px rgba(12, 48, 55, .24);
  padding: 28px;
}

.account-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f2f6f7;
  color: #33474b;
  font-size: 22px;
  cursor: pointer;
}

.account-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 48px;
}

.account-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.account-brand h2 {
  margin: 0 0 3px;
  color: var(--nerys-teal, #237f88);
  font-size: 24px;
}

.account-brand p,
.account-helper,
.account-signed-in-copy {
  margin: 0;
  color: #64767a;
  line-height: 1.55;
}

.account-guest-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 20px 0 16px;
  padding: 8px 11px;
  border-radius: 999px;
  background: #eefafb;
  color: var(--nerys-teal, #237f88);
  font-size: 12px;
  font-weight: 900;
}

.account-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 6px 0 22px;
  padding: 5px;
  border-radius: 16px;
  background: #f2f6f7;
}

.account-tab {
  border: 0;
  border-radius: 12px;
  padding: 11px 12px;
  background: transparent;
  color: #58696d;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.account-tab.is-active {
  background: #fff;
  color: var(--nerys-teal, #237f88);
  box-shadow: 0 5px 18px rgba(31, 91, 99, .09);
}

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

.account-field {
  display: grid;
  gap: 7px;
  color: #3c5156;
  font-size: 13px;
  font-weight: 800;
}

.account-field input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d8e4e6;
  border-radius: 14px;
  padding: 13px 14px;
  background: #fff;
  color: #24393d;
  font: inherit;
  outline: none;
}

.account-field input:focus {
  border-color: var(--nerys-turquoise, #39d1e1);
  box-shadow: 0 0 0 4px rgba(57, 209, 225, .12);
}

.account-primary-button,
.account-secondary-button {
  border-radius: 14px;
  padding: 13px 16px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.account-primary-button {
  border: 0;
  background: var(--nerys-turquoise, #39d1e1);
  color: #123d43;
}

.account-secondary-button {
  border: 1px solid #d7e4e6;
  background: #fff;
  color: var(--nerys-teal, #237f88);
}

.account-link-button {
  justify-self: start;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--nerys-teal, #237f88);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.account-status {
  min-height: 20px;
  margin: 4px 0 0;
  color: #65777b;
  font-size: 13px;
  line-height: 1.45;
}

.account-status.is-error { color: #a63131; }
.account-status.is-success { color: #18724d; }

.account-member-panel {
  display: grid;
  gap: 17px;
  margin-top: 22px;
}

.account-member-email {
  padding: 14px 16px;
  border-radius: 16px;
  background: #eefafb;
  color: #24494f;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.account-coming-soon {
  padding: 15px 16px;
  border: 1px dashed rgba(35, 127, 136, .28);
  border-radius: 16px;
  background: #fbfefe;
  color: #617377;
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .main-nav.is-open .account-nav-button {
    width: 100%;
    max-width: 220px;
    text-align: center;
  }

  .quote-header-actions {
    flex-wrap: wrap;
  }

  .quote-account-note {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .account-card {
    padding: 23px 19px;
    border-radius: 23px;
  }
}


/* =========================================================
   CUSTOMER QUOTE PORTAL
   Sent customer-safe quotes from Firestore customerQuotes.
   ========================================================= */

.account-quotes {
  display: grid;
  gap: 12px;
}

.account-quotes-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-quotes-heading h3 {
  margin: 0;
  color: #243f44;
  font-size: 18px;
}

.account-quote-count {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  background: #e9fafc;
  color: var(--nerys-teal, #237f88);
  font-size: 12px;
  font-weight: 900;
}

.account-quotes-status {
  min-height: 20px;
  color: #687a7e;
  font-size: 13px;
  line-height: 1.5;
}

.account-quotes-status.is-error {
  color: #a63131;
}

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

.account-quote-card {
  display: grid;
  gap: 13px;
  padding: 17px;
  border: 1px solid rgba(35, 127, 136, .17);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfefe 100%);
  box-shadow: 0 10px 28px rgba(31, 91, 99, .07);
}

.account-quote-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.account-quote-card-header h4 {
  margin: 0;
  color: #233d42;
  font-size: 17px;
}

.account-quote-card-header p {
  margin: 5px 0 0;
  color: #728286;
  font-size: 12px;
  line-height: 1.45;
}

.account-quote-total {
  flex: 0 0 auto;
  color: var(--nerys-teal, #237f88);
  font-size: 18px;
  white-space: nowrap;
}

.account-quote-stage {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eefafb;
  color: var(--nerys-teal, #237f88);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .02em;
}

.account-quote-services,
.account-quote-message {
  display: grid;
  gap: 8px;
}

.account-quote-section-label {
  color: #687a7e;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.account-quote-service-row,
.account-quote-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.account-quote-service-row {
  color: #344d52;
  font-size: 13px;
}

.account-quote-service-row strong {
  color: #223c41;
}

.account-quote-service-fallback {
  margin: 0;
  color: #344d52;
  font-size: 13px;
}

.account-quote-pricing {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid #e2ecee;
  border-radius: 14px;
  background: #fff;
}

.account-quote-row {
  min-height: 38px;
  padding: 0 12px;
  border-bottom: 1px solid #edf2f3;
  color: #617377;
  font-size: 12px;
}

.account-quote-row:last-child {
  border-bottom: 0;
}

.account-quote-row.is-emphasis {
  background: #f0fbfc;
}

.account-quote-row-label {
  min-width: 0;
}

.account-quote-row-value {
  flex: 0 0 auto;
  color: #28484d;
  font-size: 13px;
}

.account-quote-row.is-emphasis .account-quote-row-value {
  color: var(--nerys-teal, #237f88);
  font-size: 14px;
}

.account-quote-message {
  padding: 12px 13px;
  border-radius: 14px;
  background: #f7fbfc;
}

.account-quote-message p {
  margin: 0;
  color: #42575b;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
}

@media (max-width: 720px) {
  .account-quote-card {
    padding: 15px;
  }

  .account-quote-card-header {
    gap: 10px;
  }

  .account-quote-total {
    font-size: 16px;
  }

  .account-quote-service-row,
  .account-quote-row {
    gap: 10px;
  }
}

/* V15.4.1 — ensure HTML hidden state wins over component display rules */
.account-modal [hidden] {
  display: none !important;
}

/* V15.5 — polished quote loading + customer decision controls */
.account-quotes-status.is-loading {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 24px;
}

.account-quotes-status.is-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border: 2px solid rgba(35, 127, 136, .18);
  border-top-color: var(--nerys-teal, #237f88);
  border-radius: 50%;
  animation: accountQuoteSpin .75s linear infinite;
}

@keyframes accountQuoteSpin {
  to { transform: rotate(360deg); }
}

.account-quote-decision {
  display: grid;
  gap: 10px;
  margin-top: 2px;
  padding-top: 14px;
  border-top: 1px solid #e7eff0;
}

.account-quote-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 10px;
}

.account-quote-action {
  min-height: 44px;
  border-radius: 13px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease, border-color .18s ease;
}

.account-quote-action:hover:not(:disabled) {
  transform: translateY(-1px);
}

.account-quote-action:disabled {
  cursor: wait;
  opacity: .58;
}

.account-quote-action.is-accept {
  border: 0;
  background: var(--nerys-turquoise, #39d1e1);
  color: #123d43;
}

.account-quote-action.is-decline {
  border: 1px solid #d8e4e6;
  background: #fff;
  color: #6b5555;
}

.account-quote-decision-status {
  min-height: 18px;
  margin: 0;
  color: #627579;
  font-size: 12px;
  line-height: 1.45;
}

.account-quote-decision-status.is-working {
  color: var(--nerys-teal, #237f88);
}

.account-quote-decision-status.is-success {
  padding: 10px 12px;
  border-radius: 12px;
  background: #effaf5;
  color: #176b4b;
  font-weight: 800;
}

.account-quote-decision-status.is-error {
  color: #a63131;
  font-weight: 700;
}

.account-quote-decision-status.is-muted {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7f8f8;
  color: #6a7779;
}

@media (max-width: 520px) {
  .account-quote-actions {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   V15.6 — SHARED QUOTE MESSAGING
   Customer thread synced from customerQuotes/{quoteId}.
   ========================================================= */

.account-quote-messages {
  overflow: hidden;
  border: 1px solid #e1ecee;
  border-radius: 16px;
  background: #fff;
}

.account-quote-messages summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  color: #29484d;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.account-quote-messages summary::-webkit-details-marker {
  display: none;
}

.account-quote-messages[open] summary {
  border-bottom: 1px solid #edf2f3;
  background: #fbfefe;
}

.account-message-count {
  display: inline-grid;
  min-width: 26px;
  height: 26px;
  place-items: center;
  padding: 0 7px;
  border-radius: 999px;
  background: #e9fafc;
  color: var(--nerys-teal, #237f88);
  font-size: 11px;
}

.account-message-content {
  display: grid;
  gap: 12px;
  padding: 13px;
}

.account-message-helper,
.account-message-empty,
.account-message-status {
  margin: 0;
  color: #6a7d81;
  font-size: 12px;
  line-height: 1.5;
}

.account-message-thread {
  display: grid;
  max-height: 310px;
  gap: 9px;
  overflow-y: auto;
  padding: 4px 2px;
  scroll-behavior: smooth;
}

.account-message-row {
  display: flex;
}

.account-message-row.is-admin {
  justify-content: flex-start;
}

.account-message-row.is-customer {
  justify-content: flex-end;
}

.account-message-bubble {
  display: grid;
  max-width: min(82%, 430px);
  gap: 6px;
  padding: 10px 12px;
  border-radius: 15px;
}

.account-message-row.is-admin .account-message-bubble {
  border: 1px solid #e1ebed;
  border-bottom-left-radius: 5px;
  background: #f6fafb;
}

.account-message-row.is-customer .account-message-bubble {
  border-bottom-right-radius: 5px;
  background: #dff8fb;
}

.account-message-bubble p {
  margin: 0;
  color: #294449;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.account-message-bubble span {
  color: #74868a;
  font-size: 10px;
}

.account-message-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  align-items: end;
}

.account-message-composer textarea {
  width: 100%;
  min-height: 72px;
  max-height: 150px;
  resize: vertical;
  border: 1px solid #d7e5e7;
  border-radius: 13px;
  padding: 11px 12px;
  background: #fff;
  color: #294449;
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
  outline: none;
}

.account-message-composer textarea:focus {
  border-color: var(--nerys-turquoise, #39d1e1);
  box-shadow: 0 0 0 3px rgba(57, 209, 225, .11);
}

.account-message-send {
  min-width: 78px;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 0 15px;
  background: var(--nerys-turquoise, #39d1e1);
  color: #123d43;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.account-message-send:disabled,
.account-message-composer textarea:disabled {
  cursor: wait;
  opacity: .6;
}

.account-message-status.is-working {
  color: var(--nerys-teal, #237f88);
}

.account-message-status.is-error {
  color: #a63131;
  font-weight: 700;
}

@media (max-width: 520px) {
  .account-message-composer {
    grid-template-columns: 1fr;
  }

  .account-message-send {
    width: 100%;
  }

  .account-message-bubble {
    max-width: 90%;
  }
}


/* =========================================================
   V15.7 — VERSIONED / REVISED CUSTOMER QUOTES
   ========================================================= */

.account-quote-total-wrap {
  display: grid;
  justify-items: end;
  gap: 4px;
  flex: 0 0 auto;
}

.account-quote-version {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #f0f8f9;
  color: #6a7c80;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.account-quote-history {
  overflow: hidden;
  border: 1px solid #e1ecee;
  border-radius: 14px;
  background: #fbfefe;
}

.account-quote-history > summary {
  padding: 12px 13px;
  color: var(--nerys-teal, #237f88);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  user-select: none;
}

.account-quote-history-list {
  display: grid;
  gap: 10px;
  padding: 0 11px 11px;
}

.account-quote-history-item {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid #e5eef0;
  border-radius: 12px;
  background: #fff;
}

.account-quote-history-heading,
.account-quote-history-services > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-quote-history-heading {
  color: #29464b;
  font-size: 12px;
}

.account-quote-history-item > p {
  margin: 0;
  color: #758589;
  font-size: 10px;
  line-height: 1.45;
}

.account-quote-history-services {
  display: grid;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid #edf2f3;
  color: #4b6267;
  font-size: 11px;
}

.account-quote-history-pricing {
  overflow: hidden;
  border: 1px solid #edf2f3;
  border-radius: 10px;
  background: #fbfefe;
}

.account-quote-history-pricing .account-quote-row {
  min-height: 32px;
}

@media (max-width: 520px) {
  .account-quote-total-wrap {
    gap: 3px;
  }

  .account-quote-version {
    font-size: 9px;
  }
}

/* =========================================================
   V15.8 — DEPOSIT / PAYMENT STATUS
   Customer-safe payment summary shown after quote acceptance.
   ========================================================= */

.account-payment-card {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(35, 127, 136, .17);
  border-radius: 17px;
  background: #fbfefe;
}

.account-payment-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.account-payment-heading > div {
  display: grid;
  gap: 4px;
}

.account-payment-heading > div > strong {
  color: #24464b;
  font-size: 15px;
}

.account-payment-amount {
  flex: 0 0 auto;
  color: var(--nerys-teal, #237f88);
  font-size: 18px;
  white-space: nowrap;
}

.account-payment-rows {
  display: grid;
  overflow: hidden;
  border: 1px solid #e2ecee;
  border-radius: 13px;
  background: #fff;
}

.account-payment-rows:empty {
  display: none;
}

.account-payment-note {
  margin: 0;
  color: #617377;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 520px) {
  .account-payment-heading {
    gap: 10px;
  }

  .account-payment-amount {
    font-size: 16px;
  }
}

/* =========================================================
   V15.9 — CUSTOMER ELECTRONIC CONTRACT
   ========================================================= */

.account-contract-card {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(17, 93, 100, .14);
  border-radius: 18px;
  background: #fbfefe;
}

.account-contract-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.account-contract-heading > div {
  display: grid;
  gap: 4px;
}

.account-contract-heading strong {
  color: #163f44;
  font-size: 15px;
}

.account-contract-badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 900;
}

.account-contract-badge.is-ready {
  background: #fff4d9;
  color: #7a5908;
}

.account-contract-badge.is-signed {
  background: #e4f8ed;
  color: #176940;
}

.account-contract-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 14px;
  color: #668187;
  font-size: 12px;
}

.account-contract-download,
.account-contract-sign {
  min-height: 44px;
  border-radius: 12px;
  padding: 0 16px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.account-contract-download {
  border: 1px solid rgba(17, 93, 100, .18);
  background: #fff;
  color: #11737c;
}

.account-contract-sign {
  border: 0;
  background: #35c7d8;
  color: #06383c;
}

.account-contract-download:disabled,
.account-contract-sign:disabled {
  opacity: .55;
  cursor: wait;
}

.account-contract-help {
  margin: 0;
  color: #607d82;
  font-size: 12px;
  line-height: 1.55;
}

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

.account-contract-field > span {
  color: #345a60;
  font-size: 12px;
  font-weight: 800;
}

.account-contract-field input {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  border: 1px solid rgba(17, 93, 100, .18);
  border-radius: 12px;
  padding: 0 12px;
  background: #fff;
  color: #153d42;
  font: inherit;
}

.account-contract-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px dashed rgba(17, 93, 100, .18);
  border-radius: 12px;
  background: #f4fbfc;
  color: #365c61;
  font-size: 12px;
  line-height: 1.5;
}

.account-contract-consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.account-contract-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.account-contract-status {
  margin-right: auto;
  color: #607d82;
  font-size: 12px;
  font-weight: 800;
}

.account-contract-status.is-error {
  color: #9e3d37;
}

.account-contract-status.is-working {
  color: #11737c;
}

.account-contract-signed {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border-radius: 13px;
  background: #eaf9f1;
  color: #176940;
}

.account-contract-signed span,
.account-contract-signed small {
  opacity: .84;
}

.account-contract-damage-acknowledgment {
  display: grid;
  min-width: 0;
  gap: 13px;
  margin: 2px 0;
  padding: 18px;
  border: 3px solid #b42318;
  border-radius: 14px;
  background: #fff4f2;
  box-shadow: 0 8px 24px rgba(180, 35, 24, .12);
  color: #7a271a;
}

.account-contract-damage-acknowledgment legend {
  max-width: 100%;
  padding: 5px 10px;
  border-radius: 7px;
  background: #b42318;
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .055em;
  line-height: 1.35;
}

.account-contract-damage-statement {
  margin: 0;
  color: #681e14;
  font-size: 13px;
  font-weight: 780;
  line-height: 1.62;
}

.account-contract-damage-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid rgba(180, 35, 24, .45);
  border-radius: 10px;
  background: #fff;
  color: #7a271a;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.5;
  cursor: pointer;
}

.account-contract-damage-check input {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: #b42318;
}

.account-contract-damage-initials {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 180px);
  align-items: center;
  gap: 12px;
  color: #681e14;
  font-size: 13px;
  font-weight: 900;
}

.account-contract-damage-initials input {
  width: 100%;
  min-height: 44px;
  border: 2px solid #b42318;
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  color: #431407;
  font: inherit;
  text-transform: uppercase;
}

.account-contract-damage-check input:focus-visible,
.account-contract-damage-initials input:focus-visible,
.account-contract-consent input:focus-visible,
.account-contract-field input:focus-visible,
.account-contract-download:focus-visible,
.account-contract-sign:focus-visible {
  outline: 3px solid #175cd3;
  outline-offset: 3px;
}

.account-contract-damage-receipt {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border: 2px solid #b42318;
  border-radius: 13px;
  background: #fff4f2;
  color: #7a271a;
}

.account-contract-damage-receipt span {
  font-size: 12px;
  font-weight: 750;
}

@media (max-width: 620px) {
  .account-contract-heading,
  .account-contract-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .account-contract-status {
    margin-right: 0;
  }

  .account-contract-damage-acknowledgment {
    padding: 15px;
  }

  .account-contract-damage-initials {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   V16.3 — PREMIUM CUSTOMER ACCOUNT PAGE
   Dedicated full-page experience for quotes, payment,
   contracts, messages, and official bookings.
   ========================================================= */

.customer-account-page {
  --account-ink: #143e44;
  --account-muted: #638084;
  --account-teal: #237f88;
  --account-turquoise: #39d1e1;
  --account-soft: #effbfc;
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(57, 209, 225, .19), transparent 30%),
    radial-gradient(circle at 96% 18%, rgba(35, 127, 136, .09), transparent 27%),
    linear-gradient(180deg, #f8fdfe 0%, #f4f9fa 55%, #ffffff 100%);
  color: var(--account-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.customer-account-page * {
  box-sizing: border-box;
}

.customer-account-page .account-page-modal {
  position: static;
  inset: auto;
  z-index: auto;
  display: none;
  min-height: 100vh;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.customer-account-page .account-page-modal.is-open {
  display: block;
}

.customer-account-page .account-page-shell {
  min-height: 100vh;
}

.customer-account-page .account-page-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 82px;
  padding: 14px max(26px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid rgba(35, 127, 136, .10);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 8px 30px rgba(22, 82, 89, .04);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.customer-account-page .account-page-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--account-ink);
  text-decoration: none;
}

.customer-account-page .account-page-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(35, 127, 136, .12));
}

.customer-account-page .account-page-logo span {
  display: grid;
  gap: 1px;
}

.customer-account-page .account-page-logo strong {
  color: var(--account-teal);
  font-size: 16px;
  letter-spacing: -.01em;
}

.customer-account-page .account-page-logo small {
  color: #7a9296;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.customer-account-page .account-page-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.customer-account-page .account-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.customer-account-page .account-page-link:hover {
  transform: translateY(-1px);
}

.customer-account-page .account-page-link.is-secondary {
  border: 1px solid rgba(35, 127, 136, .17);
  background: #fff;
  color: var(--account-teal);
}

.customer-account-page .account-page-link.is-primary {
  border: 0;
  background: var(--account-turquoise);
  color: #0a3e44;
  box-shadow: 0 10px 22px rgba(57, 209, 225, .20);
}

.customer-account-page .account-page-main {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 54px 0 70px;
}

.customer-account-page .account-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr);
  gap: 34px;
  align-items: stretch;
  margin-bottom: 30px;
}

.customer-account-page .account-page-hero-copy {
  padding: 46px 48px;
  border: 1px solid rgba(35, 127, 136, .10);
  border-radius: 34px;
  background:
    radial-gradient(circle at 88% 10%, rgba(57, 209, 225, .14), transparent 34%),
    rgba(255, 255, 255, .92);
  box-shadow: 0 24px 70px rgba(20, 82, 89, .08);
}

.customer-account-page .account-page-eyebrow,
.customer-account-page .account-page-section-eyebrow {
  display: block;
  color: var(--account-teal);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.customer-account-page .account-page-hero h1 {
  max-width: 800px;
  margin: 10px 0 14px;
  color: var(--account-ink);
  font-size: clamp(38px, 5vw, 67px);
  line-height: .99;
  letter-spacing: -.045em;
}

.customer-account-page .account-page-lede {
  max-width: 790px;
  margin: 0;
  color: var(--account-muted);
  font-size: 17px;
  line-height: 1.7;
}

.customer-account-page .account-page-welcome {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  padding: 11px 15px;
  border: 1px solid rgba(57, 209, 225, .24);
  border-radius: 999px;
  background: #effbfc;
  color: #1e6870;
  font-size: 14px;
}

.customer-account-page .account-page-welcome[hidden] {
  display: none !important;
}

.customer-account-page .account-page-welcome-sparkle {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--account-turquoise);
  color: #0b4c53;
}

.customer-account-page .account-page-hero-card {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  min-height: 320px;
  padding: 34px;
  border: 1px solid rgba(35, 127, 136, .10);
  border-radius: 34px;
  background:
    linear-gradient(150deg, rgba(57, 209, 225, .20), rgba(255,255,255,.95) 48%, rgba(35,127,136,.07));
  box-shadow: 0 24px 70px rgba(20, 82, 89, .08);
  text-align: center;
}

.customer-account-page .account-page-hero-card img {
  position: relative;
  z-index: 2;
  width: min(170px, 62%);
  filter: drop-shadow(0 18px 28px rgba(28, 95, 103, .16));
}

.customer-account-page .account-page-hero-card > span {
  position: relative;
  z-index: 2;
  color: #4f7176;
  font-size: 13px;
  font-weight: 800;
}

.customer-account-page .account-page-hero-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(57, 209, 225, .22);
  filter: blur(32px);
}

.customer-account-page .account-page-surface {
  padding: 34px;
  border: 1px solid rgba(35, 127, 136, .10);
  border-radius: 34px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 26px 78px rgba(22, 82, 89, .08);
}

.customer-account-page .account-page-auth-intro {
  max-width: 680px;
  margin-bottom: 24px;
}

.customer-account-page .account-page-auth-intro h2 {
  margin: 8px 0 8px;
  color: var(--account-ink);
  font-size: 30px;
}

.customer-account-page .account-page-auth-intro p {
  margin: 0;
  color: var(--account-muted);
  line-height: 1.65;
}

.customer-account-page #accountGuestPanel {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 20px 0;
}

.customer-account-page .account-page-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.customer-account-page .account-page-form .account-primary-button,
.customer-account-page .account-page-form .account-link-button,
.customer-account-page .account-page-form .account-helper,
.customer-account-page .account-page-form .account-status {
  grid-column: 1 / -1;
}

.customer-account-page .account-page-form #accountNameField {
  grid-column: 1 / -1;
}

.customer-account-page .account-page-member-panel {
  margin-top: 0;
  gap: 34px;
}

.customer-account-page .account-page-member-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .75fr);
  gap: 22px;
  align-items: stretch;
}

.customer-account-page .account-page-member-intro > div:first-child,
.customer-account-page .account-page-reassurance {
  padding: 22px;
  border: 1px solid rgba(35, 127, 136, .10);
  border-radius: 22px;
  background: #fbfefe;
}

.customer-account-page .account-page-member-intro .account-signed-in-copy {
  margin: 7px 0 12px;
  color: #4f6f74;
}

.customer-account-page .account-member-email {
  margin: 0;
  background: #eaf9fb;
  font-size: 14px;
}

.customer-account-page .account-page-reassurance {
  display: flex;
  gap: 13px;
  background:
    linear-gradient(145deg, #eefbfc, #ffffff);
}

.customer-account-page .account-page-reassurance-icon {
  flex: 0 0 auto;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #dff7e9;
  color: #176940;
  font-weight: 950;
}

.customer-account-page .account-page-reassurance strong {
  color: #214b51;
  font-size: 14px;
}

.customer-account-page .account-page-reassurance p {
  margin: 6px 0 0;
  color: #638084;
  font-size: 13px;
  line-height: 1.6;
}

.customer-account-page .account-page-quotes {
  display: grid;
  gap: 18px;
}

.customer-account-page .account-page-quotes-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.customer-account-page .account-page-quotes-intro h2 {
  margin: 5px 0 5px;
  color: var(--account-ink);
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -.025em;
}

.customer-account-page .account-page-quotes-intro p {
  margin: 0;
  color: var(--account-muted);
  font-size: 14px;
}

.customer-account-page .account-quote-count {
  min-width: 42px;
  height: 42px;
  font-size: 14px;
  box-shadow: inset 0 0 0 1px rgba(35,127,136,.07);
}

.customer-account-page .account-quote-list {
  gap: 24px;
}

.customer-account-page .account-quote-card {
  gap: 17px;
  padding: 28px;
  border-radius: 28px;
  border-color: rgba(35, 127, 136, .14);
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfefe 100%);
  box-shadow: 0 18px 50px rgba(31, 91, 99, .08);
}

.customer-account-page .account-quote-card-header h4 {
  font-size: 25px;
  letter-spacing: -.02em;
}

.customer-account-page .account-quote-card-header p {
  margin-top: 7px;
  font-size: 13px;
}

.customer-account-page .account-quote-total {
  font-size: 23px;
}

.customer-account-page .account-quote-stage {
  min-height: 32px;
  padding: 6px 12px;
  font-size: 11px;
}

.customer-account-page .account-quote-services {
  padding: 18px;
  border-radius: 18px;
  background: #f7fbfc;
}

.customer-account-page .account-quote-service-row {
  min-height: 34px;
  font-size: 14px;
}

.customer-account-page .account-quote-pricing {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  overflow: visible;
  border: 0;
  background: transparent;
}

.customer-account-page .account-quote-pricing .account-quote-row {
  min-height: 72px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  padding: 12px 15px;
  border: 1px solid #e2ecee;
  border-radius: 16px;
  background: #fff;
}

.customer-account-page .account-quote-pricing .account-quote-row.is-emphasis {
  border-color: rgba(57, 209, 225, .24);
  background: #effbfc;
}

.customer-account-page .account-quote-pricing .account-quote-row-label {
  color: #71878b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.customer-account-page .account-quote-pricing .account-quote-row-value {
  font-size: 17px;
}

.customer-account-page .account-payment-card,
.customer-account-page .account-contract-card,
.customer-account-page .account-booking-card {
  gap: 15px;
  margin-top: 0;
  padding: 20px;
  border-radius: 21px;
  border: 1px solid rgba(17, 93, 100, .13);
  background: #fbfefe;
}

.customer-account-page .account-booking-card {
  background:
    linear-gradient(145deg, #f3fcf7, #ffffff);
  border-color: rgba(39, 151, 96, .18);
}

.customer-account-page .account-booking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.customer-account-page .account-booking-row {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 14px 15px;
  border: 1px solid #dfecee;
  border-radius: 14px;
  background: #fff;
}

.customer-account-page .account-booking-label {
  color: #71878b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.customer-account-page .account-booking-value {
  min-width: 0;
  color: #24494f;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.customer-account-page .account-payment-rows {
  overflow: visible;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border: 0;
  background: transparent;
}

.customer-account-page .account-payment-rows .account-quote-row {
  min-height: 60px;
  padding: 10px 13px;
  border: 1px solid #e2ecee;
  border-radius: 13px;
  background: #fff;
}

.customer-account-page .account-contract-download,
.customer-account-page .account-contract-sign {
  min-height: 48px;
}

.customer-account-page .account-contract-signed {
  padding: 16px;
  border-radius: 16px;
}

.customer-account-page .account-quote-message {
  padding: 16px;
  border-radius: 16px;
}

.customer-account-page .account-quote-messages {
  border-radius: 18px;
}

.customer-account-page .account-page-signout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid #e8f0f1;
  color: #809598;
  font-size: 12px;
}

.customer-account-page .account-page-signout-row .account-secondary-button {
  min-width: 150px;
}

.customer-account-page .account-page-footer {
  display: flex;
  justify-content: center;
  gap: 9px;
  padding: 0 24px 34px;
  color: #789095;
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .customer-account-page .account-page-main {
    width: min(100% - 28px, 1240px);
    padding-top: 28px;
  }

  .customer-account-page .account-page-hero {
    grid-template-columns: 1fr;
  }

  .customer-account-page .account-page-hero-card {
    min-height: 220px;
  }

  .customer-account-page .account-page-member-intro {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .customer-account-page .account-page-topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
  }

  .customer-account-page .account-page-actions {
    width: 100%;
  }

  .customer-account-page .account-page-link {
    flex: 1;
  }

  .customer-account-page .account-page-hero-copy,
  .customer-account-page .account-page-surface {
    padding: 22px;
    border-radius: 24px;
  }

  .customer-account-page .account-page-hero-card {
    border-radius: 24px;
  }

  .customer-account-page .account-page-hero h1 {
    font-size: clamp(36px, 12vw, 52px);
  }

  .customer-account-page .account-page-lede {
    font-size: 15px;
  }

  .customer-account-page .account-page-form {
    grid-template-columns: 1fr;
  }

  .customer-account-page .account-page-form > * {
    grid-column: auto !important;
  }

  .customer-account-page .account-page-quotes-intro {
    align-items: flex-start;
  }

  .customer-account-page .account-quote-card {
    padding: 18px;
    border-radius: 22px;
  }

  .customer-account-page .account-quote-card-header {
    flex-direction: column;
  }

  .customer-account-page .account-quote-total-wrap {
    align-items: flex-start;
  }

  .customer-account-page .account-quote-pricing,
  .customer-account-page .account-payment-rows,
  .customer-account-page .account-booking-grid {
    grid-template-columns: 1fr;
  }

  .customer-account-page .account-page-signout-row {
    align-items: stretch;
    flex-direction: column;
  }
}


/* =========================================================
   V16.4 — BOOKED EVENT PAYMENT EXPERIENCE
   ========================================================= */

.customer-account-page .account-booked-payment-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(35, 127, 136, .13);
  border-radius: 21px;
  background:
    linear-gradient(145deg, #f4fcfd, #ffffff);
}

.customer-account-page .account-booked-payment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.customer-account-page .account-booked-payment-stat {
  display: grid;
  gap: 6px;
  padding: 14px 15px;
  border: 1px solid #dfecee;
  border-radius: 14px;
  background: #fff;
}

.customer-account-page .account-booked-payment-stat > span {
  color: #71878b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.customer-account-page .account-booked-payment-stat > strong {
  color: #24494f;
  font-size: 18px;
}

.customer-account-page .account-booked-payment-stat.is-due {
  border-color: #f0d89f;
  background: #fffaf1;
}

.customer-account-page .account-booked-payment-stat.is-paid {
  border-color: #cbead7;
  background: #f1fbf5;
}

.customer-account-page .account-booked-payment-history {
  display: grid;
  gap: 9px;
  padding-top: 3px;
}

.customer-account-page .account-booked-payment-history > strong {
  color: #315b60;
  font-size: 12px;
}

.customer-account-page .account-booked-payment-history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 13px;
  border: 1px solid #e2ecee;
  border-radius: 12px;
  background: #fff;
}

.customer-account-page .account-booked-payment-history-row > div {
  display: grid;
  gap: 3px;
}

.customer-account-page .account-booked-payment-history-row strong {
  color: #214a50;
  font-size: 14px;
}

.customer-account-page .account-booked-payment-history-row span,
.customer-account-page .account-booked-payment-history-row time {
  color: #748c90;
  font-size: 11px;
}

@media (max-width: 680px) {
  .customer-account-page .account-booked-payment-grid {
    grid-template-columns: 1fr;
  }

  .customer-account-page .account-booked-payment-history-row {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* =========================================================
   V16.7.1 — CUSTOMER CANCELLED BOOKING HISTORY
   ========================================================= */

.account-booking-card.is-cancelled {
  border-color: #edd0d4;
  background: #fffafa;
}

.account-contract-badge.is-cancelled {
  background: #fae8eb;
  color: #a34250;
}


/* =========================================================
   V16.7.3 — RESCHEDULED BOOKING CUSTOMER DISPLAY
   ========================================================= */

.customer-account-page .account-booking-card:not(.is-cancelled) .account-contract-help {
  margin-top: 2px;
}

/* =========================================================
   V16.7.4 — CUSTOMER SCHEDULE CHANGE REQUEST + AGREEMENT
   ========================================================= */

.account-schedule-change {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(35, 127, 136, .18);
  border-radius: 17px;
  background: #fbfefe;
}

.account-schedule-change.is-requested {
  border-color: #cbe8eb;
  background: #f7fcfd;
}

.account-schedule-change.is-approved,
.account-schedule-change.is-signed {
  border-color: #cbe8d6;
  background: #f7fcf8;
}

.account-schedule-change.is-unavailable {
  border-color: #edcfd4;
  background: #fff9f9;
}

.account-schedule-change-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.account-schedule-change-heading > div {
  display: grid;
  gap: 5px;
}

.account-schedule-change-heading strong {
  color: #203f44;
  font-size: 16px;
  line-height: 1.3;
}

.account-schedule-change-help {
  margin: 0;
  padding: 11px 12px;
  border-radius: 11px;
  background: #eef8f9;
  color: #527176;
  font-size: 12px;
  line-height: 1.55;
}

.account-schedule-change-help.is-unavailable {
  background: #fff0f2;
  color: #92505a;
}

.account-schedule-change-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.account-schedule-change-grid > div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid #e0ecee;
  border-radius: 12px;
  background: #fff;
}

.account-schedule-change-grid span {
  color: #6b7f83;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.account-schedule-change-grid strong {
  color: #28484d;
  font-size: 13px;
  line-height: 1.45;
}

.account-schedule-change-note {
  margin: 0;
  padding: 11px 12px;
  border-left: 3px solid #b8e5e9;
  border-radius: 8px;
  background: #f5fafb;
  color: #526c71;
  font-size: 12px;
  line-height: 1.55;
}

.account-schedule-change-open {
  justify-self: start;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(35, 127, 136, .25);
  border-radius: 12px;
  background: #fff;
  color: var(--nerys-teal, #237f88);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.account-schedule-change-open:hover {
  background: #eefafb;
}

.account-schedule-change-form {
  display: grid;
  gap: 14px;
  padding: 15px;
  border: 1px solid #dcebed;
  border-radius: 14px;
  background: #fff;
}

.account-schedule-change-form[hidden] {
  display: none;
}

.account-schedule-change-form > strong,
.account-schedule-change-agreement > strong {
  color: #203f44;
  font-size: 14px;
}

.account-schedule-change-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr) minmax(0, .9fr);
  gap: 10px;
}

.account-schedule-change-fields label,
.account-schedule-change-note-field,
.account-schedule-change-signature {
  display: grid;
  gap: 6px;
  color: #48656a;
  font-size: 11px;
  font-weight: 800;
}

.account-schedule-change-fields input,
.account-schedule-change-note-field textarea,
.account-schedule-change-signature input {
  width: 100%;
  min-height: 43px;
  padding: 9px 11px;
  border: 1px solid #d7e6e8;
  border-radius: 11px;
  background: #fff;
  color: #243f44;
  font: inherit;
  font-size: 13px;
  box-sizing: border-box;
}

.account-schedule-change-note-field textarea {
  min-height: 84px;
  resize: vertical;
}

.account-schedule-change-agreement {
  display: grid;
  gap: 9px;
  padding: 15px;
  border: 1px solid #d4e8da;
  border-radius: 13px;
  background: #fff;
}

.account-schedule-change-agreement p {
  margin: 0;
  color: #4f696e;
  font-size: 12px;
  line-height: 1.65;
}

.account-schedule-change-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 9px;
  color: #506c70;
  font-size: 11px;
  line-height: 1.55;
}

.account-schedule-change-consent input {
  width: 17px;
  height: 17px;
  margin-top: 1px;
}

.account-schedule-change-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.account-schedule-change-status {
  margin-right: auto;
  color: #657b7f;
  font-size: 11px;
  line-height: 1.45;
}

.account-schedule-change-status.is-error {
  color: #a63d4c;
}

.account-schedule-change-proof {
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid #cee7d7;
  border-radius: 12px;
  background: #eef9f2;
}

.account-schedule-change-proof strong {
  color: #2b7148;
  font-size: 13px;
}

.account-schedule-change-proof span {
  color: #56746a;
  font-size: 11px;
}

.account-schedule-change-proof p {
  margin: 5px 0 0;
  color: #526c63;
  font-size: 11px;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .account-schedule-change-grid,
  .account-schedule-change-fields {
    grid-template-columns: 1fr;
  }

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

  .account-schedule-change-status {
    margin-right: 0;
  }
}

.account-schedule-change-timezone {
  margin: -3px 0 0;
  color: #708286;
  font-size: 10px;
  line-height: 1.45;
}


/* =========================================================
   V16.7.5 — CUSTOMER BOOKING HISTORY & AGREEMENTS
   ========================================================= */

.account-booking-history {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid #d9e9eb;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.86);
}

.account-booking-history > summary {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.account-booking-history > summary::-webkit-details-marker {
  display: none;
}

.account-booking-history > summary:hover {
  background: rgba(57, 209, 225, 0.045);
}

.account-booking-history > summary > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.account-booking-history > summary strong {
  color: #173f44;
  font-size: 14px;
}

.account-booking-history > summary small {
  color: #728b8f;
  font-size: 10px;
  font-weight: 800;
}

.account-booking-history-chevron {
  flex: none;
  color: #19828c;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}

.account-booking-history[open] .account-booking-history-chevron {
  transform: rotate(-90deg);
}

.account-booking-history-body {
  display: grid;
  gap: 0;
  padding: 0 16px 17px;
  border-top: 1px solid #e6eff0;
}

.account-booking-history-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 11px;
  padding: 16px 0;
}

.account-booking-history-item:not(:last-child) {
  border-bottom: 1px solid #edf3f4;
}

.account-booking-history-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #4ec9d6;
  box-shadow: 0 0 0 2px rgba(78, 201, 214, 0.2);
}

.account-booking-history-item.is-reschedule .account-booking-history-dot {
  background: #2ba8b5;
}

.account-booking-history-item.is-cancelled .account-booking-history-dot {
  background: #d86878;
  box-shadow: 0 0 0 2px rgba(216, 104, 120, 0.18);
}

.account-booking-history-copy {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.account-booking-history-item-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.account-booking-history-item-heading strong {
  color: #173f44;
  font-size: 12px;
}

.account-booking-history-item-heading span {
  flex: none;
  color: #789095;
  font-size: 9px;
  font-weight: 800;
}

.account-booking-history-copy > p {
  margin: 0;
  color: #607d82;
  font-size: 10px;
  line-height: 1.55;
}

.account-booking-history-schedule {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #698589;
  font-size: 10px;
  line-height: 1.45;
}

.account-booking-history-schedule b {
  color: #36aebb;
  font-size: 13px;
}

.account-booking-history-schedule strong {
  color: #173f44;
}

.account-booking-amendment {
  margin-top: 3px;
  overflow: hidden;
  border: 1px solid #dcebed;
  border-radius: 13px;
  background: #f8fcfc;
}

.account-booking-amendment > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 13px;
  cursor: pointer;
  list-style: none;
}

.account-booking-amendment > summary::-webkit-details-marker {
  display: none;
}

.account-booking-amendment > summary span {
  color: #1d6871;
  font-size: 10px;
  font-weight: 900;
}

.account-booking-amendment > summary strong {
  color: #728b8f;
  font-size: 9px;
}

.account-booking-amendment-body {
  display: grid;
  gap: 13px;
  padding: 13px;
  border-top: 1px solid #e3eeef;
}

.account-booking-amendment-schedules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.account-booking-amendment-schedules > div {
  display: grid;
  gap: 4px;
  padding: 11px;
  border: 1px solid #e2edef;
  border-radius: 11px;
  background: #fff;
}

.account-booking-amendment-schedules span,
.account-booking-amendment-proof span {
  color: #789095;
  font-size: 8px;
  font-weight: 800;
}

.account-booking-amendment-schedules strong {
  color: #173f44;
  font-size: 10px;
  line-height: 1.45;
}

.account-booking-amendment-text {
  margin: 0;
  padding: 12px 13px;
  border-radius: 11px;
  background: #eef8f9;
  color: #527176;
  font-size: 10px;
  line-height: 1.6;
}

.account-booking-amendment-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.account-booking-amendment-proof strong {
  color: #315d62;
}

@media (max-width: 720px) {
  .account-booking-history-item-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .account-booking-amendment-schedules {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   V16.8.1 — INFORMATION HIERARCHY + EXPANDABLE EVENTS
   Visual-only polish. Business logic remains unchanged.
   ========================================================= */

.customer-account-page .account-page-quotes-intro {
  align-items: end;
  padding-bottom: 4px;
}

.customer-account-page .account-page-quotes-intro h2 {
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.08;
}

.customer-account-page .account-page-quotes-intro p {
  max-width: 650px;
  line-height: 1.6;
}

.customer-account-page .account-quote-list {
  gap: 16px;
}

.customer-account-page .account-event-card {
  display: block;
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.customer-account-page .account-event-card:hover {
  border-color: rgba(35, 127, 136, .26);
  box-shadow: 0 20px 52px rgba(31, 91, 99, .11);
}

.customer-account-page .account-event-card > summary {
  list-style: none;
}

.customer-account-page .account-event-card > summary::-webkit-details-marker {
  display: none;
}

.customer-account-page .account-event-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 112px;
  padding: 22px 24px;
  cursor: pointer;
  user-select: none;
  background: linear-gradient(135deg, #ffffff 0%, #f7fcfd 100%);
}

.customer-account-page .account-event-summary:focus-visible {
  outline: 3px solid rgba(57, 209, 225, .28);
  outline-offset: -3px;
}

.customer-account-page .account-event-summary-main {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.customer-account-page .account-event-summary-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.customer-account-page .account-event-summary-title-row > strong {
  color: #183f45;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -.015em;
}

.customer-account-page .account-event-summary-meta {
  color: #627d82;
  font-size: 12px;
  line-height: 1.5;
}

.customer-account-page .account-event-summary-services {
  overflow: hidden;
  color: #2b7179;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-account-page .account-event-summary-side {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  justify-items: end;
  gap: 12px;
}

.customer-account-page .account-event-summary-total {
  color: #177b85;
  font-size: 20px;
  line-height: 1;
  white-space: nowrap;
}

.customer-account-page .account-event-summary-chevron {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  background: #eef9fa;
  color: #16808a;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  transform: rotate(90deg);
  transition: transform .2s ease, background .2s ease;
}

.customer-account-page .account-event-card[open] .account-event-summary-chevron {
  transform: rotate(-90deg);
  background: #ddf6f8;
}

.customer-account-page .account-event-card[open] .account-event-summary {
  border-bottom: 1px solid #e2edef;
  background: #fbfefe;
}

.customer-account-page .account-event-card-body {
  display: grid;
  gap: 22px;
  padding: 26px;
}

.customer-account-page .account-event-card-body > .account-quote-card-header,
.customer-account-page .account-event-card-body > .account-quote-stage {
  display: none;
}

.customer-account-page .account-quote-stage.is-success {
  background: #e5f7ed;
  color: #26734b;
}

.customer-account-page .account-quote-stage.is-negative {
  background: #fbeaec;
  color: #a04452;
}

.customer-account-page .account-quote-stage.is-waiting {
  background: #edf9fa;
  color: #237f88;
}

.customer-account-page .account-event-summary-stage {
  min-height: 26px;
  padding: 4px 9px;
  font-size: 10px;
}

/* Stronger section labels so a long event remains easy to scan. */
.customer-account-page .account-quote-section-label {
  color: #167b85;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .12em;
  line-height: 1.3;
}

.customer-account-page .account-quote-services,
.customer-account-page .account-quote-message,
.customer-account-page .account-payment-card,
.customer-account-page .account-booked-payment-card,
.customer-account-page .account-contract-card,
.customer-account-page .account-booking-card,
.customer-account-page .account-schedule-change,
.customer-account-page .account-booking-history {
  scroll-margin-top: 120px;
}

.customer-account-page .account-quote-services {
  padding: 20px;
}

.customer-account-page .account-payment-card,
.customer-account-page .account-booked-payment-card,
.customer-account-page .account-contract-card,
.customer-account-page .account-booking-card {
  padding: 23px;
  gap: 18px;
}

.customer-account-page .account-payment-heading,
.customer-account-page .account-contract-heading {
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 1px solid #e4edef;
}

.customer-account-page .account-payment-heading > div,
.customer-account-page .account-contract-heading > div {
  gap: 7px;
}

.customer-account-page .account-payment-heading > div > strong,
.customer-account-page .account-contract-heading > div > strong,
.customer-account-page .account-contract-heading strong {
  font-size: 18px;
  line-height: 1.3;
}

.customer-account-page .account-payment-amount {
  font-size: 21px;
}

.customer-account-page .account-booking-row,
.customer-account-page .account-booked-payment-stat,
.customer-account-page .account-quote-pricing .account-quote-row {
  padding: 16px 17px;
}

.customer-account-page .account-contract-help,
.customer-account-page .account-payment-note,
.customer-account-page .account-schedule-change-help,
.customer-account-page .account-schedule-change-note {
  font-size: 12px;
  line-height: 1.7;
}

.customer-account-page .account-schedule-change {
  margin-top: 22px;
  padding: 21px;
  gap: 17px;
}

.customer-account-page .account-schedule-change-heading strong {
  font-size: 17px;
}

/* Secondary cancellation open/close control stays visually secondary. */
.customer-account-page .account-schedule-change > .account-quote-action.is-decline {
  justify-self: start;
  width: auto;
  min-width: 150px;
  min-height: 40px;
  padding: 8px 15px;
}

.customer-account-page .account-booking-history {
  margin-top: 20px;
}

.customer-account-page .account-booking-history > summary {
  min-height: 82px;
  padding: 18px 19px;
}

.customer-account-page .account-booking-history > summary strong {
  font-size: 16px;
}

.customer-account-page .account-booking-history > summary small {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.45;
}

.customer-account-page .account-booking-history-body {
  padding: 2px 20px 20px;
}

.customer-account-page .account-booking-history-item {
  padding: 19px 0;
}

.customer-account-page .account-booking-history-item-heading strong {
  font-size: 13px;
}

.customer-account-page .account-booking-history-item-heading span,
.customer-account-page .account-booking-history-copy > p,
.customer-account-page .account-booking-history-schedule {
  font-size: 11px;
}

.customer-account-page .account-booking-amendment > summary {
  padding: 13px 15px;
}

.customer-account-page .account-booking-amendment > summary span {
  font-size: 11px;
}

.customer-account-page .account-booking-amendment-body {
  gap: 15px;
  padding: 15px;
}

.customer-account-page .account-booking-amendment-text {
  padding: 14px 15px;
  font-size: 11px;
  line-height: 1.7;
}

.customer-account-page .account-booking-amendment-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  gap: 8px 18px;
  padding-top: 2px;
  font-size: 10px;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .customer-account-page .account-event-summary {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }

  .customer-account-page .account-event-summary-side {
    grid-template-columns: auto 1fr auto;
    justify-items: start;
  }

  .customer-account-page .account-event-summary-total {
    justify-self: end;
  }

  .customer-account-page .account-event-card-body {
    padding: 20px;
  }

  .customer-account-page .account-booking-amendment-proof {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .customer-account-page .account-event-summary-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .customer-account-page .account-event-summary-side {
    grid-template-columns: 1fr auto;
  }

  .customer-account-page .account-event-summary-side .account-quote-version {
    grid-column: 1 / -1;
  }

  .customer-account-page .account-event-summary-total {
    justify-self: start;
  }
}


/* =========================================================
   V16.8.1.1 — CUSTOMER PRICING LAYOUT CORRECTION
   Travel remains part of internal pricing/admin records,
   but it is not shown as a separate customer-facing box here.
   ========================================================= */

.customer-account-page .account-quote-pricing {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "total total"
    "deposit remaining";
}

.customer-account-page .account-quote-pricing .account-quote-row:nth-child(1) {
  grid-area: total;
  min-height: 86px;
  border-color: rgba(57, 209, 225, .28);
  background: linear-gradient(135deg, #effbfc 0%, #f7fdfd 100%);
}

.customer-account-page .account-quote-pricing .account-quote-row:nth-child(1) .account-quote-row-value {
  color: #167b85;
  font-size: 22px;
}

.customer-account-page .account-quote-pricing .account-quote-row:nth-child(2) {
  grid-area: deposit;
}

.customer-account-page .account-quote-pricing .account-quote-row:nth-child(3) {
  grid-area: remaining;
}

.customer-account-page .account-quote-pricing .account-quote-row:nth-child(3) {
  border-color: rgba(57, 209, 225, .22);
  background: #f3fbfc;
}

@media (max-width: 680px) {
  .customer-account-page .account-quote-pricing {
    grid-template-columns: 1fr;
    grid-template-areas:
      "total"
      "deposit"
      "remaining";
  }
}


/* =========================================================
   V16.8.2 — COLLAPSIBLE EVENT DETAIL SECTIONS + CARD DEPTH
   ========================================================= */

.customer-account-page .account-event-card-body {
  gap: 15px;
  background:
    linear-gradient(
      180deg,
      rgba(247, 252, 253, .45) 0%,
      rgba(255, 255, 255, 0) 220px
    );
}

.customer-account-page .account-detail-accordion {
  overflow: hidden;
  border: 1px solid rgba(37, 111, 120, .13);
  border-radius: 20px;
  background: rgba(255, 255, 255, .96);
  box-shadow:
    0 7px 20px rgba(32, 79, 86, .055),
    0 1px 3px rgba(32, 79, 86, .035);
  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}

.customer-account-page .account-detail-accordion:hover {
  border-color: rgba(35, 127, 136, .23);
  box-shadow:
    0 12px 30px rgba(32, 79, 86, .085),
    0 2px 5px rgba(32, 79, 86, .04);
  transform: translateY(-1px);
}

.customer-account-page .account-detail-accordion[open] {
  border-color: rgba(35, 127, 136, .2);
  background: #fff;
  box-shadow:
    0 14px 36px rgba(32, 79, 86, .08),
    0 2px 6px rgba(32, 79, 86, .035);
  transform: none;
}

.customer-account-page .account-detail-accordion > summary {
  list-style: none;
}

.customer-account-page .account-detail-accordion > summary::-webkit-details-marker {
  display: none;
}

.customer-account-page .account-detail-accordion-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 88px;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
}

.customer-account-page .account-detail-accordion-summary:focus-visible {
  outline: 3px solid rgba(57, 209, 225, .25);
  outline-offset: -3px;
}

.customer-account-page .account-detail-accordion-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.customer-account-page .account-detail-accordion-title {
  color: #153f45;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.018em;
}

.customer-account-page .account-detail-accordion-subtitle {
  color: #71878b;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
}

.customer-account-page .account-detail-accordion-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 11px;
}

.customer-account-page .account-detail-accordion-badge {
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.customer-account-page .account-detail-accordion-badge.is-success {
  background: #e3f6ea;
  color: #267349;
}

.customer-account-page .account-detail-accordion-badge.is-negative {
  background: #fbe7e9;
  color: #a44351;
}

.customer-account-page .account-detail-accordion-badge.is-attention {
  background: #fff5df;
  color: #956414;
}

.customer-account-page .account-detail-accordion-badge.is-neutral {
  background: #eaf7f8;
  color: #237b84;
}

.customer-account-page .account-detail-accordion-badge.is-muted {
  background: #f1f5f6;
  color: #6f8185;
}

.customer-account-page .account-detail-accordion-chevron {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: #eef9fa;
  color: #167d87;
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
  transform: rotate(90deg);
  transition:
    transform .2s ease,
    background .2s ease;
}

.customer-account-page .account-detail-accordion[open]
  .account-detail-accordion-chevron {
  transform: rotate(-90deg);
  background: #dcf5f7;
}

.customer-account-page .account-detail-accordion[open]
  > .account-detail-accordion-summary {
  border-bottom: 1px solid #e5eef0;
  background:
    linear-gradient(
      90deg,
      rgba(238, 249, 250, .72),
      rgba(255, 255, 255, .96)
    );
}

.customer-account-page .account-detail-accordion-body {
  padding: 18px;
}

/* Remove the old "card inside a card" depth when a major section is expanded.
   The outer accordion now owns the border/shadow hierarchy. */
.customer-account-page .account-detail-accordion-body > .account-payment-card,
.customer-account-page .account-detail-accordion-body > .account-booked-payment-card,
.customer-account-page .account-detail-accordion-body > .account-contract-card,
.customer-account-page .account-detail-accordion-body > .account-booking-card,
.customer-account-page .account-detail-accordion-body > .account-schedule-change,
.customer-account-page .account-detail-accordion-body > .account-booking-history,
.customer-account-page .account-detail-accordion-body > .account-quote-messages {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* The accordion summary is now the major title/status area. */
.customer-account-page .account-detail-accordion-body
  > .account-payment-card
  > .account-payment-heading,
.customer-account-page .account-detail-accordion-body
  > .account-booked-payment-card
  > .account-payment-heading,
.customer-account-page .account-detail-accordion-body
  > .account-contract-card
  > .account-contract-heading,
.customer-account-page .account-detail-accordion-body
  > .account-booking-card
  > .account-contract-heading {
  display: none;
}

.customer-account-page .account-detail-accordion-body
  > .account-payment-card,
.customer-account-page .account-detail-accordion-body
  > .account-booked-payment-card,
.customer-account-page .account-detail-accordion-body
  > .account-contract-card,
.customer-account-page .account-detail-accordion-body
  > .account-booking-card {
  padding: 2px;
}

/* Schedule/cancellation cards retain their action-specific inner heading,
   but lose their extra outer border. */
.customer-account-page .account-detail-accordion-body
  > .account-schedule-change {
  padding: 3px;
}

.customer-account-page .account-detail-accordion-body
  > .account-schedule-change
  .account-schedule-change-heading {
  padding-bottom: 13px;
}

.customer-account-page .account-detail-accordion-body
  > .account-schedule-change
  .account-schedule-change-heading strong {
  font-size: 16px;
}

/* Existing History + Messages details are embedded inside the new major cards. */
.customer-account-page .account-booking-history.is-embedded > summary,
.customer-account-page .account-quote-messages.is-embedded > summary {
  display: none;
}

.customer-account-page .account-booking-history.is-embedded
  .account-booking-history-body {
  padding: 0;
}

.customer-account-page .account-quote-messages.is-embedded
  .account-message-content {
  padding: 0;
  border-top: 0;
}

.customer-account-page .account-booking-history.is-embedded,
.customer-account-page .account-quote-messages.is-embedded {
  overflow: visible;
}

/* The always-visible quote/service summary remains flatter than the
   actionable accordions so visual depth means "clickable detail." */
.customer-account-page .account-quote-services {
  border-color: rgba(37, 111, 120, .08);
  box-shadow: none;
}

/* Stronger section hierarchy inside expanded content. */
.customer-account-page .account-detail-accordion-body
  .account-quote-section-label {
  font-size: 11px;
  letter-spacing: .14em;
}

.customer-account-page .account-detail-accordion-body
  .account-booking-row,
.customer-account-page .account-detail-accordion-body
  .account-booked-payment-stat,
.customer-account-page .account-detail-accordion-body
  .account-quote-row {
  min-height: 67px;
}

/* Keep destructive/secondary controls from competing with section titles. */
.customer-account-page .account-detail-accordion-body
  .account-quote-action.is-decline {
  box-shadow: none;
}

@media (max-width: 720px) {
  .customer-account-page .account-detail-accordion-summary {
    min-height: 82px;
    padding: 16px;
  }

  .customer-account-page .account-detail-accordion-title {
    font-size: 18px;
  }

  .customer-account-page .account-detail-accordion-side {
    gap: 8px;
  }

  .customer-account-page .account-detail-accordion-body {
    padding: 15px;
  }
}

@media (max-width: 520px) {
  .customer-account-page .account-detail-accordion-summary {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .customer-account-page .account-detail-accordion-side {
    justify-content: space-between;
  }

  .customer-account-page .account-detail-accordion-badge {
    white-space: normal;
  }
}


/* =========================================================
   V16.8.3 — CUSTOMER MICRO-POLISH
   ========================================================= */
.customer-account-page .account-detail-accordion-summary {
  padding-top: 20px;
  padding-bottom: 20px;
}

.customer-account-page .account-detail-accordion-body
  > .account-booking-card
  > p:last-child,
.customer-account-page .account-detail-accordion-body
  > .account-booking-card
  > .account-booking-help {
  margin-top: 8px;
}


/* =========================================================
   V16.8.4.10 — CUSTOMER PAID-IN-FULL CONFIRMATION
   ========================================================= */

.customer-account-page .account-booked-payment-complete {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 17px;
  border: 1px solid #c7e8d4;
  border-radius: 15px;
  background: #effaf3;
  color: #246d49;
}

.customer-account-page .account-booked-payment-complete-icon {
  display: grid;
  place-items: center;
  flex: 0 0 29px;
  width: 29px;
  height: 29px;
  border-radius: 999px;
  background: #dff3e7;
  font-size: 16px;
  font-weight: 950;
}

.customer-account-page .account-booked-payment-complete > div {
  display: grid;
  gap: 3px;
}

.customer-account-page .account-booked-payment-complete strong {
  font-size: 14px;
  line-height: 1.3;
}

.customer-account-page .account-booked-payment-complete span:not(.account-booked-payment-complete-icon) {
  color: #557a67;
  font-size: 12px;
  line-height: 1.5;
}




/* =========================================================
   V16.8.4.12 — PAID EVENT SUMMARY RIGHT-SIDE STATUS
   ========================================================= */

.customer-account-page .account-event-summary-total.is-paid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 12px;
  border: 1px solid rgba(51, 150, 96, .10);
  border-radius: 999px;
  background: #e9f8ee;
  color: #26734b;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}


/* =========================================================
   V16.8.4.14 — 12-HOUR SCHEDULE CHANGE TIME INPUTS
   ========================================================= */

.customer-account-page .account-schedule-change-time12 {
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
}

.customer-account-page .account-schedule-change-time12::placeholder {
  color: #8aa1a5;
  opacity: 1;
}


/* =========================================================
   V16.8.4.17 — NON-REFUNDABLE CANCELLATION POLICY
   ========================================================= */

.customer-account-page .account-cancellation-policy {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 18px 20px;
  border: 2px solid #cf4e5d;
  border-radius: 18px;
  background: #fff4f5;
  box-shadow: 0 10px 28px rgba(102, 26, 38, .10);
}

.customer-account-page .account-cancellation-policy-eyebrow {
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1.3;
  color: #a62f40;
}

.customer-account-page .account-cancellation-policy-title {
  font-size: 1.12rem;
  font-weight: 900;
  line-height: 1.3;
  color: #6d2230;
}

.customer-account-page .account-cancellation-policy-body {
  margin: 0;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.55;
  color: #6d3540;
}

.customer-account-page .account-cancellation-policy-agreement {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border: 2px solid #e0a34e;
  border-radius: 16px;
  background: #fff9ef;
  cursor: pointer;
}

.customer-account-page .account-cancellation-policy-agreement span {
  font-size: .94rem;
  font-weight: 800;
  line-height: 1.5;
  color: #573f1f;
}

.customer-account-page .account-cancellation-policy-checkbox {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  flex: 0 0 22px;
  accent-color: #1ba9ba;
}

.customer-account-page .account-quote-action.is-decline:disabled {
  opacity: .42;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 700px) {
  .customer-account-page .account-cancellation-policy {
    padding: 16px;
  }

  .customer-account-page .account-cancellation-policy-agreement {
    padding: 14px;
  }
}


/* =========================================================
   V16.8.4.18 — CANCELLATION REQUEST SENT CONFIRMATION
   ========================================================= */

.customer-account-page .account-cancellation-sent-notice {
  display: grid;
  gap: 5px;
  margin-top: 14px;
  padding: 15px 18px;
  border: 1.5px solid #e7b75f;
  border-radius: 15px;
  background: #fff7df;
  box-shadow: 0 7px 18px rgba(111, 78, 20, .07);
}

.customer-account-page .account-cancellation-sent-title {
  font-size: .98rem;
  font-weight: 900;
  line-height: 1.35;
  color: #865a12;
}

.customer-account-page .account-cancellation-sent-body {
  font-size: .90rem;
  font-weight: 700;
  line-height: 1.5;
  color: #72521d;
}

@media (max-width: 700px) {
  .customer-account-page .account-cancellation-sent-notice {
    padding: 14px 15px;
  }
}


/* =========================================================
   V16.8.4.47 — EXPLICIT US DATE + NATIVE CALENDAR PICKER
   ========================================================= */

.customer-account-page .account-schedule-change-date-control {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  overflow: hidden;
  width: 100%;
  min-height: 43px;
  border: 1px solid #d7e6e8;
  border-radius: 11px;
  background: #fff;
  box-sizing: border-box;
}

.customer-account-page
  .account-schedule-change-fields
  .account-schedule-change-date-control
  > input[type="text"] {
  min-width: 0;
  min-height: 41px;
  padding: 9px 11px;
  border: 0;
  border-radius: 0;
  outline: 0;
  font-variant-numeric: tabular-nums;
}

.customer-account-page
  .account-schedule-change-date-control:focus-within {
  border-color: #39c5d4;
  box-shadow: 0 0 0 3px rgba(57, 209, 225, .16);
}

.customer-account-page .account-schedule-change-calendar-icon {
  display: grid;
  place-items: center;
  border-left: 1px solid #d7e6e8;
  background: #f1fbfc;
  color: #147781;
  pointer-events: none;
}

.customer-account-page .account-schedule-change-calendar-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.customer-account-page
  .account-schedule-change-fields
  .account-schedule-change-calendar-input {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  width: 46px;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  opacity: 0;
  cursor: pointer;
}


/* =========================================================
   V16.9 — SQUARE HOSTED CHECKOUT
   ========================================================= */

.customer-account-page .account-payment-method-picker {
  display: grid;
  gap: 14px;
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(35, 127, 136, .18);
  border-radius: 18px;
  background: #fbfefe;
}

.customer-account-page .account-payment-method-legend {
  width: 100%;
  padding: 0;
  color: #173f44;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.35;
}

.customer-account-page .account-payment-method-helper {
  margin: -5px 0 0;
  color: #617377;
  font-size: .84rem;
  font-weight: 650;
  line-height: 1.55;
}

.customer-account-page .account-payment-method-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 10px;
}

.customer-account-page .account-payment-method-choice {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}

.customer-account-page .account-payment-method-choice > input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.customer-account-page .account-payment-method-choice-card {
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 78px;
  height: 100%;
  padding: 12px 13px;
  border: 1px solid #d7e9eb;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(23, 63, 68, .05);
  overflow-wrap: anywhere;
  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease,
    box-shadow .16s ease;
}

.customer-account-page .account-payment-method-choice-card strong {
  color: #173f44;
  font-size: .9rem;
  font-weight: 900;
  line-height: 1.3;
}

.customer-account-page .account-payment-method-choice-card > span {
  color: #526a6e;
  font-size: .73rem;
  font-weight: 650;
  line-height: 1.4;
}

.customer-account-page .account-payment-method-choice:hover .account-payment-method-choice-card {
  transform: translateY(-1px);
  border-color: rgba(35, 127, 136, .38);
  box-shadow: 0 8px 18px rgba(23, 63, 68, .09);
}

.customer-account-page .account-payment-method-choice > input:checked + .account-payment-method-choice-card {
  border-color: #237f88;
  background: linear-gradient(135deg, #eafafb, #ffffff);
  box-shadow:
    0 0 0 2px rgba(57, 209, 225, .17),
    0 8px 18px rgba(23, 63, 68, .09);
}

.customer-account-page .account-payment-method-choice > input:focus + .account-payment-method-choice-card {
  outline: 3px solid #176f78;
  outline-offset: 3px;
}

.customer-account-page .account-payment-method-details {
  min-width: 0;
}

.customer-account-page .account-payment-method-arrangement {
  display: grid;
  gap: 9px;
  padding: 17px;
  border: 1px solid rgba(35, 127, 136, .18);
  border-radius: 16px;
  background: linear-gradient(135deg, #f3fcfd, #ffffff);
}

.customer-account-page .account-payment-method-arrangement-title {
  color: #173f44;
  font-size: .95rem;
  font-weight: 900;
  line-height: 1.35;
}

.customer-account-page .account-payment-method-arrangement > p {
  margin: 0;
  color: #617377;
  font-size: .82rem;
  font-weight: 650;
  line-height: 1.55;
}

.customer-account-page .account-payment-method-arrangement .account-payment-method-unrecorded {
  padding: 11px 12px;
  border: 1px solid #e9d49d;
  border-radius: 12px;
  background: #fff9e8;
  color: #75561e;
  font-weight: 750;
}

.customer-account-page .account-payment-method-message-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 11px 17px;
  border: 1px solid #237f88;
  border-radius: 13px;
  background: #fff;
  color: #176f78;
  font: inherit;
  font-size: .92rem;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition:
    transform .16s ease,
    background .16s ease,
    box-shadow .16s ease;
}

.customer-account-page .account-payment-method-message-button:hover {
  transform: translateY(-1px);
  background: #effbfc;
  box-shadow: 0 9px 18px rgba(23, 63, 68, .1);
}

.customer-account-page .account-payment-method-message-button:focus {
  outline: 3px solid #176f78;
  outline-offset: 3px;
}

.customer-account-page .account-payment-method-status {
  color: #617377;
  font-size: .82rem;
  font-weight: 750;
  line-height: 1.45;
}

.customer-account-page .account-payment-method-status:empty {
  display: none;
}

.customer-account-page .account-payment-method-status.is-success {
  color: #277445;
}

.customer-account-page .account-payment-method-status.is-error {
  color: #a63131;
}

.customer-account-page .account-payment-deposit-disclosure {
  margin: 0;
  padding: 12px 14px;
  border-left: 4px solid #d6a33a;
  border-radius: 10px;
  background: #fff9e8;
  color: #75561e;
  font-size: .8rem;
  font-weight: 750;
  line-height: 1.55;
}

.customer-account-page .account-square-checkout {
  display: grid;
  gap: 9px;
  padding: 17px;
  border: 1px solid rgba(35, 127, 136, .18);
  border-radius: 16px;
  background: linear-gradient(135deg, #f3fcfd, #ffffff);
}

.customer-account-page .account-square-checkout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid #173f44;
  border-radius: 13px;
  background: #173f44;
  box-shadow: 0 9px 20px rgba(23, 63, 68, .14);
  color: #fff;
  font: inherit;
  font-size: .96rem;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition:
    transform .16s ease,
    background .16s ease,
    box-shadow .16s ease;
}

.customer-account-page .account-square-checkout-button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #0f3135;
  box-shadow: 0 12px 24px rgba(23, 63, 68, .19);
}

.customer-account-page .account-square-checkout-button:focus {
  outline: 3px solid #176f78;
  outline-offset: 3px;
}

.customer-account-page .account-square-checkout-button:disabled {
  opacity: .68;
  cursor: wait;
}

.customer-account-page .account-square-checkout-help {
  margin: 0;
  color: #617377;
  font-size: .82rem;
  font-weight: 650;
  line-height: 1.55;
}

.customer-account-page .account-square-checkout-status {
  min-height: 0;
  color: #617377;
  font-size: .82rem;
  font-weight: 750;
  line-height: 1.45;
}

.customer-account-page .account-square-checkout-status:empty {
  display: none;
}

.customer-account-page .account-square-checkout-status.is-working {
  color: #176f78;
}

.customer-account-page .account-square-checkout-status.is-error {
  color: #a63131;
}

.customer-account-page .account-square-return-notice {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid #d7e9eb;
  border-radius: 14px;
  font-size: .88rem;
  font-weight: 750;
  line-height: 1.5;
}

.customer-account-page .account-square-return-notice.is-pending {
  border-color: #e9d49d;
  background: #fff9e8;
  color: #75561e;
}

.customer-account-page .account-square-return-notice.is-confirmed {
  border-color: #bfe4ce;
  background: #effbf3;
  color: #277445;
}

.customer-account-page .account-square-return-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  font-size: .95rem;
  font-weight: 950;
}

@media (max-width: 700px) {
  .customer-account-page .account-payment-method-picker {
    padding: 14px;
  }

  .customer-account-page .account-payment-method-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-account-page .account-payment-method-arrangement {
    padding: 14px;
  }

  .customer-account-page .account-square-checkout {
    padding: 14px;
  }

  .customer-account-page .account-square-checkout-button {
    min-height: 46px;
    padding-inline: 14px;
  }
}

@media (max-width: 420px) {
  .customer-account-page .account-payment-method-choices {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   V17.0 — SHARED MESSAGE PHOTO ATTACHMENTS
   ========================================================= */

.account-message-photo-tools {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.account-message-photo-tools > span {
  color: #6a7d81;
  font-size: 10px;
}

.account-message-photo-button {
  min-height: 38px;
  border: 1px solid #cfe2e5;
  border-radius: 11px;
  padding: 0 13px;
  background: #fff;
  color: var(--nerys-teal, #237f88);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.account-message-photo-button:disabled {
  cursor: wait;
  opacity: .6;
}

.account-message-photo {
  position: relative;
  display: grid;
  width: min(100%, 280px);
  min-height: 120px;
  place-items: center;
  overflow: hidden;
  border: 0;
  border-radius: 13px;
  padding: 0;
  background: rgba(57, 209, 225, .11);
  color: var(--nerys-teal, #237f88);
  font: inherit;
  cursor: pointer;
}

.account-message-photo img {
  display: block;
  width: 100%;
  max-height: 230px;
  object-fit: cover;
}

.account-message-photo.is-loaded > span {
  display: none;
}

.account-message-photo.is-error {
  color: #a63131;
  cursor: default;
}

.account-message-photo-modal {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(8, 18, 20, .88);
}

.account-message-photo-modal img {
  display: block;
  max-width: min(1100px, 94vw);
  max-height: 88vh;
  border-radius: 16px;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .36);
}

.account-message-photo-modal-close {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  right: 18px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px;
  background: rgba(16, 28, 30, .74);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 520px) {
  .account-message-photo-tools {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-message-photo-button {
    width: 100%;
  }
}
