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

.tb-customer-account {
    width: min(100%, 920px);
    margin: 0 auto;
    padding: 18px 14px 40px;
    color: #1f2a33;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tb-customer-account.is-loading {
    cursor: progress;
}

.tb-customer-account.is-loading .tb-customer-panel {
    opacity: 0.56;
    pointer-events: none;
}

.tb-customer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 0 14px;
}

.tb-customer-header h2,
.tb-customer-section h3 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    color: #14322f;
}

.tb-customer-kicker {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #52756f;
}

.tb-customer-logout {
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid #cddbd8;
    border-radius: 8px;
    color: #17403b;
    text-decoration: none;
    font-weight: 700;
}

.tb-customer-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tb-customer-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 0 0 14px;
    padding: 5px;
    border: 1px solid #dce8e5;
    border-radius: 8px;
    background: #f6faf8;
}

.tb-customer-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
    border-radius: 6px;
    color: #49615d;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.tb-customer-nav a span {
    min-width: 22px;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #176b61;
    color: #ffffff;
    font-size: 11px;
    line-height: 1.4;
}

.tb-customer-nav a.is-active {
    background: #ffffff;
    color: #13483f;
    box-shadow: 0 1px 4px rgba(25, 65, 58, 0.12);
}

.tb-customer-panel,
.tb-customer-alert {
    border: 1px solid #dfe8e5;
    border-radius: 8px;
    background: #ffffff;
}

.tb-customer-panel {
    padding: 18px;
}

.tb-customer-alert {
    margin-bottom: 14px;
    padding: 12px 14px;
    color: #8a2f25;
    background: #fff7f4;
}

.tb-customer-alert.is-success,
.tb-auth-alert.is-success {
    color: #17613f;
    background: #effaf2;
}

.tb-customer-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.tb-customer-muted {
    margin: 10px 0 0;
    color: #60716e;
    line-height: 1.7;
}

.tb-customer-status {
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff3e8;
    color: #8b4c10;
    font-size: 12px;
    font-weight: 700;
}

.tb-customer-status.is-verified {
    background: #eaf8ef;
    color: #17613f;
}

.tb-customer-profile-form {
    display: grid;
    gap: 14px;
}

.tb-customer-profile-form label {
    display: grid;
    gap: 7px;
    color: #344642;
    font-size: 14px;
    font-weight: 700;
}

.tb-customer-profile-form input {
    min-height: 46px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cfdedb;
    border-radius: 8px;
    background: #ffffff;
    color: #172824;
    font: inherit;
}

.tb-customer-profile-form input[readonly] {
    background: #f5f8f7;
    color: #65716f;
}

.tb-customer-profile-form button {
    min-height: 48px;
    padding: 12px 16px;
    border: 0;
    border-radius: 8px;
    background: #176b61;
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.tb-customer-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 16px;
}

.tb-customer-summary-grid article {
    min-height: 82px;
    padding: 12px;
    border: 1px solid #dfe8e5;
    border-radius: 8px;
    background: #f8fbfa;
}

.tb-customer-summary-grid span,
.tb-customer-booking-card dt,
.tb-customer-detail dt,
.tb-customer-notification span {
    display: block;
    color: #60716e;
    font-size: 12px;
    font-weight: 700;
}

.tb-customer-summary-grid strong {
    display: block;
    margin-top: 6px;
    color: #14322f;
    font-size: 28px;
    line-height: 1;
}

.tb-customer-subnav {
    display: flex;
    gap: 8px;
    margin: 0 0 16px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.tb-customer-subnav a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid #d6e4e0;
    border-radius: 8px;
    color: #49615d;
    font-weight: 800;
    text-decoration: none;
}

.tb-customer-subnav a.is-active {
    border-color: #176b61;
    background: #edf8f5;
    color: #13483f;
}

.tb-customer-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}

.tb-customer-pagination a {
    min-width: 38px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d6e4e0;
    border-radius: 8px;
    color: #49615d;
    font-weight: 800;
    text-decoration: none;
}

.tb-customer-pagination a.is-active {
    border-color: #176b61;
    background: #edf8f5;
    color: #13483f;
}

.tb-customer-appointment-list,
.tb-customer-notification-list {
    display: grid;
    gap: 12px;
}

.tb-customer-booking-card,
.tb-customer-detail,
.tb-customer-notification,
.tb-customer-empty {
    border: 1px solid #dfe8e5;
    border-radius: 8px;
    background: #ffffff;
}

