/*
 * Standalone Booking Page Styles
 * No modal, no transforms - designed to work inside iframes without pointer offset issues
 */

* {
    box-sizing: border-box;
}

html, body.wprb-standalone-page {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#wprb-booking-modal.wprb-standalone {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: none !important;
    height: 100vh !important;
    background: #ffffff !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    position: relative !important;
}

/* Header bar with gradient */
#wprb-booking-modal.wprb-standalone .header-bar {
    background: linear-gradient(135deg, #ffb100 0%, #5cb85c 100%);
    color: white;
    padding: 20px 20px 15px;
    flex-shrink: 0;
    position: relative;
}

#wprb-booking-modal.wprb-standalone .wprb-modal-header-image {
    text-align: center;
    margin-bottom: 10px;
}

#wprb-booking-modal.wprb-standalone .wprb-modal-header-image img {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}

#wprb-booking-modal.wprb-standalone .wprb-widget-title {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px;
    color: white;
}

/* Steps navigation */
#wprb-booking-modal.wprb-standalone .header-bar_steps {
    display: flex;
    justify-content: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    padding-top: 10px;
}

#wprb-booking-modal.wprb-standalone .header-bar_steps li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 500;
    min-width: 60px;
    text-align: center;
    transition: all 0.3s ease;
}

#wprb-booking-modal.wprb-standalone .header-bar_steps li span {
    font-size: 16px;
}

#wprb-booking-modal.wprb-standalone .header-bar_steps li.current {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-weight: 600;
}

#wprb-booking-modal.wprb-standalone .header-bar_steps li.completed {
    background: rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.95);
}

/* Main content area */
#wprb-booking-modal.wprb-standalone .main_container_booking {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px;
    position: relative;
}

/* Steps */
#wprb-booking-modal.wprb-standalone .booking-step {
    max-width: 600px;
    margin: 0 auto;
    padding: 10px;
}

/* Hours grid */
#wprb-booking-modal.wprb-standalone .booking-hours ul {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    list-style: none;
    margin: 15px 0;
    padding: 0;
}

#wprb-booking-modal.wprb-standalone .booking-hours ul li {
    text-align: center;
}

#wprb-booking-modal.wprb-standalone .booking-hours ul li.no-hours {
    grid-column: 1 / -1;
    padding: 25px 15px;
    color: #666;
    font-size: 14px;
    background: #f9f9f9;
    border-radius: 8px;
}

#wprb-booking-modal.wprb-standalone .booking-hours ul li input {
    width: 100%;
    min-width: 70px;
    height: 40px;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #000;
    background-color: #fff;
    border-radius: 5px;
    border: 1px dotted #169e4f;
    transition: all 0.2s ease;
}

#wprb-booking-modal.wprb-standalone .booking-hours ul li input:hover {
    border: 2px solid #169e4f;
    color: #169e4f;
    background-color: #f5b016;
    font-weight: 700;
}

#wprb-booking-modal.wprb-standalone .booking-hours ul li input.active,
#wprb-booking-modal.wprb-standalone .booking-hours ul li input.selected-confirmed {
    border: 2px solid #169e4f;
    color: #169e4f;
    background-color: #f5b016;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Room buttons */
#wprb-booking-modal.wprb-standalone .room-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 15px 0;
}

#wprb-booking-modal.wprb-standalone .room-select-btn {
    min-width: 120px;
    padding: 12px 18px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 500;
    color: #000;
    background-color: #fff;
    border-radius: 5px;
    border: 1px dotted #169e4f;
    transition: all 0.2s ease;
}

#wprb-booking-modal.wprb-standalone .room-select-btn:hover {
    border: 2px solid #169e4f;
    color: #169e4f;
    background-color: #f5b016;
}

#wprb-booking-modal.wprb-standalone .room-select-btn.active {
    border: 2px solid #169e4f;
    color: #169e4f;
    background-color: #f5b016;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Table buttons */
#wprb-booking-modal.wprb-standalone .basic-table-button {
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    margin: 4px;
    display: inline-block;
    min-width: 90px;
    text-align: center;
    transition: all 0.2s ease;
}

#wprb-booking-modal.wprb-standalone .basic-table-button:hover:not(.occupied):not(.insufficient-seats) {
    border-color: #333;
    background: #f0f8ff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#wprb-booking-modal.wprb-standalone .basic-table-button.occupied {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
    cursor: not-allowed;
}

#wprb-booking-modal.wprb-standalone .basic-table-button.insufficient-seats {
    background: #ffc107;
    color: #212529;
    border-color: #ffc107;
    cursor: not-allowed;
}

/* Version footer */
#wprb-booking-modal.wprb-standalone .wprb-version-footer {
    flex-shrink: 0;
}

/* Additional content for steps */
#wprb-booking-modal.wprb-standalone .wprb-step-additional-content {
    margin-top: 15px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: #555;
}

#wprb-booking-modal.wprb-standalone .wprb-step-additional-content img {
    max-width: 100%;
    height: auto;
}

/* Service buttons */
#wprb-booking-modal.wprb-standalone .service-select-btn {
    border: 1px dotted #169e4f;
    background: #fff;
    color: #000;
    padding: 12px 18px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
}

#wprb-booking-modal.wprb-standalone .service-select-btn:hover,
#wprb-booking-modal.wprb-standalone .service-select-btn.active {
    border: 2px solid #169e4f;
    color: #169e4f;
    background-color: #f5b016;
}

/* People selection */
#wprb-booking-modal.wprb-standalone .booking-people_numbers__number input[type="button"] {
    border: 1px dotted #169e4f;
    background: #fff;
    color: #000;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#wprb-booking-modal.wprb-standalone .booking-people_numbers__number input[type="button"]:hover,
#wprb-booking-modal.wprb-standalone .booking-people_numbers__number input[type="button"].active {
    border: 2px solid #169e4f;
    color: #169e4f;
    background-color: #f5b016;
}

/* Submit loader overlay */
#wprb-submit-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

#wprb-submit-loader .submit-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hide admin bar */
#wpadminbar {
    display: none !important;
}

html {
    margin-top: 0 !important;
}

/* Google Translate banner is hidden via inline <style> injected by JS (same as gtranslate) */
