/* Page-scoped custom plan preview, using the public site's existing brand tokens. */
[data-custom-plan-open][hidden], .custom-plan-entry[hidden], .cp-dialog:not([open]) { display: none; }
.custom-plan-entry { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 32px; padding: 25px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(110deg, #f4fbfc, var(--background)); }
.custom-plan-entry-title { font-family: Manrope, sans-serif; font-size: 1.35rem; margin: 6px 0; color: var(--ink); }
.custom-plan-entry p { color: var(--muted); font-size: .875rem; margin: 0; max-width: 640px; }
.custom-plan-entry > .btn { flex-shrink: 0; }
.custom-plan-is-open { overflow: hidden; }
.cp-dialog { position: fixed; inset: 0; margin: auto; width: min(1480px, calc(100% - 48px)); height: min(1040px, calc(100vh - 48px)); height: min(1040px, calc(100dvh - 48px)); max-height: none; max-width: none; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); box-shadow: 0 35px 120px rgba(5, 27, 45, .35); overflow: hidden; }
.cp-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.cp-dialog::backdrop { background: rgba(12, 33, 56, .72); backdrop-filter: blur(2px); }
.cp-header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px) 44px; align-items: start; gap: 12px 20px; padding: 26px 30px 22px; }
.cp-heading h2 { font-family: Manrope, sans-serif; font-size: clamp(1.5rem, 2.7vw, 2.2rem); line-height: 1.2; letter-spacing: -.045em; margin: 0 0 5px; }
.cp-heading p { margin: 0; font-size: 1rem; color: #4c657c; }
.cp-header-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.cp-currency-info { min-width: 0; text-align: right; }
.cp-header-controls select { border: 1px solid #bdcedd; border-radius: 8px; background: #fff; color: var(--ink); padding: 7px 28px 7px 12px; max-width: 100%; min-height: 40px; }
.cp-close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); }
.cp-close:hover { background: var(--background); }
.cp-close svg { width: 25px; height: 25px; }
.cp-form { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; margin: 0; }
.cp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 24px; padding: 0 30px 24px; }
.cp-scroll { min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.cp-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; min-width: 0; }
.cp-category-column { display: grid; align-content: start; gap: 12px; min-width: 0; }
.cp-category { border: 1px solid var(--line); border-radius: 9px; background: #fff; min-width: 0; }
.cp-category-heading { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) 32px auto; align-items: center; gap: 8px; padding: 2px 12px; border-radius: 8px 8px 0 0; background: linear-gradient(90deg, #ddf6f8, #c9f0f5); }
.cp-icon { display: inline-flex; align-items: center; color: #11506a; flex-shrink: 0; }
.cp-icon svg { display: block; width: 21px; height: 21px; }
.cp-category-title { font-size: .9375rem; line-height: 1.35; font-weight: 800; letter-spacing: -.02em; margin: 0; overflow-wrap: anywhere; }
.cp-category-subtotal { font-size: .875rem; font-weight: 800; text-align: right; overflow-wrap: anywhere; }
.cp-help summary { position: relative; display: grid; place-items: center; list-style: none; width: 32px; min-height: 36px; font-family: Georgia, serif; color: #16475d; cursor: pointer; font-size: .875rem; }
.cp-help summary::-webkit-details-marker { display: none; }
.cp-help summary::before { position: absolute; content: ''; inset: -4px -6px; }
.cp-help summary::after { position: absolute; content: ''; width: 15px; height: 15px; border: 1px solid currentColor; border-radius: 50%; }
.cp-help-content { position: absolute; top: calc(100% - 2px); right: 8px; z-index: 2; width: min(300px, calc(100% - 16px)); margin: 0; padding: 13px 15px; border: 1px solid #c7dde8; border-radius: 9px; background: #fff; box-shadow: var(--shadow); color: var(--ink); font-size: .8125rem; font-weight: 400; line-height: 1.6; }
.cp-option { display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; align-items: center; gap: 10px; padding: 3px 12px; border-top: 1px solid #edf2f6; transition: background .15s; }
.cp-option.is-selected { background: #f7fcfd; }
.cp-option:last-child { border-radius: 0 0 8px 8px; }
.cp-option-description { min-width: 0; }
.cp-option-label { display: block; cursor: pointer; color: #52697f; font-size: .8125rem; line-height: 1.5; overflow-wrap: anywhere; }
.cp-option--fixed .cp-option-label { cursor: default; }
.cp-included-check { display: grid; place-items: center; width: 44px; color: #13745e; font-size: 1.125rem; font-weight: 800; }
.is-selected .cp-option-label { color: var(--ink); font-weight: 700; }
.cp-option-detail { display: block; color: var(--muted); font-size: .6875rem; line-height: 1.5; }
.cp-option-price { color: #536b80; font-size: .8125rem; line-height: 1.4; text-align: right; overflow-wrap: anywhere; }
.is-selected .cp-option-price { color: var(--ink); }
.cp-switch { position: relative; display: grid; place-items: center; width: 44px; height: 38px; cursor: pointer; }
.cp-switch-input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cp-switch-track { position: relative; display: block; width: 40px; height: 22px; border: 1px solid #aab8c7; border-radius: 30px; background: #b4c0cf; transition: background .15s, border-color .15s; }
.cp-switch-track::after { position: absolute; content: ''; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #16334d24; transition: transform .15s; }
.cp-switch-input:checked + .cp-switch-track { background: #0ba7c8; border-color: #0ba7c8; }
.cp-switch-input:checked + .cp-switch-track::after { transform: translateX(18px); }
.cp-switch-input:focus-visible + .cp-switch-track { outline: 3px solid #1685af; outline-offset: 3px; }
.cp-stepper { display: inline-flex; align-items: center; margin: 7px 0 4px; border: 1px solid #c8d7e4; border-radius: 8px; background: #fff; overflow: hidden; max-width: 100%; }
.cp-stepper:focus-within { outline: 3px solid #1685af; outline-offset: 3px; }
.cp-quantity-error { display: block; color: #a12230; font-size: .75rem; line-height: 1.5; }
.cp-quantity-error[hidden] { display: none; }
.cp-stepper button { width: 36px; height: 34px; border: 0; background: #f7fafc; color: var(--ink); font-size: 1rem; }
.cp-stepper input { width: 52px; min-width: 0; border: 0; padding: 4px; background: #fff; color: var(--ink); font-weight: 700; text-align: center; font-size: .875rem; appearance: textfield; -moz-appearance: textfield; }
.cp-stepper input::-webkit-inner-spin-button, .cp-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.cp-dialog button:disabled { opacity: .5; cursor: not-allowed; }
.cp-summary { position: sticky; top: 0; min-width: 0; padding: 25px 23px 20px; border: 1px solid #143b56; border-radius: 15px; background: linear-gradient(140deg, var(--navy2), var(--navy)); color: white; box-shadow: 0 10px 25px #102c4514; }
.cp-summary-lines { display: grid; gap: 11px; margin: 0; }
.cp-summary-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; font-size: .875rem; }
.cp-summary-line dt { color: #e2edf5; overflow-wrap: anywhere; }
.cp-summary-line dd { margin: 0; font-family: Manrope, sans-serif; font-weight: 800; text-align: right; overflow-wrap: anywhere; }
.cp-summary-total { border-bottom: 1px solid #718594; padding-bottom: 20px; margin-bottom: 22px; }
.cp-summary-total p { font-size: .875rem; color: #d4e5ef; margin: 0 0 4px; }
.cp-total-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.cp-total-line strong { font-family: Manrope, sans-serif; font-size: clamp(2.25rem, 4vw, 3.5rem); font-weight: 800; line-height: 1.2; letter-spacing: -.045em; color: #57d5e6; overflow-wrap: anywhere; max-width: 100%; }
.cp-total-line > span { font-size: .8125rem; color: #e2edf5; }
.cp-summary-notice { font-size: .75rem; line-height: 1.6; color: #dae9f2; margin: 12px 0 22px; }
.cp-currency-note { color: var(--muted); font-size: .75rem; line-height: 1.6; margin: 0 0 3px; }
.cp-rate-attribution { color: #1c7997; font-size: .75rem; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.cp-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 30px; border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -6px 18px #13243a03; }
.cp-footer p { color: var(--muted); font-size: .75rem; line-height: 1.5; margin: 0; }
.cp-footer-total { display: none; }
.cp-footer-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cp-footer-actions .btn { font-size: .8125rem; min-height: 44px; padding: 11px 18px; }
@media (max-width: 74rem) {
  .cp-layout { grid-template-columns: minmax(0, 1fr); }
  .cp-summary { position: static; }
}
@media (max-width: 64rem) {
  .cp-layout { gap: 18px; padding-inline: 20px; }
  .cp-header, .cp-footer { padding-inline: 20px; }
  .cp-summary { padding: 20px 18px; }
  .cp-header { grid-template-columns: minmax(0, 1fr) 44px; }
  .cp-header-controls { grid-column: 1 / -1; grid-row: 2; }
  .cp-currency-info { text-align: left; }
  .cp-close { grid-column: 2; grid-row: 1; }
}
@media (max-width: 52rem) {
  .custom-plan-entry { align-items: start; flex-direction: column; }
  .cp-dialog { width: calc(100% - 24px); height: calc(100vh - 24px); height: calc(100dvh - 24px); border-radius: 17px; }
  .cp-layout { grid-template-columns: minmax(0, 1fr); padding: 0 18px 18px; gap: 20px; }
  .cp-sections { grid-template-columns: minmax(0, 1fr); }
  .cp-header { padding: 20px 18px 14px; }
  .cp-summary { position: static; }
  .cp-footer { padding: 12px 18px; flex-wrap: wrap; }
  .cp-footer-total { display: block; color: var(--ink); font-size: .875rem; }
  .cp-footer > div, .cp-footer-actions { width: 100%; }
  .cp-footer-actions .btn { flex: 1; }
  .cp-stepper input { font-size: 1rem; }
}
@media (max-width: 36rem) {
  .cp-option { grid-template-columns: minmax(0, 1fr) 44px; gap: 2px 10px; padding: 8px 12px; }
  .cp-option-description { grid-column: 1; grid-row: 1; }
  .cp-option-price { grid-column: 1; grid-row: 2; text-align: left; }
  .cp-switch, .cp-included-check { grid-column: 2; grid-row: 1 / span 2; }
  .cp-category-heading { padding-inline: 9px; gap: 5px; }
  .cp-footer-actions { gap: 8px; }
  .cp-footer-actions .btn { padding-inline: 10px; font-size: .75rem; }
}
@media (max-height: 38rem) {
  .cp-dialog[open] { display: block; overflow: auto; overscroll-behavior: contain; }
  .cp-form { display: block; }
  .cp-scroll { overflow: visible; }
  .cp-summary { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  .cp-option, .cp-switch-track, .cp-switch-track::after { transition: none; }
}