.tb-customer-booking-card {
    padding: 14px;
}

.tb-customer-booking-head,
.tb-customer-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.tb-customer-booking-head span {
    display: block;
    margin-bottom: 4px;
    color: #60716e;
    font-size: 12px;
    font-weight: 800;
}

.tb-customer-booking-head strong {
    display: block;
    color: #14322f;
    font-size: 16px;
    line-height: 1.25;
}

.tb-customer-booking-head mark {
    padding: 5px 8px;
    border-radius: 999px;
    background: #eef7f4;
    color: #17613f;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.tb-customer-booking-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.tb-customer-booking-head mark.is-refund {
    background: #fff7df;
    color: #8a5b00;
}

.tb-customer-booking-card dl,
.tb-customer-detail dl {
    display: grid;
    grid-template-columns: minmax(72px, 34%) minmax(0, 1fr);
    gap: 9px 10px;
    margin: 0;
}

.tb-customer-booking-card dd,
.tb-customer-detail dd {
    margin: 0;
    color: #1f2a33;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.tb-customer-card-action,
.tb-customer-detail-head a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    padding: 9px 12px;
    border-radius: 8px;
    background: #176b61;
    color: #ffffff;
    font-weight: 800;
    text-decoration: none;
}

.tb-customer-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tb-customer-card-actions .tb-customer-card-action {
    margin-top: 0;
}

button.tb-customer-card-action {
    border: 0;
    font: inherit;
    cursor: pointer;
}

.tb-customer-payment-pending {
    margin: 0 0 16px;
    padding: 14px;
    border: 1px solid #f0d39a;
    border-radius: 8px;
    background: #fff8e8;
    color: #5b4214;
}

.tb-customer-payment-pending strong {
    display: block;
    color: #2c2418;
    font-size: 18px;
}

.tb-customer-payment-pending p {
    margin: 6px 0 0;
    font-weight: 700;
}

.tb-customer-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
    background: rgba(15, 31, 35, 0.58);
}

.tb-customer-modal[hidden] {
    display: none;
}

body.tb-customer-modal-open {
    overflow: hidden;
}

.tb-customer-detail {
    width: 100%;
    max-height: 100vh;
    margin: 0;
    padding: 14px;
    background: #f8fbfa;
    overflow-y: auto;
}

.tb-customer-detail-head h4 {
    margin: 0;
    color: #14322f;
    font-size: 20px;
}

.tb-customer-detail-head a {
    margin-top: 0;
    background: #ffffff;
    color: #17403b;
    border: 1px solid #cddbd8;
}

.tb-customer-detail-grid {
    display: grid;
    gap: 12px;
}

.tb-customer-detail-grid > div {
    padding: 12px;
    border: 1px solid #dfe8e5;
    border-radius: 8px;
    background: #ffffff;
}

.tb-customer-detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 14px 0 0;
}

.tb-customer-detail-actions button,
.tb-customer-detail-actions .tb-customer-card-action {
    flex: 0 1 auto;
    margin-top: 0;
    width: auto;
    white-space: nowrap;
}

.tb-customer-detail-actions button {
    min-height: 42px;
    padding: 9px 12px;
    border: 0;
    border-radius: 8px;
    background: #176b61;
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.tb-customer-detail-actions button + button {
    border: 1px solid #c08b27;
    background: #fff8e8;
    color: #5b4214;
}

.tb-customer-detail-actions button:disabled {
    opacity: 0.55;
    cursor: wait;
}

.tb-customer-detail-block {
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #dfe8e5;
    border-radius: 8px;
    background: #ffffff;
}

.tb-customer-timeline {
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: thin;
}

.tb-customer-timeline li {
    min-width: 150px;
    display: grid;
    gap: 6px;
    align-content: start;
}

.tb-customer-timeline li > span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #176b61;
}

.tb-customer-timeline strong,
.tb-customer-timeline small {
    display: block;
}

.tb-customer-timeline strong {
    color: #14322f;
}

.tb-customer-timeline small {
    margin-top: 2px;
    color: #60716e;
}

.tb-customer-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.tb-customer-detail h5 {
    margin: 0 0 10px;
    color: #14322f;
    font-size: 15px;
}

