/* ==========================================================================
   Vos Collection — MotoPress Shortcode Pages
   Covers: Checkout, Booking Confirmation, Booking Details, My Account
   Loaded sitewide via functions.php — selectors are scoped to mphb classes.
   ========================================================================== */


/* ── Shared form primitives ── */

.mphb_sc_checkout-form label,
.mphb-account-details-form label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 5px;
}

.mphb_sc_checkout-form input[type="text"],
.mphb_sc_checkout-form input[type="email"],
.mphb_sc_checkout-form input[type="tel"],
.mphb_sc_checkout-form textarea,
.mphb_sc_checkout-form select,
.mphb-account-details-form input[type="text"],
.mphb-account-details-form input[type="email"],
.mphb-account-details-form input[type="password"],
.mphb-account-details-form select {
    width: 100%;
    border: 1px solid var(--nectar-extra-color-3, #ddd);
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 0.9rem;
    color: var(--nectar-extra-color-1, #333);
    background: #fff;
    transition: border-color 0.15s;
    box-sizing: border-box;
}

.mphb_sc_checkout-form input[type="text"]:focus,
.mphb_sc_checkout-form input[type="email"]:focus,
.mphb_sc_checkout-form input[type="tel"]:focus,
.mphb_sc_checkout-form textarea:focus,
.mphb_sc_checkout-form select:focus,
.mphb-account-details-form input:focus,
.mphb-account-details-form select:focus {
    outline: none;
    border-color: var(--nectar-accent-color);
    box-shadow: 0 0 0 3px rgba(101, 185, 9, 0.12);
}

.mphb_sc_checkout-form textarea {
    resize: vertical;
    min-height: 100px;
}

.mphb_sc_checkout-form p,
.mphb-account-details-form p {
    margin-bottom: 16px;
}

/* Required asterisk */
.mphb_sc_checkout-form abbr,
.mphb-account-details-form abbr {
    color: var(--nectar-accent-color);
    text-decoration: none;
    border: none;
    font-size: 0.9rem;
}


/* ── Shared CTA buttons ── */

.mphb_sc_checkout-form .button,
.mphb_sc_checkout-form input[type="submit"],
.mphb-account-details-form input[type="submit"],
.mphb-apply-coupon-code-button,
.mphb_sc_account .button {
    display: inline-block;
    background: var(--nectar-accent-color);
    color: #fff !important;
    border: none;
    border-radius: 3px;
    padding: 13px 28px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
}

.mphb_sc_checkout-form .button:hover,
.mphb_sc_checkout-form input[type="submit"]:hover,
.mphb-account-details-form input[type="submit"]:hover,
.mphb-apply-coupon-code-button:hover,
.mphb_sc_account .button:hover {
    background: #4e9107;
    color: #fff !important;
}

/* Book Now — full width */
.mphb_sc_checkout-submit-wrapper {
    margin-top: 24px;
    text-align: center;
}

.mphb_sc_checkout-submit-wrapper .button {
    width: 100%;
    max-width: 360px;
    padding: 15px;
    font-size: 0.9rem;
}


/* =========================================================================
   CHECKOUT PAGE  (.mphb_sc_checkout-wrapper)
   ========================================================================= */

.mphb_sc_checkout-wrapper {
    max-width: 780px;
    margin: 0 auto;
    padding-top: 20px;
}

/* Returning customer login strip */
.mphb-login-form-wrap {
    background: #fafafa;
    border: 1px solid var(--nectar-extra-color-3, #ddd);
    border-radius: 4px;
    padding: 14px 20px;
    margin-bottom: 28px;
    font-size: 0.875rem;
    color: #666;
}

.mphb-login-form-wrap p {
    margin: 0 0 8px;
}

.mphb-login-form-wrap a {
    color: var(--nectar-accent-color);
    font-weight: 600;
    text-decoration: none;
}

.mphb-login-form-wrap a:hover {
    color: #4e9107;
}

/* Each section card */
.mphb-checkout-section {
    background: #fff;
    border: 1px solid var(--nectar-extra-color-3, #ddd);
    border-top: 3px solid var(--nectar-accent-color);
    border-radius: 4px;
    padding: 28px 28px 20px;
    margin-bottom: 24px;
}

.mphb-checkout-section h3,
.mphb-checkout-section h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--nectar-extra-color-1, #222);
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--nectar-extra-color-3, #eee);
}

/* Check-in / Check-out date rows */
.mphb-check-in-date,
.mphb-check-out-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--nectar-extra-color-1, #333);
}

.mphb-check-in-date span:first-child,
.mphb-check-out-date span:first-child {
    font-weight: 600;
    min-width: 80px;
    color: #888;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mphb-check-in-date strong,
.mphb-check-out-date strong {
    color: var(--nectar-extra-color-1, #222);
}

/* Room details block */
.mphb-room-details {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--nectar-extra-color-3, #eee);
}

.mphb-room-number {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #aaa;
    margin-top: 0;
    margin-bottom: 6px;
}

.mphb-room-type-title {
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.mphb-room-type-title a {
    color: var(--nectar-accent-color);
    font-weight: 600;
    text-decoration: none;
}

.mphb-room-type-title a:hover {
    color: #4e9107;
}

/* Adults / children selects */
.mphb-adults-chooser,
.mphb-children-chooser,
.mphb-guest-name-wrapper {
    margin-bottom: 14px;
}

/* Services section */
.mphb-checkout-item-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--nectar-extra-color-3, #eee);
}

.mphb-checkout-item-section h4 {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #888;
    margin-top: 0;
    margin-bottom: 12px;
    padding-bottom: 0;
    border-bottom: none;
}

.mphb_sc_checkout-services-list,
.mphb_checkout-services-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mphb_sc_checkout-services-list li,
.mphb_checkout-services-list li {
    margin-bottom: 8px;
    font-size: 0.875rem;
}

.mphb-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.mphb-checkbox-label em {
    color: #999;
    font-style: normal;
    font-size: 0.82rem;
}

/* Price breakdown section */
.mphb-room-price-breakdown-wrapper table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.mphb-room-price-breakdown-wrapper table td {
    padding: 6px 0;
    border-bottom: 1px solid #f5f5f5;
}

.mphb-room-price-breakdown-wrapper table td:last-child {
    text-align: right;
    font-weight: 600;
    color: var(--nectar-extra-color-1, #222);
}

/* Total price */
.mphb-total-price {
    font-size: 1rem;
    font-weight: 700;
    text-align: right;
    padding: 16px 28px;
    background: #fafafa;
    border: 1px solid var(--nectar-extra-color-3, #ddd);
    border-radius: 4px;
    margin-bottom: 16px;
}

.mphb-total-price-field {
    color: var(--nectar-accent-color);
    font-size: 1.3rem;
    margin-left: 8px;
}

/* Customer details section */
.mphb-required-fields-tip {
    color: #aaa;
    font-size: 0.78rem;
    margin-bottom: 20px !important;
}

/* Payment method */
.mphb-gateways-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.mphb-gateway {
    margin-bottom: 12px;
}

.mphb-gateway-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--nectar-extra-color-1, #222);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mphb-radio-label input[type="radio"] {
    accent-color: var(--nectar-accent-color);
}

.mphb-gateway-description {
    font-size: 0.82rem;
    color: #888;
    margin-left: 22px;
    margin-top: 4px;
}

/* Terms & conditions */
.mphb-checkout-terms-wrapper {
    font-size: 0.875rem;
}

.mphb-terms-and-conditions {
    max-height: 160px;
    overflow-y: auto;
    padding: 12px;
    border: 1px solid var(--nectar-extra-color-3, #ddd);
    border-radius: 4px;
    background: #fafafa;
    font-size: 0.82rem;
    color: #666;
    margin-bottom: 14px;
}

.mphb-terms-and-conditions-accept label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--nectar-extra-color-1, #333);
    cursor: pointer;
}

.mphb-terms-and-conditions-accept input[type="checkbox"] {
    accent-color: var(--nectar-accent-color);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.mphb-terms-and-conditions-link {
    color: var(--nectar-accent-color);
    text-decoration: underline;
}

/* Coupon */
.mphb-coupon-code-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}

.mphb-coupon-code-wrapper label.mphb-coupon-code-title {
    width: 100%;
}

#mphb_coupon_code {
    flex: 1;
    min-width: 160px;
    border: 1px solid var(--nectar-extra-color-3, #ddd);
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 0.9rem;
}

.mphb-apply-coupon-code-button {
    padding: 10px 20px;
    font-size: 0.78rem;
}

.mphb-coupon-message {
    width: 100%;
    font-size: 0.82rem;
}

/* Errors */
.mphb-errors-wrapper {
    background: #fff3f3;
    border: 1px solid #f5c6c6;
    border-radius: 4px;
    color: #c0392b;
    padding: 12px 16px;
    font-size: 0.875rem;
    margin-bottom: 16px;
}

/* Search results summary (after availability search) */
.mphb-search-results-summary {
    font-size: 0.875rem;
    color: #888;
    margin-bottom: 20px;
}


/* =========================================================================
   BOOKING CONFIRMATION  (.mphb_sc_booking_confirmation)
   ========================================================================= */

.mphb_sc_booking_confirmation {
    max-width: 680px;
    margin: 0 auto;
    padding-top: 20px;
}

/* Confirmation message (received / confirmed / expired) */
.mphb-booking-confirmation-messages {
    background: #fff;
    border: 1px solid var(--nectar-extra-color-3, #ddd);
    border-top: 4px solid var(--nectar-accent-color);
    border-radius: 4px;
    padding: 32px 32px 24px;
    margin-bottom: 24px;
    text-align: center;
}

.mphb-booking-confirmation-messages::before {
    content: "\f058";
    font-family: "FontAwesome";
    font-size: 2.8rem;
    color: var(--nectar-accent-color);
    display: block;
    margin-bottom: 16px;
}

.mphb-booking-confirmation-messages p {
    font-size: 1rem;
    color: var(--nectar-extra-color-1, #333);
    margin: 0 0 8px;
    line-height: 1.6;
}

.mphb-booking-confirmation-messages p:last-child {
    margin-bottom: 0;
}

/* Booking details card on confirmation page */
.mphb-booking-details-section {
    background: #fff;
    border: 1px solid var(--nectar-extra-color-3, #ddd);
    border-radius: 4px;
    padding: 24px 28px;
    margin-bottom: 20px;
}

.mphb-booking-details-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--nectar-extra-color-1, #222);
    margin-top: 0;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--nectar-extra-color-3, #eee);
}

.mphb-booking-details {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.mphb-booking-details li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.9rem;
}

.mphb-booking-details li:last-child {
    border-bottom: none;
}

.mphb-booking-details .label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #aaa;
    min-width: 100px;
}

.mphb-booking-details .value {
    font-weight: 600;
    color: var(--nectar-extra-color-1, #222);
    text-align: right;
}

.mphb-booking-details .booking-price .value {
    color: var(--nectar-accent-color);
    font-size: 1.05rem;
}

.mphb-booking-details .booking-status .value {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(101, 185, 9, 0.1);
    color: #3e7a04;
    padding: 3px 10px;
    border-radius: 20px;
}

/* Accommodation details row */
.accommodations {
    font-size: 0.875rem;
    color: #666;
}

.accommodations-title {
    font-weight: 700;
    color: #aaa;
    font-size: 0.72rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}

/* Payment details section (shares .mphb-booking-details-section structure) */
.mphb-payment-details-section {
    background: #fff;
    border: 1px solid var(--nectar-extra-color-3, #ddd);
    border-radius: 4px;
    padding: 24px 28px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.mphb-payment-details-section h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--nectar-extra-color-1, #222);
    margin-top: 0;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--nectar-extra-color-3, #eee);
}


/* =========================================================================
   MY ACCOUNT  (.mphb_sc_account)
   ========================================================================= */

.mphb_sc_account {
    max-width: 860px;
    margin: 0 auto;
    padding-top: 20px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    align-items: start;
}

/* Sidebar nav */
.mphb-account-menu {
    background: #fff;
    border: 1px solid var(--nectar-extra-color-3, #ddd);
    border-radius: 4px;
    overflow: hidden;
    position: sticky;
    top: calc(var(--nectar-sticky-top-distance, 80px) + 20px);
}

.mphb-account-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mphb-account-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.mphb-account-menu li:last-child {
    border-bottom: none;
}

.mphb-account-menu a {
    display: block;
    padding: 12px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #888;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
}

.mphb-account-menu a:hover,
.mphb-account-menu .current-menu-item a,
.mphb-account-menu li.active a {
    color: var(--nectar-extra-color-1, #222);
    background: #fafafa;
}

/* Log out link — subtle */
.mphb-account-menu li:last-child a {
    color: #ccc;
    font-size: 0.75rem;
}

.mphb-account-menu li:last-child a:hover {
    color: #c0392b;
    background: #fff8f8;
}

/* Content area */
.mphb-account-content {
    min-width: 0;
}

/* Success / error messages */
.mphb-data-success {
    background: rgba(101, 185, 9, 0.1);
    border: 1px solid rgba(101, 185, 9, 0.25);
    color: #3e7a04;
    border-radius: 4px;
    padding: 10px 16px;
    font-size: 0.875rem;
    margin-bottom: 20px;
}

.mphb-data-incorrect {
    background: #fff3f3;
    border: 1px solid #f5c6c6;
    color: #c0392b;
    border-radius: 4px;
    padding: 10px 16px;
    font-size: 0.875rem;
    margin-bottom: 20px;
}

/* Bookings table */
.mphb-account-bookings {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.mphb-account-bookings thead th {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #aaa;
    text-align: left;
    padding: 0 12px 12px;
    border-bottom: 2px solid var(--nectar-extra-color-3, #eee);
}

.mphb-account-bookings tbody td {
    padding: 14px 12px;
    border-bottom: 1px solid #f5f5f5;
    vertical-align: top;
    color: var(--nectar-extra-color-1, #333);
}

.mphb-account-bookings tbody tr:last-child td {
    border-bottom: none;
}

.mphb-account-bookings .booking-number {
    font-weight: 700;
    font-size: 0.9rem;
}

.mphb-account-bookings .booking-status {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(101, 185, 9, 0.1);
    color: #3e7a04;
    padding: 2px 8px;
    border-radius: 20px;
}

.mphb-account-bookings .booking-actions a {
    color: var(--nectar-accent-color);
    font-weight: 600;
    font-size: 0.82rem;
    text-decoration: none;
    border: 1px solid var(--nectar-accent-color);
    padding: 4px 12px;
    border-radius: 3px;
    transition: background 0.15s, color 0.15s;
    display: inline-block;
}

.mphb-account-bookings .booking-actions a:hover {
    background: var(--nectar-accent-color);
    color: #fff;
}

/* No bookings message */
.mphb-account-content > p {
    color: #888;
    font-size: 0.9rem;
}

/* Pagination */
.mphb-pagination {
    margin-top: 20px;
    text-align: center;
}

.mphb-nav-links {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.mphb-nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--nectar-extra-color-1, #333);
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.15s;
}

.mphb-nav-links a.page-numbers:hover {
    border-color: var(--nectar-accent-color);
    color: var(--nectar-accent-color);
}

.mphb-nav-links span.page-numbers {
    background: var(--nectar-accent-color);
    color: #fff;
    border-color: var(--nectar-accent-color);
}

/* Account details form */
.mphb-account-details,
.mphb-account-change-password {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
    margin-bottom: 24px;
}

.mphb-customer-username input[readonly] {
    background: #fafafa;
    color: #aaa;
    cursor: not-allowed;
}

.mphb-account-change-password > p:first-child {
    grid-column: 1 / -1;
}

.mphb-account-change-password > p:first-child strong {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #888;
}

/* Dashboard greeting */
.mphb_sc_account .mphb-account-content > p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--nectar-extra-color-1, #333);
}

.mphb_sc_account .mphb-account-content a {
    color: var(--nectar-accent-color);
    text-decoration: none;
    font-weight: 600;
}

.mphb_sc_account .mphb-account-content a:hover {
    color: #4e9107;
}


/* =========================================================================
   RESPONSIVE
   ========================================================================= */

@media (max-width: 768px) {
    .mphb_sc_checkout-wrapper {
        padding-top: 0;
    }

    .mphb-checkout-section {
        padding: 20px 18px 16px;
    }

    .mphb_sc_account {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .mphb-account-menu {
        position: static;
    }

    .mphb-account-menu ul {
        display: flex;
        flex-wrap: wrap;
    }

    .mphb-account-menu li {
        border-bottom: none;
        border-right: 1px solid #f0f0f0;
    }

    .mphb-account-menu a {
        padding: 10px 14px;
        font-size: 0.72rem;
    }

    .mphb-account-details,
    .mphb-account-change-password {
        grid-template-columns: 1fr;
    }

    /* Responsive table */
    .mphb-account-bookings thead {
        display: none;
    }

    .mphb-account-bookings tbody td {
        display: block;
        padding: 6px 0;
        border-bottom: none;
    }

    .mphb-account-bookings tbody td::before {
        content: attr(data-title) ": ";
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.07em;
        text-transform: uppercase;
        color: #aaa;
        margin-right: 4px;
    }

    .mphb-account-bookings tbody tr {
        display: block;
        border-bottom: 1px solid #f0f0f0;
        padding: 12px 0;
    }

    .mphb-booking-details-section {
        padding: 18px 18px;
    }

    .mphb_sc_booking_confirmation {
        padding-top: 0;
    }

    .mphb-booking-confirmation-messages {
        padding: 24px 20px 20px;
    }
}
