/* Client cabinet: built from the shared price-page, reservation and path-card components in style.css.
   Only cabinet-specific glue lives here. */

.cabinet-lead { max-width: 720px; margin: 12px 0 0; color: #56697d; font-size: 14px; line-height: 1.6; }
.cabinet-icon { width: 16px; height: 16px; flex: 0 0 auto; }
.cabinet-heading { align-items: flex-end; }
.cabinet-signout { flex: 0 0 auto; margin: 0; }
.cabinet-page a:focus-visible, .cabinet-page button:focus-visible, .cabinet-page input:focus-visible, .cabinet-page summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* Buttons inside the shared action row (price-contact__actions only styles links). */
.price-contact__actions button { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 8px 11px; border: 1px solid #d9e3e6; border-radius: 7px; background: #fff; color: #244057; font: inherit; font-size: 10px; font-weight: 800; cursor: pointer; }
.price-contact__actions button:hover { border-color: #a9cbd5; background: #f8fbfc; }
.price-contact__actions > button:first-child { border-color: var(--yellow); background: var(--yellow); color: #1b2b3d; }
.price-contact__actions > button:first-child:hover { border-color: #edb900; background: #edb900; }
.price-contact__actions button[hidden] { display: none; }
.cabinet-signout button { border-color: #d9e3e6 !important; background: #fff !important; color: #244057 !important; }
.cabinet-actions { margin-top: 16px; justify-content: flex-start; }

/* Notices */
.cabinet-notice { margin: 0 0 16px; padding: 11px 14px; border: 1px solid #cfe6d9; border-radius: 9px; background: #f1faf5; color: #235a3d; font-size: 12px; line-height: 1.5; }
.cabinet-notice--error { border-color: #f0d3cd; background: #fff4f1; color: #8e3024; }
.cabinet-notice--demo { border-color: #dbe8eb; background: var(--ice); color: #45596c; }

/* Tabs reuse the home page path-card navigation. */
.cabinet-tabs { height: 66px; margin: 0 0 20px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cabinet-tabs .path-card { gap: 10px; padding: 8px 12px; }
.cabinet-tabs .path-card > .path-icon { flex-basis: 24px; width: 24px; height: 24px; }
.cabinet-tabs .path-card strong { font-size: 14px; letter-spacing: -.02em; white-space: nowrap; }
.cabinet-tabs .path-card small { font-size: 11px; white-space: nowrap; }
.cabinet-tabs .path-card:hover strong { color: #006fa5; }
.cabinet-tabs .path-card.is-active::after { height: 4px; }
.cabinet-tabs__referral small { color: #8a6400; font-weight: 800; }

/* Sidebar summary */
.price-facts dd small { display: block; margin-top: 2px; color: #718093; font-size: 10px; font-weight: 600; }
.price-facts dd a, .price-facts-card__price a { color: #006fa5; }

/* Main column panels */
.cabinet-panel + .cabinet-panel, .cabinet-panel + .cabinet-terms, .cabinet-pending + .cabinet-panel { margin-top: 17px; }
.cabinet-panel .price-editorial-note { margin-top: 14px; }
.cabinet-block { margin-top: 18px; padding-top: 15px; border-top: 1px solid #edf0f0; }
.cabinet-block > .price-facts-card__label { margin-bottom: 10px; }
.price-date-list li.is-highlight { border-color: #cfe3ea; background: var(--ice); color: #126c8b; }
.price-date-list li.is-warning { border-color: #f3dca6; background: #fff7e6; color: #8a5300; }

.cabinet-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.cabinet-facts > div { padding-top: 0; border-top: 0; }
.cabinet-facts--four { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 8px; }
.cabinet-progress { height: 6px; margin-top: 4px; overflow: hidden; border-radius: 6px; background: #edf1f2; }
.cabinet-progress span { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.cabinet-due { margin: 9px 0 0; color: #56697d; font-size: 11px; line-height: 1.5; }
.cabinet-due--soon { color: #8a5300; font-weight: 700; }
.cabinet-due--overdue { color: #b24f3f; font-weight: 700; }

.cabinet-docs { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.cabinet-docs a { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border: 1px solid #e2e9eb; border-radius: 7px; background: #f7fafb; color: #283e54; font-size: 11px; font-weight: 750; text-decoration: none; }
.cabinet-docs a:hover { border-color: #a9cbd5; background: #fff; }
.cabinet-docs .cabinet-icon { color: #117f9d; }
.cabinet-docs span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cabinet-docs small { color: #006fa5; font-size: 10px; font-weight: 800; }

.cabinet-checklist { margin-top: 18px; }
.cabinet-checklist summary [data-checklist-progress]:not(:empty) { margin-left: 6px; padding: 1px 6px; border-radius: 5px; background: var(--ice); color: #126c8b; font-size: 10px; }
.cabinet-checklist ul { display: grid; gap: 4px; margin: 8px 0 8px; padding: 0; list-style: none; }
.cabinet-checklist label, .cabinet-checkbox { display: flex; align-items: flex-start; gap: 8px; color: #40536a; font-size: 11px; line-height: 1.45; cursor: pointer; }
.cabinet-checklist input, .cabinet-checkbox input { width: 15px; height: 15px; margin: 1px 0 0; flex: 0 0 15px; accent-color: var(--blue); }
.cabinet-checklist input:checked + span { color: #8290a0; text-decoration: line-through; }

/* Lists of trips, saved trips and friends (same look as season cards) */
.cabinet-trip-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cabinet-trip-row { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid #e2e7e9; border-radius: 10px; background: #fff; }
.cabinet-trip-row__icon { width: 24px; height: 24px; flex: 0 0 24px; color: #117f9d; }
.cabinet-trip-row .reservation-step { flex: 0 0 31px; }
.cabinet-trip-row__copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.cabinet-trip-row__copy > a { color: inherit; text-decoration: none; }
.cabinet-trip-row__copy strong { color: #1b304a; font-size: 13px; font-weight: 800; line-height: 1.25; }
.cabinet-trip-row__copy > a:hover strong { color: #006fa5; }
.cabinet-trip-row__copy small { color: #7b8998; font-size: 11px; }
.cabinet-trip-row__links { display: flex; flex-wrap: wrap; gap: 3px 14px; }
.cabinet-trip-row__links a { color: #006fa5; font-size: 11px; font-weight: 700; text-underline-offset: 2px; }
.cabinet-trip-row form { margin: 0; }
.cabinet-remove { padding: 4px 0; border: 0; background: none; color: #687a8e; font: inherit; font-size: 10px; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.cabinet-remove:hover { color: #b24f3f; }

.reservation-type.cabinet-status--confirmed, .reservation-type.cabinet-status--ref-rewarded { background: #e8f5ec; color: #23784a; }
.reservation-type.cabinet-status--cancelled { background: #fdeeea; color: #a23f30; }
.reservation-type.cabinet-status--completed, .reservation-type.cabinet-status--ref-declined { background: #f1f3f3; color: #5d6d7c; }
.reservation-type.cabinet-status--ref-booked { background: #fff4cf; color: #7a5b00; }
.reservation-type { flex: 0 0 auto; white-space: nowrap; }

/* Offers */
.cabinet-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 13px; }
.cabinet-card { min-width: 0; display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.cabinet-card .price-facts-card__price { margin-bottom: 8px; }
.cabinet-card h3 { margin: 0 0 6px; color: var(--ink); font-size: 15px; font-weight: 800; line-height: 1.3; letter-spacing: -.02em; }
.cabinet-card > p:not([class]) { margin: 0 0 8px; color: #56697d; font-size: 12px; line-height: 1.55; }
.cabinet-card .price-extras { margin-top: 4px; }
.cabinet-card__foot { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.cabinet-card__foot .price-facts-card__hotels-link { margin: 0; }
.cabinet-card > .price-facts-card__action { margin-top: auto; }
.cabinet-hint { margin-top: 12px; }
.cabinet-inline-action { width: fit-content; margin-top: 14px; padding-inline: 18px; }
.cabinet-pending { margin-top: 0; }
.cabinet-pending form { margin: 0; }

/* Referral */
.cabinet-perks { margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cabinet-perks__icon { width: 28px; height: 28px; flex: 0 0 28px; color: #117f9d; }
.cabinet-perks strong { color: var(--ink); font-size: 16px; letter-spacing: -.02em; }
.cabinet-perks small { font-size: 11px; }
.cabinet-code { margin: 0 0 12px; letter-spacing: .04em; }
.cabinet-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cabinet-steps li { display: flex; align-items: flex-start; gap: 10px; color: #4d5e70; font-size: 12px; line-height: 1.5; }
.cabinet-steps strong { color: var(--ink); }
.cabinet-steps .reservation-step { flex: 0 0 26px; width: 26px; height: 26px; font-size: 12px; }
.reservation-form-card .cabinet-steps { margin: 20px 0 14px; padding-top: 16px; border-top: 1px solid #edf0f1; }
.cabinet-terms { margin-top: 17px; }
.cabinet-terms summary { color: #166c88; font-size: 11px; font-weight: 800; cursor: pointer; }
.cabinet-terms .price-rich-content { margin-top: 8px; font-size: 11px; }

/* Profile */
.cabinet-chips { margin-top: 2px; }
.cabinet-chips button { padding: 6px 9px; border: 1px solid #e2e9eb; border-radius: 6px; background: #f7fafb; color: #45576b; font: inherit; font-size: 11px; font-weight: 750; cursor: pointer; }
.cabinet-chips button:hover { border-color: #a9cbd5; }
.cabinet-chips button.is-added { border-color: #9fc9d6; background: var(--ice); color: #126c8b; }
.cabinet-chips button.is-added::before { content: "✓ "; }

.cabinet-page > .price-contact { margin-top: 22px; }

/* Copy feedback */
.cabinet-toast { position: fixed; left: 50%; bottom: 28px; z-index: 1000; padding: 10px 16px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; opacity: 0; transform: translate(-50%, 10px); transition: opacity .2s ease, transform .2s ease; pointer-events: none; }
.cabinet-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1100px) {
  .cabinet-tabs .path-card { justify-content: flex-start; }
  .cabinet-tabs .path-card small { display: none; }
}

@media (max-width: 700px) {
  .cabinet-heading { align-items: flex-start; }
  .cabinet-tabs { height: auto; margin: 0 -16px 16px; display: flex; overflow-x: auto; border-radius: 0; scrollbar-width: none; }
  .cabinet-tabs::-webkit-scrollbar { display: none; }
  .cabinet-tabs .path-card { flex: 0 0 auto; min-height: 52px; padding: 8px 14px; }
  .cabinet-tabs .path-card + .path-card { border-top: 0; border-left: 1px solid #e2e6e5; }
  .cabinet-layout .price-page__main { grid-row: 1; }
  .cabinet-layout .price-page__sidebar { grid-row: 2; }
  .cabinet-facts, .cabinet-facts--four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
  .cabinet-trip-row { flex-wrap: wrap; }
  .cabinet-trip-row > .reservation-type { margin-left: 36px; }
  .cabinet-perks { grid-template-columns: 1fr; gap: 10px; }
  .cabinet-perks > div + div { border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cabinet-toast { transition: none; }
}

/* The cabinet renders inside .site-route-page; keep that wrapper's generic heading spacing out. */
.client-cabinet-page .site-route-page { margin-top: 0; }
.site-route-page > .cabinet-page { padding-top: 24px; }
.cabinet-page .price-state h2 { margin: 0 0 10px; color: var(--ink); font-size: clamp(24px, 3vw, 30px); font-weight: 850; line-height: 1.15; letter-spacing: -.035em; }
.cabinet-page .price-state { margin-top: 10px; }
@media (max-width: 700px) {
  .cabinet-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cabinet-actions > :first-child { grid-column: 1 / -1; }
}
.price-section-heading > .reservation-type { align-self: flex-start; }

/* Referral promo card in the sidebar: the one deliberately loud block on the page. */
.cabinet-layout .price-page__sidebar { display: grid; gap: 14px; }
.cabinet-layout .price-facts-card { position: static; }
.cabinet-layout .cabinet-promo { order: -1; }
.cabinet-promo { position: relative; padding: 21px; display: grid; justify-items: start; gap: 8px; overflow: hidden; border-radius: 12px; background: linear-gradient(150deg, #fff3c4 0%, #ffe066 45%, var(--yellow) 100%); color: var(--ink); box-shadow: 0 4px 16px rgba(196, 150, 0, .18); }
.cabinet-promo::after { position: absolute; top: -48px; right: -48px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255, 255, 255, .35); content: ""; pointer-events: none; }
.cabinet-promo > * { position: relative; z-index: 1; }
.cabinet-promo__icon { width: 44px; height: 44px; margin-bottom: 4px; display: grid; place-items: center; border-radius: 11px; background: var(--ink); color: var(--yellow); }
.cabinet-promo__icon .cabinet-icon { width: 22px; height: 22px; }
.cabinet-promo__eyebrow { margin: 0; color: #6b5200; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.cabinet-promo h2 { margin: 0; color: var(--ink); font-size: 21px; font-weight: 850; line-height: 1.2; letter-spacing: -.035em; }
.cabinet-promo > p:not([class]) { margin: 0; color: #4c4320; font-size: 12px; line-height: 1.5; }
.cabinet-promo__earned { margin: 0; padding: 6px 10px; border-radius: 7px; background: rgba(255, 255, 255, .6); color: #4c4320; font-size: 11px; }
.cabinet-promo__earned strong { color: var(--ink); }
.cabinet-promo__code { margin-top: 2px; padding: 6px 11px; border: 1.5px dashed rgba(13, 26, 45, .35); border-radius: 8px; background: rgba(255, 255, 255, .55); color: #3b3418; font: inherit; font-size: 12px; cursor: copy; }
.cabinet-promo__code strong { color: var(--ink); letter-spacing: .05em; }
.cabinet-promo__code:hover { background: rgba(255, 255, 255, .8); }
.cabinet-promo__cta { margin-top: 4px; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 13px; font-weight: 850; text-decoration: none; }
.cabinet-promo__cta span { transition: transform .15s ease; }
.cabinet-promo:hover .cabinet-promo__cta span { transform: translateX(3px); }

@media (max-width: 700px) {
  /* Phones: promo card first, then the tab content, then the account summary. */
  .cabinet-layout .price-page__sidebar { display: contents; }
  .cabinet-layout .cabinet-promo { grid-row: 1; }
  .cabinet-layout .price-page__main { grid-row: 2; }
  .cabinet-layout .price-facts-card { grid-row: 3; }
  .cabinet-promo { padding: 18px; }
  .cabinet-promo h2 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { .cabinet-promo__cta span { transition: none; } }