.tb-customer-notifications button {
    min-height: 38px;
    padding: 8px 11px;
    border: 1px solid #cddbd8;
    border-radius: 8px;
    background: #ffffff;
    color: #17403b;
    font: inherit;
    font-weight: 800;
}

.tb-customer-notifications button:disabled {
    opacity: 0.5;
}

.tb-customer-notification {
    display: grid;
    gap: 8px;
    padding: 13px;
}

.tb-customer-notification.is-read {
    background: #f8fbfa;
}

.tb-customer-notification a {
    color: inherit;
    text-decoration: none;
}

.tb-customer-notification strong {
    display: block;
    margin-top: 3px;
    color: #14322f;
}

.tb-customer-notification p {
    margin: 5px 0 0;
    color: #60716e;
    line-height: 1.5;
}

.tb-customer-empty {
    padding: 18px;
    background: #f8fbfa;
    text-align: center;
}

.tb-customer-empty strong {
    display: block;
    color: #14322f;
}

.tb-customer-empty p {
    margin: 6px 0 0;
    color: #60716e;
}

.tb-customer-auth .tb-login-form {
    width: min(100%, 440px);
}

@media (min-width: 720px) {
    .tb-customer-account {
        padding: 34px 22px 56px;
    }

    .tb-customer-header h2,
    .tb-customer-section h3 {
        font-size: 30px;
    }

    .tb-customer-panel {
        padding: 28px;
    }

    .tb-customer-summary-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .tb-customer-detail-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tb-customer-modal {
        align-items: center;
        padding: 28px;
    }

    .tb-customer-detail {
        width: min(100%, 960px);
        max-height: min(760px, calc(100vh - 56px));
        border-radius: 8px;
    }

    .tb-customer-profile-form label:nth-child(3),
    .tb-customer-profile-form button {
        grid-column: 1 / -1;
    }
}

@media (max-width: 420px) {
    .tb-customer-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 14px;
        border: 1px solid #dfe8e5;
        border-radius: 8px;
        background: #ffffff;
    }

    .tb-customer-header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .tb-customer-logout {
        flex: 1;
        text-align: center;
    }

    .tb-customer-nav {
        grid-template-columns: 1fr;
    }

    .tb-customer-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tb-customer-summary-grid article {
        min-height: 74px;
        padding: 10px;
    }

    .tb-customer-summary-grid strong {
        font-size: 24px;
    }

    .tb-customer-section-head,
    .tb-customer-booking-head,
    .tb-customer-detail-head {
        flex-direction: column;
    }

    .tb-customer-card-action,
    .tb-customer-detail-head a,
    .tb-customer-notifications button,
    .tb-customer-detail-actions button,
    .tb-customer-detail-actions .tb-customer-card-action {
        width: 100%;
    }

    .tb-customer-booking-badges {
        width: 100%;
        justify-content: flex-start;
    }

    .tb-customer-head-actions {
        width: 100%;
    }

    .tb-customer-booking-card {
        padding: 16px;
        border-color: #d8e8e4;
        box-shadow: 0 8px 22px rgba(20, 50, 47, 0.08);
    }

    .tb-customer-booking-card dl,
    .tb-customer-detail dl {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .tb-customer-booking-card dt,
    .tb-customer-detail dt {
        margin-top: 8px;
    }

    .tb-customer-card-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .tb-customer-subnav {
        padding-bottom: 4px;
    }

}

/* Phase B customer dashboard hardening: align customer UX with therapist dashboard primitives. */

.tb-customer-account {
    width: min(100%, 1080px);
    padding-inline: clamp(14px, 3vw, 28px);
}

.tb-customer-header {
    align-items: flex-end;
    margin-bottom: 12px;
    padding: 22px 0 16px;
    border-bottom: 1px solid #dfe8e5;
}

.tb-customer-header > div:first-child {
    min-width: 0;
}

.tb-customer-header h2 {
    overflow-wrap: anywhere;
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 850;
}

.tb-customer-header-actions {
    position: relative;
    flex: 0 0 auto;
}

.tb-customer-logout,
.tb-notification-bell {
    min-height: 44px;
    border-radius: 10px;
    transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.tb-customer-logout:hover,
.tb-notification-bell:hover {
    border-color: rgba(23, 64, 59, 0.22);
    background: #edf8f5;
    box-shadow: 0 8px 20px rgba(23, 64, 59, 0.06);
}

.tb-customer-notification-center {
    position: relative;
}

.tb-customer-notification-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 50;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: min(360px, calc(100vw - 28px));
    max-height: min(420px, calc(100vh - 132px));
    border: 1px solid #dfe8e5;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 20px 52px rgba(23, 64, 59, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.98);
    transform-origin: top right;
    transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
}

