/**
 * Mohar Booking
 * Booking Summary
 *
 * Editorial selected-room summary and booking action.
 */


/* ==========================================================================
   Summary
   ========================================================================== */

.mohar-booking__summary {
    width: 100%;
    max-width: 100%;

    margin-top: 32px;
    padding: 34px 38px 36px;

    box-sizing: border-box;

    background: #f8f6f0;
    border: 1px solid rgba(55, 76, 63, 0.14);
}


/* ==========================================================================
   Header
   ========================================================================== */

.mohar-booking__summary-header {
    margin-bottom: 24px;
}

.mohar-booking__summary-eyebrow {
    display: block;

    margin-bottom: 7px;

    color: #68766f;

    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.mohar-booking__summary-title {
    margin: 0;

    color: #29362f;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.1;
}


/* ==========================================================================
   Selected Rooms
   ========================================================================== */

.mohar-booking__selected-rooms {
    display: flex;
    flex-direction: column;

    margin: 0;
}


/* ==========================================================================
   Selected Room
   ========================================================================== */

.mohar-booking__selected-room {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 68px;
    padding: 17px 0;

    border-top: 1px solid rgba(55, 76, 63, 0.13);

    box-sizing: border-box;
}


/* ==========================================================================
   Room Information
   ========================================================================== */

.mohar-booking__selected-room-info {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;

    gap: 0 18px;

    min-width: 0;
}

.mohar-booking__selected-room-number {
    flex: 0 0 auto;

    color: #68766f;

    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.mohar-booking__selected-room-name {
    color: #29362f;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    font-weight: 400;
    line-height: 1.3;
}

.mohar-booking__selected-room-capacity {
    flex: 0 0 auto;

    color: #727b76;

    font-size: 13px;
    line-height: 1.4;
}


/* ==========================================================================
   Room Price
   ========================================================================== */

.mohar-booking__selected-room-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;

    flex: 0 0 auto;

    margin-left: 30px;

    text-align: right;
    white-space: nowrap;
}


.mohar-booking__selected-room-price-main {
    color: #29362f;

    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}


.mohar-booking__selected-room-subtotal {
    color: #7a837e;

    font-size: 11px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: 0.01em;
}


/* ==========================================================================
   Capacity
   ========================================================================== */

.mohar-booking__capacity {
    margin-top: 0;
    padding: 13px 0;

    border-top: 1px solid rgba(55, 76, 63, 0.13);

    color: #607267;

    font-size: 12px;
    line-height: 1.5;
}

.mohar-booking__capacity.is-insufficient {
    color: #8a5f4a;
}


/* ==========================================================================
   Total
   ========================================================================== */

.mohar-booking__summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 18px;
    padding-top: 21px;

    border-top: 1px solid rgba(55, 76, 63, 0.22);
}

.mohar-booking__summary-total > span {
    color: #68766f;

    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.mohar-booking__summary-total > strong {
    color: #29362f;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
}


/* ==========================================================================
   Continue
   ========================================================================== */

.mohar-booking__continue {
    display: block;

    width: 340px;
    max-width: 100%;
    min-height: 54px;

    margin-top: 22px;
    margin-left: auto;

    padding: 15px 26px;

    box-sizing: border-box;

    border: 1px solid #3f5d4c;
    border-radius: var(--radius-md);

    background: #3f5d4c;
    color: #ffffff;

    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.16em;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease,
        opacity 180ms ease;
}

.mohar-booking__continue:hover:not(:disabled) {
    background: #344e40;
    border-color: #344e40;
}

.mohar-booking__continue:active:not(:disabled) {
    transform: translateY(1px);
}

.mohar-booking__continue:focus-visible {
    outline: 2px solid #6d8275;
    outline-offset: 3px;
}

.mohar-booking__continue:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}


/* ==========================================================================
   Ready State
   ========================================================================== */

.mohar-booking__summary.is-ready
.mohar-booking__continue:not(:disabled) {
    opacity: 1;
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 767px) {

    .mohar-booking__summary {
        margin-top: 26px;
        padding: 28px 24px 30px;
    }

    .mohar-booking__summary-title {
        font-size: 29px;
    }

    .mohar-booking__selected-room {
        min-height: 0;
        padding: 17px 0;
    }

    .mohar-booking__selected-room-info {
        gap: 4px 12px;
    }

    .mohar-booking__selected-room-name {
        font-size: 19px;
    }

    .mohar-booking__selected-room-price {
        margin-left: 20px;
    }

    .mohar-booking__continue {
        width: 300px;
    }
}


@media (max-width: 520px) {

    .mohar-booking__summary {
        padding: 25px 20px 24px;
    }

    .mohar-booking__summary-header {
        margin-bottom: 21px;
    }

    .mohar-booking__summary-title {
        font-size: 27px;
    }

    .mohar-booking__selected-room {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .mohar-booking__selected-room-price {
        margin-left: 0;
    }

    .mohar-booking__summary-total > strong {
        font-size: 25px;
    }

    .mohar-booking__continue {
        width: 100%;
    }
}