/* WPR Multi-Room Booking Widget */

.wpr-mr-widget {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    max-width: 600px;
    margin: 20px auto;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    font-family: inherit;
}

.wpr-mr-widget-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e8a932;
    color: #333;
}

/* ── Dates ── */

.wpr-mr-dates {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.wpr-mr-date-field {
    flex: 1;
    min-width: 140px;
}

.wpr-mr-date-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.wpr-mr-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 5px;
    font-size: 14px;
    background: #fafafa;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.wpr-mr-input:focus {
    border-color: #e8a932;
    outline: none;
    background: #fff;
}

.wpr-mr-nights-display {
    background: #fdf3e0;
    color: #e8a932;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
}

/* ── Sections ── */

.wpr-mr-section {
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.wpr-mr-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #444;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Room Selector ── */

.wpr-mr-selector-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.wpr-mr-field {
    flex: 1;
    min-width: 120px;
}

.wpr-mr-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 4px;
}

.wpr-mr-field-sm {
    flex: 0 0 70px;
    min-width: 70px;
}

.wpr-mr-selector-actions {
    margin-top: 10px;
}

.wpr-mr-cart-extra {
    color: #e8a932;
    font-size: 12px;
    font-weight: 600;
}

/* ── Buttons ── */

.wpr-mr-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

.wpr-mr-btn:hover {
    opacity: 0.9;
}

.wpr-mr-btn-add {
    background: #555;
    color: #fff;
}

.wpr-mr-btn-book {
    width: 100%;
    background: #e8a932;
    color: #fff;
    font-size: 16px;
    padding: 14px 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wpr-mr-btn-book:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.wpr-mr-btn-book:not(:disabled):hover {
    background: #d4972a;
}

/* ── Cart (Added Rooms) ── */

.wpr-mr-cart {
    min-height: 30px;
}

.wpr-mr-empty {
    color: #999;
    font-style: italic;
    font-size: 13px;
    margin: 0;
}

.wpr-mr-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f5f5f5;
    border-radius: 5px;
    margin-bottom: 6px;
}

.wpr-mr-cart-label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.wpr-mr-cart-remove {
    background: none;
    border: 1px solid #e74c3c;
    color: #e74c3c;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.wpr-mr-cart-remove:hover {
    background: #e74c3c;
    color: #fff;
}

.wpr-mr-total-guests {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
    padding: 8px 12px;
    background: #e8f5e9;
    border-radius: 4px;
}

/* ── Addons ── */

.wpr-mr-addons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wpr-mr-addon-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #fafafa;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.wpr-mr-addon-item:hover {
    background: #f0f0f0;
}

.wpr-mr-addon-name {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.wpr-mr-addon-price {
    font-size: 13px;
    font-weight: 600;
    color: #e8a932;
    white-space: nowrap;
}

/* ── Price Breakdown ── */

.wpr-mr-breakdown {
    margin-bottom: 10px;
}

.wpr-mr-bd-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dotted #e0e0e0;
    font-size: 14px;
}

.wpr-mr-bd-row:last-child {
    border-bottom: none;
}

.wpr-mr-bd-sub {
    padding-left: 15px;
    font-size: 13px;
    color: #777;
}

.wpr-mr-bd-label {
    font-weight: 500;
    color: #333;
    flex: 1;
}

.wpr-mr-bd-calc {
    color: #888;
    font-size: 12px;
    margin: 0 10px;
    flex-shrink: 0;
}

.wpr-mr-bd-amount {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.wpr-mr-grand-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 2px solid #e8a932;
    margin-top: 5px;
}

.wpr-mr-grand-total span {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wpr-mr-grand-total strong {
    font-size: 22px;
    color: #e8a932;
}

/* ── Actions ── */

.wpr-mr-actions {
    margin-top: 15px;
}

.wpr-mr-message {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 5px;
    font-size: 14px;
}

.wpr-mr-msg-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.wpr-mr-msg-error {
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #f8bbd0;
}

/* ── Property Banner (Replace Booking Form) ── */

.wpr-mr-banner-inner {
    background: linear-gradient(135deg, #fdf3e0, #fff8e1);
    border: 2px solid #e8a932;
    border-radius: 8px;
    padding: 18px 20px;
    text-align: center;
    margin-bottom: 20px;
}

.wpr-mr-banner-inner p {
    margin: 0 0 12px;
    font-size: 15px;
    color: #333;
}

.wpr-mr-banner-btn {
    display: inline-block;
    background: #e8a932;
    color: #fff;
    padding: 10px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.wpr-mr-banner-btn:hover {
    background: #d4972a;
    color: #fff;
}

/* ── Responsive ── */

@media (max-width: 600px) {
    .wpr-mr-widget {
        padding: 15px;
        margin: 10px;
    }

    .wpr-mr-dates {
        flex-direction: column;
    }

    .wpr-mr-selector-row {
        flex-direction: column;
    }

    .wpr-mr-field-qty,
    .wpr-mr-field-btn {
        flex: 1;
        min-width: 100%;
    }

    .wpr-mr-bd-calc {
        display: none;
    }

    .wpr-mr-grand-total strong {
        font-size: 18px;
    }
}