.tb-customer-notification-center.is-open .tb-customer-notification-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.tb-notification-panel-header,
.tb-notification-footer {
    border-color: #dfe8e5;
}

.tb-notification-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #dfe8e5;
}

.tb-notification-panel-header strong,
.tb-notification-panel-header span {
    display: block;
}

.tb-notification-panel-header strong {
    color: #172824;
    font-size: 14px;
    line-height: 1.25;
}

.tb-notification-panel-header span {
    margin-top: 2px;
    color: #60716e;
    font-size: 11.5px;
    font-weight: 700;
}

.tb-notification-panel-header button,
.tb-notification-item button,
.tb-notification-footer button {
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid #dce8e5;
    border-radius: 7px;
    background: #f2f8f6;
    color: #285f59;
    font: inherit;
    font-size: 11.5px;
    font-weight: 760;
    line-height: 1;
    cursor: pointer;
}

.tb-notification-panel-header button:disabled,
.tb-notification-footer button:disabled {
    cursor: default;
    opacity: 0.48;
}

.tb-notification-list {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 6px;
}

.tb-notification-item {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    padding: 9px 10px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: #fbfdfc;
    transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.tb-notification-item + .tb-notification-item {
    margin-top: 4px;
}

.tb-notification-item:hover {
    border-color: rgba(23, 64, 59, 0.14);
    background: #f4faf7;
    box-shadow: 0 8px 20px rgba(23, 64, 59, 0.06);
}

.tb-notification-item:not(.is-read) {
    border-color: rgba(23, 64, 59, 0.16);
    background: #eef8f5;
}

.tb-notification-item.is-read {
    opacity: 0.72;
}

.tb-notification-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #ffffff;
    color: #285f59;
}

.tb-notification-type svg {
    width: 15px;
    height: 15px;
    stroke-width: 2.1;
}

.tb-notification-item[class*="refund"] .tb-notification-type,
.tb-notification-item.is-cancellation-requested .tb-notification-type {
    background: #fff7df;
    color: #8a6518;
}

.tb-notification-item a {
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.tb-notification-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.tb-notification-item strong {
    color: #14322f;
    font-size: 12.8px;
    line-height: 1.25;
}

.tb-notification-item p {
    margin: 3px 0 0;
    color: #60716e;
    font-size: 11.8px;
    line-height: 1.35;
}

.tb-notification-item small {
    flex: 0 0 auto;
    color: #60716e;
    font-size: 10.8px;
}

.tb-notification-item button {
    align-self: center;
    white-space: nowrap;
}

.tb-notification-footer {
    padding: 8px 10px;
    border-top: 1px solid #dfe8e5;
}

.tb-notification-empty {
    padding: 24px 16px;
    text-align: center;
}

.tb-notification-bell {
    position: relative;
    width: 44px;
    padding: 0;
    border: 1px solid #cddbd8;
    background: #ffffff;
    color: #17403b;
    cursor: pointer;
}

.tb-notification-bell-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tb-notification-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 20px;
    padding: 2px 5px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #b5473f;
    color: #ffffff;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.25;
}

.tb-notification-badge.is-hidden {
    display: none;
}

.tb-customer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 18px;
    border-radius: 12px;
}

.tb-customer-panel,
.tb-customer-alert,
.tb-customer-booking-card,
.tb-customer-detail,
.tb-customer-empty,
.tb-customer-summary-grid article,
.tb-customer-detail-grid > div,
.tb-customer-detail-block {
    border-radius: 10px;
}

.tb-customer-panel {
    box-shadow: 0 18px 44px rgba(23, 64, 59, 0.055);
}

.tb-customer-summary-grid {
    gap: 12px;
}

