/* Booking pages: summary calendars and full-width customer details. */
.cdp-booking-hero { margin-top: 44px; }
.cdp-booking-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, 1fr); gap: 28px; max-width: 1320px; padding: 0 24px; margin: 0 auto 80px; align-items: start; }
.cdp-panel { background: #fff; border: 1px solid #efe6e5; border-radius: 20px; box-shadow: 0 8px 30px #53252706; padding: 28px; min-width: 0; }
.cdp-panel h2 { font-size: 1.4rem; line-height: 1.3; margin-bottom: 10px; }
.cdp-muted { color: #6d707d; }
.cdp-panel > .cdp-muted { margin-bottom: 22px; }
.cdp-booking-sidebar { display: grid; gap: 22px; min-width: 0; }
.cdp-booking-layout .booking-form { margin-top: 22px; }
.cdp-booking-layout .form-grid label, .cdp-edit-booking label { min-width: 0; }
.cdp-booking-layout input, .cdp-edit-booking input { min-width: 0; }
.cdp-fine-print { font-size: .82rem; color: #777985; margin: 14px 0 0; line-height: 1.65; }
.cdp-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 18px 22px; border-radius: 14px; margin: 20px 0; line-height: 1.5; }
.cdp-notice span { font-size: .9rem; }
.cdp-notice a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.cdp-notice--success { background: #eaf7f0; color: #246343; }
.cdp-notice--error { background: #fff0f0; color: #a0233c; }
.cdp-notice--pending { background: #fff4d8; color: #785400; border: 1px solid #f1d484; }
.booking-form .validation:has(ul) { padding: 16px; margin-bottom: 20px; border-radius: 10px; }
.validation-summary-valid { display: none; }
.cdp-month-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 20px 0; }
.cdp-month-nav a { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border: 1px solid #ebdddd; border-radius: 10px; font-size: 1.7rem; line-height: 1; background: #fff; }
.cdp-month-nav a:hover { background: #fff0ef; border-color: #d58687; }
.cdp-month-nav strong { font-size: 1rem; }
.cdp-month-nav h2 { font-size: 1.15rem; margin: 0; }
.cdp-public-grid, .cdp-public-weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.cdp-public-weekdays { margin-bottom: 9px; color: #7b7280; text-align: center; font-size: .75rem; font-weight: 700; }
.cdp-public-day { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; padding: 9px 2px; border: 1px solid #eee6e5; border-radius: 9px; background: #fff; color: #46404b; cursor: pointer; font: inherit; transition: background .15s, border-color .15s; }
.cdp-public-day strong { font-size: .86rem; margin-bottom: 3px; }
.cdp-public-day span { display: block; font-size: .64rem; white-space: nowrap; line-height: 1.6; }
.cdp-public-day .is-full { color: #ad3f51; font-weight: 700; }
.cdp-public-day.is-outside { background: #faf8f8; color: #96939b; }
.cdp-public-day:disabled { opacity: .45; cursor: default; }
.cdp-public-day.is-today { border-color: #d48485; }
.cdp-public-day.is-selected { background: #fff0ee; border: 2px solid #c76574; padding: 8px 1px; }
.cdp-public-day:not(:disabled):hover { background: #fff5f3; border-color: #cb8390; }
.cdp-selected-slots { display: grid; gap: 8px; margin-top: 15px; }
.cdp-selected-slots button { border: 1px solid #dce9e0; background: #f0f8f3; color: #2c6142; border-radius: 10px; padding: 11px 14px; text-align: left; font: inherit; font-size: .86rem; cursor: pointer; }
.cdp-selected-slots button:disabled { background: #fff1f0; border-color: #edd7d4; color: #a04955; cursor: default; }
.cdp-text-button { border: 0; padding: 8px 0; margin-top: 4px; color: #a04458; background: transparent; font: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cdp-zalo-card { background: #fff9f6; }
.cdp-zalo-card p { margin-bottom: 20px; color: #6d707d; }
.cdp-phone-link { display: block; color: #8d3b53; font-weight: 650; margin-top: 15px; }
.cdp-manager { max-width: 1510px; margin: 30px auto 80px; padding: 0 28px; }
.cdp-manager-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 25px; font-size: .88rem; }
.cdp-manager-nav a { padding: 8px 0; border-bottom: 2px solid transparent; }
.cdp-manager-nav [aria-current] { color: #aa485b; border-color: #aa485b; font-weight: 700; }
.cdp-manager-heading { display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.cdp-manager-heading h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.2; margin: 8px 0 12px; }
.cdp-manager-heading .cta { white-space: normal; text-align: center; }
.cdp-calendar-toolbar { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.cdp-calendar-toolbar .cdp-month-nav { min-width: 280px; margin: 12px 0; }
.cdp-view-switcher { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.cdp-view-switcher input, .cdp-view-switcher button, .cdp-view-switcher a { border: 1px solid #e5dfdf; background: #fff; padding: 9px 12px; border-radius: 9px; font: inherit; font-size: .9rem; }
.cdp-view-switcher .is-active { background: #a94c63; border-color: #a94c63; color: #fff; }
.cdp-view-switcher button { cursor: pointer; }
.cdp-admin-calendar { margin: 20px 0 32px; }
.cdp-admin-weekdays, .cdp-admin-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 9px; }
.cdp-admin-weekdays { margin-bottom: 10px; font-size: .8rem; color: #776c77; text-align: center; font-weight: 650; }
.cdp-admin-day { display: flex; flex-direction: column; gap: 9px; padding: 13px; min-width: 0; min-height: 185px; background: #fff; border: 1px solid #e8e0e0; border-radius: 13px; }
.cdp-admin-day:hover { border-color: #ca7685; box-shadow: 0 3px 15px #b6637012; }
.cdp-admin-day.is-outside { background: #f8f6f6; color: #88858d; }
.cdp-admin-day.is-today { border: 2px solid #bf6577; padding: 12px; background: #fffafa; }
.cdp-admin-day header { display: flex; align-items: center; justify-content: space-between; gap: 5px; font-size: .72rem; color: #857684; }
.cdp-admin-day header strong { display: grid; place-items: center; width: 30px; height: 30px; background: #f7f0f0; color: #392f3e; border-radius: 50%; font-size: 1rem; }
.cdp-admin-day.is-today header strong { background: #ac5167; color: #fff; }
.cdp-day-count { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; border-top: 1px solid #f0eaea; padding-top: 8px; font-size: .8rem; }
.cdp-day-count > span { flex: 1; min-width: 35px; }
.cdp-day-count > strong { color: #397251; font-size: .95rem; }
.cdp-day-count.is-full > strong { color: #b24459; }
.cdp-day-count > small { font-size: .66rem; color: #827781; }
.cdp-pending-badge { color: #825300; background: #fff1cb; border-radius: 6px; padding: 3px 5px; margin-top: auto; font-size: .7rem; }
.cdp-day-hint { color: #9b7280; font-size: .68rem; margin-top: auto; }
.cdp-capacity-panel { margin: 20px 0; }
.cdp-capacity-form { display: flex; align-items: end; flex-wrap: wrap; gap: 15px; margin-top: 18px; }
.cdp-capacity-form label { display: grid; gap: 5px; font-size: .85rem; font-weight: 650; }
.cdp-capacity-form input { width: 160px; padding: 10px; border: 1px solid #ded5da; border-radius: 8px; font: inherit; }
.cdp-capacity-form button { border: 0; cursor: pointer; }
.cdp-day-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.cdp-slot-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #eee4e6; }
.cdp-slot-panel > header h2 { margin-bottom: 3px; }
.cdp-slot-panel > header span { color: #7c6b7a; font-size: .88rem; }
.cdp-slot-panel > header a { color: #a1475d; font-weight: 650; }
.cdp-customer { padding: 20px; border: 1px solid #ecd89f; border-left: 4px solid #d49a2b; border-radius: 12px; background: #fffbf1; margin-bottom: 16px; overflow-wrap: anywhere; }
.cdp-customer--confirmed { border-color: #badaca; border-left-color: #448565; background: #f4fbf7; }
.cdp-customer--cancelled { border-color: #dfdcdf; border-left-color: #a8a1a9; background: #f7f6f7; color: #78717a; }
.cdp-customer > header { display: flex; align-items: start; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; margin-bottom: 12px; }
.cdp-customer h3 { font-size: 1.14rem; line-height: 1.5; }
.cdp-status { font-size: .72rem; border: 1px solid currentColor; border-radius: 6px; padding: 2px 7px; }
.cdp-customer p { margin: 5px 0; font-size: .92rem; }
.cdp-customer p a { text-decoration: underline; text-underline-offset: 3px; }
.cdp-customer-notes { white-space: pre-wrap; padding: 10px 0; }
.cdp-customer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.cdp-customer-actions form { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.cdp-customer-actions select, .cdp-customer-actions button { border: 1px solid #d2c8cf; background: #fff; color: #493944; font: inherit; font-size: .83rem; border-radius: 7px; padding: 8px; }
.cdp-customer-actions button { cursor: pointer; background: #f4e8ea; }
.cdp-customer-actions a { font-size: .83rem; color: #924458; font-weight: 650; }
.cdp-pending-list { margin-top: 32px; scroll-margin-top: 150px; }
.cdp-pending-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 15px; margin-top: 18px; }
.cdp-pending-items > a { display: grid; gap: 4px; border: 1px solid #ead7a4; border-radius: 11px; padding: 16px; background: #fffcf4; overflow-wrap: anywhere; }
.cdp-pending-items > a:hover { border-color: #ba8e31; }
.cdp-pending-items small { color: #766e79; }
.cdp-text-link { color: #a1475d; font-weight: 650; font-size: .88rem; }
.cdp-edit-booking { max-width: 880px; margin: 36px auto 80px; padding: 0 22px; }
.cdp-edit-booking > a { display: inline-block; margin-bottom: 22px; }
.cdp-edit-booking h1 { font-size: 2rem; line-height: 1.3; margin: 8px 0 16px; }
.cdp-empty { color: #8a7d89; padding: 22px 0; }
.cdp-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.cdp-manager :focus-visible, .cdp-booking-layout :focus-visible { outline: 3px solid #ab6584; outline-offset: 3px; }
.cdp-booking-layout .cta:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 1150px) {
    .cdp-booking-layout { grid-template-columns: minmax(0, 1.1fr) minmax(320px, 1fr); gap: 20px; }
    .cdp-booking-layout .form-grid { grid-template-columns: 1fr; }
    .cdp-panel { padding: 23px; }
    .cdp-admin-day { padding: 10px; }
    .cdp-admin-day.is-today { padding: 9px; }
    .cdp-day-count small { display: none; }
}
@media (max-width: 800px) {
    .cdp-booking-layout { grid-template-columns: 1fr; max-width: 700px; }
    .cdp-booking-sidebar { grid-row: 1; }
    .cdp-booking-layout .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cdp-zalo-card { display: none; }
    .cdp-public-day span { font-size: .75rem; }
    .cdp-manager-heading { align-items: start; flex-direction: column; }
    .cdp-day-details { grid-template-columns: 1fr; }
    .cdp-admin-grid { gap: 6px; }
    .cdp-admin-day { min-height: 175px; padding: 7px; }
    .cdp-admin-day.is-today { padding: 6px; }
    .cdp-day-count { font-size: .7rem; }
    .cdp-day-count > strong { font-size: .8rem; }
    .cdp-pending-badge { font-size: .64rem; }
    .cdp-manager { padding: 0 16px; }
}
@media (max-width: 560px) {
    .cdp-booking-layout { padding: 0 12px; }
    .cdp-panel { padding: 20px 16px; border-radius: 15px; }
    .cdp-booking-layout .form-grid, .cdp-edit-booking .form-grid { grid-template-columns: 1fr; }
    .cdp-public-grid, .cdp-public-weekdays { gap: 3px; }
    .cdp-public-day span { font-size: .62rem; }
    .cdp-public-day { border-radius: 6px; }
    .cdp-admin-weekdays { display: none; }
    .cdp-admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .cdp-admin-day { min-height: 180px; padding: 13px; }
    .cdp-admin-day.is-today { padding: 12px; }
    .cdp-day-count { font-size: .86rem; }
    .cdp-day-count > strong { font-size: 1rem; }
    .cdp-day-count small { display: inline; }
    .cdp-pending-badge { font-size: .72rem; }
    .cdp-customer { padding: 15px; }
    .cdp-month-nav { width: 100%; }
    .cdp-view-switcher input { width: 100%; }
    .cdp-capacity-form label { flex: 1; min-width: 120px; }
    .cdp-capacity-form input { width: 100%; }
}
.cdp-booking-layout.cdp-booking-layout--private { grid-template-columns: minmax(0, 1fr); max-width: 880px; }
.cdp-booking-layout--private .cdp-zalo-card { display: block; }
.cdp-booking-layout--private .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .cdp-booking-layout.cdp-booking-layout--private .form-grid { grid-template-columns: 1fr; } }
