/* Customer Dashboard — #0053 */

.hb-customer-dashboard,
.hb-customer-login,
.hb-customer-register,
.hb-customer-password,
.hb-customer-detail,
.hb-customer-dashboard *,
.hb-customer-login *,
.hb-customer-register *,
.hb-customer-password *,
.hb-customer-detail * {
    box-sizing: border-box;
}

.hb-customer-dashboard,
.hb-customer-detail {
    color: #20332c;
    margin: 0 auto;
    max-width: 1180px;
    width: 100%;
}

.hb-customer-eyebrow {
    color: #1f6a52;
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.hb-customer-header {
    align-items: center;
    background: linear-gradient(135deg, #edf7f2, #f9fcfa);
    border: 1px solid #d8e8e0;
    border-radius: 18px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 22px;
    padding: 28px 30px;
}

.hb-customer-header h2,
.hb-customer-login h2,
.hb-customer-register h2,
.hb-customer-password h2 {
    color: #173e31;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    line-height: 1.15;
    margin: 0;
}

.hb-customer-header p {
    color: #60746c;
    margin: 8px 0 0;
}

.hb-customer-logout,
.hb-customer-back {
    color: #1f5f4a;
    font-weight: 700;
    text-decoration: none;
}

.hb-customer-logout {
    background: #fff;
    border: 1px solid #bcd2c8;
    border-radius: 9px;
    padding: 10px 15px;
}

.hb-customer-notice {
    border: 1px solid;
    border-radius: 10px;
    margin: 0 0 20px;
    padding: 13px 16px;
}

.hb-customer-notice--success {
    background: #edf9f1;
    border-color: #9dcead;
    color: #12622d;
}

.hb-customer-notice--error {
    background: #fff2f1;
    border-color: #efb2ae;
    color: #8c2019;
}

.hb-customer-summary {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 26px;
}

.hb-customer-summary__card {
    background: #fff;
    border: 1px solid #e1e8e4;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(29, 62, 50, 0.06);
    display: grid;
    gap: 7px;
    min-height: 112px;
    padding: 20px;
}

.hb-customer-summary__card span {
    color: #64776f;
    font-size: 0.9rem;
    font-weight: 600;
}

.hb-customer-summary__card strong {
    color: #173e31;
    font-size: 2rem;
    line-height: 1;
}

.hb-customer-summary__card--unpaid {
    background: #fffaf0;
    border-color: #eed9a9;
}

.hb-customer-layout {
    align-items: start;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) 310px;
}

.hb-customer-bookings,
.hb-customer-claim {
    background: #fff;
    border: 1px solid #e1e8e4;
    border-radius: 16px;
    padding: 24px;
}

.hb-customer-section-heading {
    align-items: end;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 20px;
}

.hb-customer-section-heading h3,
.hb-customer-claim h3 {
    color: #173e31;
    font-size: 1.3rem;
    margin: 0;
}

.hb-customer-section-heading p,
.hb-customer-claim p {
    color: #6b7b75;
    margin: 6px 0 0;
}

.hb-customer-filters {
    background: #f3f7f5;
    border-radius: 9px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
}

.hb-customer-filters a {
    border-radius: 7px;
    color: #52645d;
    font-size: 0.86rem;
    font-weight: 700;
    padding: 7px 10px;
    text-decoration: none;
}

.hb-customer-filters a.is-active {
    background: #fff;
    box-shadow: 0 2px 6px rgba(24, 53, 43, 0.1);
    color: #1f604a;
}

.hb-customer-booking-list {
    display: grid;
    gap: 14px;
}

.hb-customer-booking-card {
    border: 1px solid #e2e8e5;
    border-radius: 12px;
    overflow: hidden;
}

.hb-customer-booking-card__top,
.hb-customer-booking-card__bottom {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 16px 18px;
}

.hb-customer-booking-card__label,
.hb-customer-booking-card__stay span,
.hb-customer-booking-card__amount > span:first-child {
    color: #71817b;
    display: block;
    font-size: 0.78rem;
    margin-bottom: 3px;
}

.hb-customer-booking-card__stay {
    align-items: center;
    background: #f8faf9;
    border-bottom: 1px solid #e8eeeb;
    border-top: 1px solid #e8eeeb;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    padding: 15px 18px;
}

.hb-customer-booking-card__stay > div:last-child {
    text-align: right;
}

.hb-customer-booking-card__arrow {
    color: #8ea098;
}

.hb-customer-status,
.hb-customer-payment {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
    padding: 7px 10px;
}

.hb-customer-status--pending,
.hb-customer-payment--unpaid {
    background: #fff4d8;
    color: #795800;
}

.hb-customer-status--confirmed,
.hb-customer-status--checked_in,
.hb-customer-payment--paid {
    background: #e7f6ed;
    color: #12622d;
}

.hb-customer-status--checked_out {
    background: #eaf1f7;
    color: #315b78;
}

.hb-customer-status--cancelled,
.hb-customer-status--no_show,
.hb-customer-payment--refunded {
    background: #f8e9e8;
    color: #91251e;
}

.hb-customer-payment--partially_paid,
.hb-customer-payment--partially_refunded {
    background: #fff0d8;
    color: #7b5100;
}

.hb-customer-booking-card__amount {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
}

.hb-customer-booking-card__amount > span:first-child {
    flex-basis: 100%;
}

.hb-customer-view-button,
.hb-customer-claim button {
    background: #1f604a;
    border: 1px solid #1f604a;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    justify-content: center;
    min-height: 42px;
    padding: 10px 15px;
    text-decoration: none;
}

.hb-customer-view-button:hover,
.hb-customer-view-button:focus,
.hb-customer-claim button:hover,
.hb-customer-claim button:focus {
    background: #174a39;
    color: #fff;
}

.hb-customer-empty {
    background: #f8faf9;
    border: 1px dashed #cbd7d1;
    border-radius: 12px;
    padding: 38px 20px;
    text-align: center;
}

.hb-customer-empty > span {
    font-size: 2rem;
}

.hb-customer-empty h4 {
    color: #27483d;
    margin: 8px 0 3px;
}

.hb-customer-empty p {
    color: #697a74;
    margin: 0;
}

.hb-customer-claim {
    position: sticky;
    top: 24px;
}

.hb-customer-claim form {
    display: grid;
    gap: 9px;
    margin-top: 20px;
}

.hb-customer-claim label {
    font-size: 0.88rem;
    font-weight: 700;
}

.hb-customer-claim input[type="text"] {
    border: 1px solid #bac9c2;
    border-radius: 8px;
    font: inherit;
    min-height: 44px;
    padding: 9px 11px;
    width: 100%;
}

.hb-customer-pagination {
    margin-top: 22px;
}

.hb-customer-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hb-customer-pagination a,
.hb-customer-pagination span {
    border: 1px solid #d3ddd8;
    border-radius: 7px;
    display: inline-flex;
    min-width: 36px;
    padding: 7px 10px;
    text-decoration: none;
}

.hb-customer-pagination .current {
    background: #1f604a;
    border-color: #1f604a;
    color: #fff;
}

.hb-customer-detail__nav {
    margin-bottom: 18px;
}

.hb-customer-login {
    background: #fff;
    border: 1px solid #dfe8e3;
    border-radius: 18px;
    display: grid;
    gap: 36px;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
    margin: 0 auto;
    max-width: 900px;
    padding: clamp(24px, 5vw, 52px);
}

.hb-customer-login__intro p {
    color: #62766e;
    font-size: 1.02rem;
    line-height: 1.7;
    margin: 16px 0 0;
}

.hb-customer-login__form form {
    display: grid;
    gap: 10px;
}

.hb-customer-login__form label {
    font-weight: 700;
}

.hb-customer-login__form input[type="text"],
.hb-customer-login__form input[type="password"] {
    border: 1px solid #bac9c2;
    border-radius: 8px;
    min-height: 44px;
    padding: 9px 11px;
    width: 100%;
}

.hb-customer-login__form input[type="submit"] {
    background: #1f604a;
    border: 0;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    min-height: 44px;
    padding: 10px 16px;
}

.hb-customer-login__register {
    border-top: 1px solid #e5ebe8;
    margin: 18px 0 0;
    padding-top: 16px;
}

.hb-customer-login__forgot {
    margin: 10px 0 0;
    text-align: right;
}

.hb-customer-login__forgot a,
.hb-customer-login__register a {
    color: #1f604a;
    font-weight: 700;
}

.hb-customer-register {
    background: #fff;
    border: 1px solid #dfe8e3;
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(29, 62, 50, 0.08);
    display: grid;
    grid-template-columns: minmax(260px, 0.75fr) minmax(420px, 1.25fr);
    margin: 0 auto;
    max-width: 1040px;
    overflow: hidden;
    width: 100%;
}

.hb-customer-register__intro {
    background: linear-gradient(145deg, #eaf6f0, #f7fbf9);
    border-right: 1px solid #dfe9e4;
    padding: clamp(28px, 5vw, 58px);
}

.hb-customer-register__intro > p {
    color: #60746c;
    line-height: 1.7;
    margin: 16px 0 0;
}

.hb-customer-register__benefits {
    display: grid;
    gap: 14px;
    list-style: none;
    margin: 30px 0 0;
    padding: 0;
}

.hb-customer-register__benefits li {
    align-items: flex-start;
    color: #31594b;
    display: flex;
    font-weight: 700;
    gap: 10px;
}

.hb-customer-register__benefits span {
    align-items: center;
    background: #1f604a;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 22px;
    font-size: 0.72rem;
    height: 22px;
    justify-content: center;
    margin-top: 1px;
}

.hb-customer-register__panel {
    padding: clamp(28px, 5vw, 58px);
}

.hb-customer-register__panel > .hb-customer-notice {
    margin-bottom: 22px;
}

.hb-customer-register__panel .hb-customer-notice ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.hb-customer-register__form {
    display: grid;
    gap: 16px;
}

.hb-customer-register__form p {
    display: grid;
    gap: 7px;
    margin: 0;
}

.hb-customer-register__form label {
    color: #29483d;
    font-size: 0.9rem;
    font-weight: 750;
}

.hb-customer-register__form input[type="text"],
.hb-customer-register__form input[type="email"],
.hb-customer-register__form input[type="password"] {
    background: #fff;
    border: 1px solid #b9c9c1;
    border-radius: 9px;
    color: #20332c;
    font: inherit;
    min-height: 46px;
    padding: 10px 12px;
    width: 100%;
}

.hb-customer-register__form small {
    color: #71817b;
    font-size: 0.78rem;
    line-height: 1.45;
}

.hb-customer-register__name-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hb-customer-register__button {
    align-items: center;
    background: #1f604a;
    border: 1px solid #1f604a;
    border-radius: 9px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 750;
    justify-content: center;
    min-height: 47px;
    padding: 11px 18px;
    text-decoration: none;
}

.hb-customer-register__button:hover,
.hb-customer-register__button:focus {
    background: #174a39;
    color: #fff;
}

.hb-customer-register__login {
    border-top: 1px solid #e5ebe8;
    color: #60746c;
    margin: 22px 0 0;
    padding-top: 18px;
    text-align: center;
}

.hb-customer-register__login a {
    color: #1f604a;
    font-weight: 750;
}

.hb-customer-register__status h3 {
    color: #214b3d;
    margin: 0 0 8px;
}

.hb-customer-register__status p {
    color: #64776f;
    margin: 0 0 20px;
}

.hb-customer-register__honeypot {
    height: 1px;
    left: -10000px;
    overflow: hidden;
    position: absolute;
    top: auto;
    width: 1px;
}

.hb-customer-password {
    background: #fff;
    border: 1px solid #dfe8e3;
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(29, 62, 50, 0.08);
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(360px, 1.1fr);
    margin: 0 auto;
    max-width: 900px;
    overflow: hidden;
    width: 100%;
}

.hb-customer-password__intro {
    background: linear-gradient(145deg, #eaf6f0, #f7fbf9);
    border-right: 1px solid #dfe9e4;
    padding: clamp(28px, 5vw, 58px);
}

.hb-customer-password__intro p,
.hb-customer-password__status p {
    color: #60746c;
    line-height: 1.7;
    margin: 16px 0 0;
}

.hb-customer-password__panel {
    padding: clamp(28px, 5vw, 58px);
}

.hb-customer-password__panel > .hb-customer-notice {
    margin-bottom: 22px;
}

.hb-customer-password__panel .hb-customer-notice ul {
    margin: 0;
    padding-left: 20px;
}

.hb-customer-password__form {
    display: grid;
    gap: 16px;
}

.hb-customer-password__form p {
    display: grid;
    gap: 7px;
    margin: 0;
}

.hb-customer-password__form label {
    color: #29483d;
    font-size: 0.9rem;
    font-weight: 750;
}

.hb-customer-password__form input[type="email"],
.hb-customer-password__form input[type="password"] {
    background: #fff;
    border: 1px solid #b9c9c1;
    border-radius: 9px;
    color: #20332c;
    font: inherit;
    min-height: 46px;
    padding: 10px 12px;
    width: 100%;
}

.hb-customer-password__button {
    align-items: center;
    background: #1f604a;
    border: 1px solid #1f604a;
    border-radius: 9px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 750;
    justify-content: center;
    min-height: 47px;
    padding: 11px 18px;
    text-decoration: none;
}

.hb-customer-password__button:hover,
.hb-customer-password__button:focus {
    background: #174a39;
    color: #fff;
}

.hb-customer-password__login {
    border-top: 1px solid #e5ebe8;
    margin: 22px 0 0;
    padding-top: 18px;
    text-align: center;
}

.hb-customer-password__login a {
    color: #1f604a;
    font-weight: 750;
}

.hb-customer-password__status h3 {
    color: #214b3d;
    margin: 0 0 8px;
}

.hb-customer-password__status .hb-customer-password__button {
    margin-top: 20px;
}

.hb-customer-password__honeypot {
    height: 1px;
    left: -10000px;
    overflow: hidden;
    position: absolute;
    top: auto;
    width: 1px;
}

.hb-cancellation {
    background: #fff;
    border: 1px solid #dfe8e3;
    border-radius: 16px;
    margin-top: 24px;
    padding: clamp(20px, 4vw, 32px);
}

.hb-cancellation__heading h3 {
    color: #173e31;
    font-size: 1.45rem;
    margin: 0;
}

.hb-cancellation__rules {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 22px 0;
}

.hb-cancellation__rules > div {
    background: #f5f9f7;
    border: 1px solid #dfe9e4;
    border-radius: 11px;
    display: grid;
    gap: 5px;
    padding: 16px;
}

.hb-cancellation__rules strong {
    color: #1f604a;
    font-size: 1.45rem;
}

.hb-cancellation__rules span,
.hb-cancellation__processing-note {
    color: #61756d;
    font-size: 0.88rem;
    line-height: 1.55;
}

.hb-cancellation__quote,
.hb-cancellation__unavailable,
.hb-cancellation__result {
    border: 1px solid #d9e6df;
    border-radius: 12px;
    margin-top: 18px;
    padding: 18px;
}

.hb-cancellation__quote {
    align-items: center;
    background: #edf8f2;
    display: flex;
    gap: 18px;
    justify-content: space-between;
}

.hb-cancellation__quote > div {
    display: grid;
    gap: 4px;
}

.hb-cancellation__quote strong {
    color: #145a3c;
    font-size: 1.45rem;
}

.hb-cancellation__quote > span,
.hb-cancellation__unavailable {
    color: #50665d;
}

.hb-cancellation__form {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.hb-cancellation__form > label:first-of-type {
    color: #29483d;
    font-weight: 750;
}

.hb-cancellation__form textarea {
    border: 1px solid #b9c9c1;
    border-radius: 9px;
    font: inherit;
    padding: 10px 12px;
    resize: vertical;
    width: 100%;
}

.hb-cancellation__ack {
    align-items: flex-start;
    color: #52665e;
    display: flex;
    font-size: 0.9rem;
    gap: 9px;
    line-height: 1.5;
    margin: 5px 0;
}

.hb-cancellation__ack input {
    margin-top: 4px;
}

.hb-cancellation__form button {
    background: #a93229;
    border: 1px solid #a93229;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 750;
    justify-self: start;
    min-height: 44px;
    padding: 10px 18px;
}

.hb-cancellation__form button:hover,
.hb-cancellation__form button:focus {
    background: #84251f;
}

.hb-cancellation__result {
    background: #fbfcfb;
}

.hb-cancellation__result-top {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.hb-cancellation__result-top > div {
    display: grid;
    gap: 4px;
}

.hb-cancellation__result-top > div > span,
.hb-cancellation__facts dt {
    color: #6c7e76;
    font-size: 0.78rem;
}

.hb-cancellation__refund-status {
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 7px 10px;
}

.hb-cancellation__refund-status--pending,
.hb-cancellation__refund-status--partially_refunded {
    background: #fff0d8;
    color: #7b5100;
}

.hb-cancellation__refund-status--refunded {
    background: #e7f6ed;
    color: #12622d;
}

.hb-cancellation__refund-status--not_required,
.hb-cancellation__refund-status--not_eligible {
    background: #eef1ef;
    color: #50635b;
}

.hb-cancellation__facts {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 20px 0 0;
}

.hb-cancellation__facts > div {
    border-top: 1px solid #e2e9e5;
    padding-top: 12px;
}

.hb-cancellation__facts dd {
    color: #24463a;
    font-weight: 750;
    margin: 4px 0 0;
}

.hb-cancellation__reason,
.hb-cancellation__final-note,
.hb-cancellation__processing-note {
    margin-bottom: 0;
}

.hb-cancellation__final-note {
    background: #fff5f3;
    border-left: 3px solid #c0574e;
    color: #74342f;
    padding: 10px 12px;
}

.hb-customer-dashboard a:focus-visible,
.hb-customer-login a:focus-visible,
.hb-customer-register a:focus-visible,
.hb-customer-password a:focus-visible,
.hb-customer-dashboard input:focus-visible,
.hb-customer-login input:focus-visible,
.hb-customer-register input:focus-visible,
.hb-customer-password input:focus-visible,
.hb-customer-register button:focus-visible,
.hb-customer-password button:focus-visible,
.hb-customer-dashboard button:focus-visible {
    outline: 3px solid rgba(31, 96, 74, 0.3);
    outline-offset: 2px;
}

.hb-customer-detail textarea:focus-visible,
.hb-customer-detail input:focus-visible,
.hb-customer-detail button:focus-visible {
    outline: 3px solid rgba(31, 96, 74, 0.3);
    outline-offset: 2px;
}

@media (max-width: 920px) {
    .hb-customer-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hb-customer-layout {
        grid-template-columns: 1fr;
    }

    .hb-customer-claim {
        position: static;
    }
}

@media (max-width: 680px) {
    .hb-customer-header,
    .hb-customer-section-heading,
    .hb-customer-booking-card__bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .hb-customer-header,
    .hb-customer-bookings,
    .hb-customer-claim {
        padding: 18px;
    }

    .hb-customer-logout,
    .hb-customer-view-button {
        text-align: center;
    }

    .hb-customer-filters {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hb-customer-filters a {
        text-align: center;
    }

    .hb-customer-login {
        grid-template-columns: 1fr;
    }

    .hb-customer-register {
        grid-template-columns: 1fr;
    }

    .hb-customer-password {
        grid-template-columns: 1fr;
    }

    .hb-customer-register__intro,
    .hb-customer-password__intro {
        border-bottom: 1px solid #dfe9e4;
        border-right: 0;
    }

    .hb-cancellation__rules,
    .hb-cancellation__facts {
        grid-template-columns: 1fr;
    }

    .hb-cancellation__quote,
    .hb-cancellation__result-top {
        align-items: stretch;
        flex-direction: column;
    }

    .hb-cancellation__form button {
        justify-self: stretch;
    }
}

@media (max-width: 440px) {
    .hb-customer-summary {
        grid-template-columns: 1fr;
    }

    .hb-customer-booking-card__stay {
        align-items: start;
        grid-template-columns: 1fr;
    }

    .hb-customer-booking-card__stay > div:last-child {
        text-align: left;
    }

    .hb-customer-booking-card__arrow {
        display: none;
    }

    .hb-customer-register__name-grid {
        grid-template-columns: 1fr;
    }
}