.tb-customer-summary-grid article {
    min-height: 104px;
    background: linear-gradient(180deg, #ffffff, #f8fbfa);
}

.tb-customer-summary-grid article.has-attention {
    border-color: #e8b35d;
    background: #fff8e8;
    box-shadow: 0 12px 26px rgba(165, 111, 34, 0.11);
}

.tb-customer-summary-grid article.has-attention span,
.tb-customer-summary-grid article.has-attention strong {
    color: #7a4f14;
}

.tb-customer-subnav {
    gap: 8px;
    padding-bottom: 6px;
    scrollbar-width: none;
}

.tb-customer-subnav::-webkit-scrollbar {
    display: none;
}

.tb-customer-subnav a {
    min-height: 44px;
    border-radius: 999px;
    background: #ffffff;
    transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.tb-customer-subnav a:hover,
.tb-customer-subnav a.is-active {
    box-shadow: 0 8px 18px rgba(23, 64, 59, 0.06);
}

.tb-customer-attention-count {
    min-width: 22px;
    margin-left: 8px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #b5473f;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.45;
}

.tb-customer-booking-card {
    padding: 18px;
    box-shadow: 0 10px 28px rgba(23, 64, 59, 0.055);
}

.tb-customer-booking-card:hover {
    border-color: rgba(23, 64, 59, 0.18);
}

.tb-customer-card-action,
.tb-customer-detail-actions button {
    border-radius: 10px;
}

.tb-customer-card-action:hover,
.tb-customer-detail-actions button:hover:not(:disabled) {
    background: #0f574f;
}

.tb-customer-pagination {
    justify-content: center;
}

.tb-customer-pagination a {
    border-radius: 10px;
}

.tb-customer-cancel-dialog {
    max-width: 720px;
}

.tb-customer-cancel-summary {
    margin-bottom: 16px !important;
}

.tb-customer-cancel-reason {
    display: grid;
    gap: 8px;
    color: #344642;
    font-size: 14px;
    font-weight: 800;
}

.tb-customer-cancel-reason textarea {
    width: 100%;
    min-height: 132px;
    padding: 12px;
    border: 1px solid #cfdedb;
    border-radius: 10px;
    color: #172824;
    font: inherit;
    resize: vertical;
}

.tb-customer-cancel-reason textarea:focus {
    border-color: #8fbfb7;
    box-shadow: 0 0 0 4px rgba(143, 191, 183, 0.2);
    outline: none;
}

.tb-toast-stack {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 100000;
    display: grid;
    gap: 8px;
    width: min(340px, calc(100vw - 36px));
}

.tb-toast {
    padding: 12px 14px;
    border: 1px solid #dfe8e5;
    border-radius: 10px;
    background: #edf8f5;
    color: #17403b;
    box-shadow: 0 16px 42px rgba(23, 64, 59, 0.14);
    font-size: 14px;
    font-weight: 800;
    transition: opacity 180ms ease, transform 180ms ease;
}

.tb-toast.is-error {
    border-color: #f0c1bc;
    background: #fff4f3;
    color: #8a2f25;
}

.tb-toast.is-leaving {
    opacity: 0;
    transform: translateY(6px);
}

@media (max-width: 720px) {
    .tb-customer-account {
        padding-top: 12px;
    }

    .tb-customer-header {
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 10px;
        padding: 16px;
        border: 1px solid #dfe8e5;
        border-radius: 12px;
        background: #ffffff;
    }

    .tb-customer-header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .tb-customer-logout {
        flex: 0 1 auto;
        min-width: 112px;
        text-align: center;
    }

    .tb-customer-nav {
        margin-bottom: 12px;
    }

    .tb-customer-panel {
        padding: 16px;
    }

    .tb-customer-section-head {
        align-items: flex-start;
    }

    .tb-customer-card-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .tb-customer-card-action {
        width: 100%;
    }

    .tb-customer-detail {
        max-height: 100svh;
    }
}

@media (max-width: 520px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .tb-customer-account,
    .tb-customer-panel,
    .tb-customer-section,
    .tb-customer-booking-card,
    .tb-customer-detail {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .tb-customer-notification-panel {
        right: auto;
        left: 0;
        width: min(342px, calc(100vw - 28px));
    }

    .tb-notification-item {
        grid-template-columns: 30px minmax(0, 1fr);
    }

    .tb-notification-item button {
        grid-column: 2;
        justify-self: start;
    }

    .tb-customer-summary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tb-customer-booking-head,
    .tb-customer-detail-head {
        flex-direction: column;
    }

    .tb-customer-booking-badges {
        justify-content: flex-start;
    }
}

@media (max-width: 360px) {
    .tb-customer-summary-grid,
    .tb-customer-nav {
        grid-template-columns: 1fr;
    }
}
