/* Restaurant Booking System - Apple Store Design System */

.rbs-booking-container {
    /* Override theme container width restrictions */
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', Helvetica, Arial, sans-serif;
    background: #f5f5f7;
    min-height: 100vh;

    /* Prevent theme layout interference */
    box-sizing: border-box !important;
    position: relative !important;
}

/* Basic Container Protection Only */

.rbs-form-title {
    text-align: center;
    margin-bottom: 48px;
    color: #1d1d1f;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.003em;
    line-height: 1.0834933333;
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.rbs-booking-form {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.rbs-form-section {
    padding: 32px 0px;
    border-bottom: 1px solid #d2d2d7;
}

.rbs-form-section:last-child {
    border-bottom: none;
}

.rbs-form-section h3 {
    margin: 0 0 24px 0;
    color: #1d1d1f;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.005em;
    line-height: 1.1428571429;
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.rbs-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.rbs-form-row:last-child {
    margin-bottom: 0;
}

.rbs-form-field {
    flex: 1;
}

.rbs-field-half {
    flex: 0 0 calc(50% - 10px);
}

.rbs-field-third {
    flex: 0 0 calc(33.333% - 14px);
}

/* Three column layout specific styling */
.rbs-three-columns {
    gap: 20px;
}

.rbs-three-columns .rbs-field-third {
    min-width: 0; /* Prevents flex items from overflowing */
}

/* Form field positioning for dialogs/tooltips */
.rbs-form-field {
    position: relative;
    z-index: 1;
}

/* Ensure proper stacking context for autofill and help dialogs */
.rbs-booking-form {
    position: relative;
    z-index: 10;
}

/* Fix for browser autofill dropdown positioning */
.rbs-form-field input,
.rbs-form-field select {
    position: relative;
    z-index: 2;
}

/* WordPress admin bar and dialog fixes */
.rbs-booking-form {
    isolation: isolate; /* Creates new stacking context */
}

/* Fix for WordPress help tooltips and dialogs */
.rbs-form-field .help-tooltip,
.rbs-form-field .wp-help-tooltip,
.rbs-form-field [class*="tooltip"],
.rbs-form-field [class*="help"] {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    z-index: 999999 !important;
    margin-top: 5px !important;
}

/* Fix for browser autofill suggestions */
.rbs-form-field input:-webkit-autofill,
.rbs-form-field input:-webkit-autofill:hover,
.rbs-form-field input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: #333 !important;
}

/* Ensure form fields don't get covered by floating elements */
.rbs-form-field {
    clear: both;
    overflow: visible;
    contain: layout; /* Helps with positioning context */
}

/* More specific fixes for browser autocomplete dropdowns */
.rbs-form-field input {
    position: relative;
    z-index: 1;
}

/* Force proper stacking for the entire form container */
.rbs-booking-form {
    position: relative;
    z-index: 1;
    transform: translateZ(0); /* Force hardware acceleration and new stacking context */
}

/* Fix for Chrome/Safari autocomplete positioning */
.rbs-form-field input[type="text"],
.rbs-form-field input[type="email"],
.rbs-form-field input[type="tel"] {
    position: relative;
    z-index: 2;
    isolation: isolate;
}

/* Ensure autocomplete dropdown appears in correct position */
.rbs-form-field {
    position: relative;
    z-index: auto;
    contain: layout style;
}

/* Additional fixes for browser autocomplete positioning issues */
.rbs-booking-form,
.rbs-form-section,
.rbs-form-row {
    position: static !important;
    transform: none !important;
}

/* Override any theme transforms that might affect positioning */
.rbs-booking-form * {
    transform: none !important;
}

/* Specific fix for phone number autocomplete */
.rbs-form-field input[type="tel"] {
    position: relative !important;
    z-index: 999 !important;
}

/* Reset any problematic CSS that might interfere */
.rbs-booking-form {
    will-change: auto !important;
    backface-visibility: visible !important;
    perspective: none !important;
}

/* Specific fix for customer info section positioning */
.rbs-customer-info {
    position: relative !important;
    z-index: 1000 !important;
    isolation: isolate !important;
    contain: layout !important;
}

/* Ensure table selection doesn't interfere with customer info */
.rbs-table-selection {
    position: relative !important;
    z-index: 1 !important;
    contain: layout style !important;
}

/* Force proper stacking for phone field specifically */
.rbs-customer-info .rbs-form-field input[type="tel"] {
    position: relative !important;
    z-index: 9999 !important;
    isolation: isolate !important;
}

/* Prevent any transforms on customer info section */
.rbs-customer-info,
.rbs-customer-info * {
    transform: none !important;
    will-change: auto !important;
}

/* Two-Step Flow Styles */
.rbs-booking-step {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.rbs-step-active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.rbs-step-hidden {
    display: none;
    opacity: 0;
    transform: translateX(20px);
}

/* Step Navigation Buttons */
.rbs-continue-btn,
.rbs-back-btn {
    background: #007aff;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-width: 200px;
    font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    letter-spacing: -0.022em;
}

.rbs-continue-btn:hover,
.rbs-back-btn:hover {
    background: #0056cc;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.3);
}

.rbs-continue-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.rbs-back-btn {
    background: #f2f2f7;
    color: #007aff;
    margin-right: 16px;
}

.rbs-back-btn:hover {
    background: #e5e5ea;
    color: #0056cc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rbs-step2-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

/* Booking Summary Styles */
.rbs-booking-summary {
    background: #ffffff;

    padding: 24px;
    margin-bottom: 24px;
    /*box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e5e9;
 border-radius: 12px;
    */
}

.rbs-booking-summary h4 {
    margin: 0 0 16px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.rbs-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.rbs-summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.rbs-summary-label {
    font-weight: 500;
    color: #424245;
    font-size: 17px;
    line-height: 1.2352941176;
    font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.rbs-summary-value {
    color: #424245;
    font-size: 17px;
    line-height: 1.2352941176;
    font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Payment Summary Styles */
.rbs-payment-summary {
    background: #f8f9fa;
    padding: 24px;
    margin-bottom: 24px;
    
}

.rbs-payment-summary h4 {
    margin: 0 0 16px 0;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.rbs-payment-details {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.rbs-payment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.rbs-payment-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.rbs-payment-total {
    border-top: 2px solid #007aff;
    margin-top: 12px;
    padding-top: 12px;
    font-weight: 700;
    font-size: 17px;
}

.rbs-payment-label {
    font-weight: 500;
    color: #424245;
    font-size: 17px;
    line-height: 1.2352941176;
    font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.rbs-payment-amount {
    color: #424245;
    font-size: 17px;
    line-height: 1.2352941176;
    font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.rbs-payment-total .rbs-payment-label,
.rbs-payment-total .rbs-payment-amount {
    color: #2c3e50;
    font-size: 18px;
}

/* Table Selection Capacity Warnings */
.rbs-table-selection-summary {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 6px;
    background: #f8f9fa;
    border-left: 4px solid #28a745;
}

.rbs-table-selection-summary:has([id*="selected-tables-display"]:contains("⚠️")) {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.rbs-table-selection-summary p {
    margin: 0;
    font-size: 14px;
}

#selected-tables-display {
    font-weight: 600;
}

/* Insufficient capacity warning */
.rbs-table-selection-summary.rbs-insufficient-capacity {
    background: #f8d7da !important;
    border-left-color: #dc3545 !important;
    animation: pulse-warning 2s infinite;
}

.rbs-table-selection-summary.rbs-insufficient-capacity #selected-tables-display {
    color: #721c24;
}

@keyframes pulse-warning {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Continue button disabled state when capacity insufficient */
.rbs-continue-btn:disabled {
    background: #e9e6ed !important;
    cursor: not-allowed;
    opacity: 0.8;
    filter: grayscale(70%);
}

.rbs-continue-btn:disabled:hover {
    background: #dc3545 !important;
    transform: none !important;
}

.rbs-form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1d1d1f;
    font-size: 17px;
    line-height: 1.2352941176;
    font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.required {
    color: #ff3b30;
}

.rbs-form-field input,
.rbs-form-field select,
.rbs-form-field textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    font-size: 17px;
    line-height: 1.2352941176;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-sizing: border-box;
    background: #ffffff;
    font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Desktop dropdown styling */
@media (min-width: 769px) {
    .rbs-form-field select {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 16px center;
        background-size: 16px;
        padding-right: 45px;
        cursor: pointer;
    }

    .rbs-form-field select:hover {
        border-color: #007aff;
    }
}

.rbs-form-field input:focus,
.rbs-form-field select:focus,
.rbs-form-field textarea:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

.rbs-form-field input:disabled,
.rbs-form-field select:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* Loading State */
.rbs-loading {
    text-align: center;
    padding: 40px;
    color: #86868b;
    font-style: italic;
    font-size: 17px;
}

/* Form Actions */
.rbs-form-actions {
    text-align: center;
}

.rbs-submit-btn {
    background: #007aff;
    color: white;
    border: none;
    padding: 16px 48px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-width: 200px;
    line-height: 1.2352941176;
    letter-spacing: -0.022em;
    font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.rbs-submit-btn:hover:not(:disabled) {
    background: #0056cc;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.3);
}

.rbs-submit-btn:disabled {
    background: #d1d1d6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.rbs-btn-loading {
    display: inline-block;
}

.rbs-payment-info {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* Messages */
.rbs-form-messages {
    margin-bottom: 20px;
}

.rbs-message {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.rbs-message.success {
    background: #d5f4e6;
    border-left: 4px solid #27ae60;
    color: #27ae60;
}

.rbs-message.error {
    background: #fadbd8;
    border-left: 4px solid #e74c3c;
    color: #e74c3c;
}

.rbs-message.warning {
    background: #fef9e7;
    border-left: 4px solid #f39c12;
    color: #f39c12;
}

/* Modal Styles */
.rbs-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rbs-modal-content {
    background: white;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.rbs-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rbs-modal-header h3 {
    margin: 0;
    color: #27ae60;
}

.rbs-modal-close {
    font-size: 24px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

.rbs-modal-close:hover {
    color: #333;
}

.rbs-modal-body {
    padding: 20px;
    text-align: center;
}

.rbs-success-icon {
    font-size: 48px;
    color: #27ae60;
    margin-bottom: 20px;
}

.rbs-modal-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.rbs-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.rbs-btn-primary {
    background: #e74c3c;
    color: white;
}

.rbs-btn-primary:hover {
    background: #c0392b;
}

.rbs-btn-secondary {
    background: #95a5a6;
    color: white;
}

.rbs-btn-secondary:hover {
    background: #7f8c8d;
}

/* Apple Store-Inspired Restaurant Layout */
.rbs-restaurant-layout {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.rbs-restaurant-layout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.rbs-restaurant-layout > * {
    position: relative;
    z-index: 1;
}

/* Grid area assignments for labels */
.rbs-side-labels {
    grid-area: labels;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rbs-side-labels-right {
    grid-area: labels-right;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Empty spaces for positioning */
.rbs-empty-space {
    grid-area: empty;
}

.rbs-empty-space2 {
    grid-area: empty2;
}

/* Dynamic row containers - support unlimited rows */
.rbs-restaurant-layout > div:first-child {
    /* Entrance spans all columns */
    grid-column: 1 / -1;
}

.rbs-restaurant-layout > .rbs-center-aisle {
    /* Center aisle always in middle column */
    grid-column: 2;
}

/* Left side rows */
.rbs-restaurant-layout > div[class*="-left"] {
    grid-column: 1;
}

/* Right side rows */
.rbs-restaurant-layout > div[class*="-right"] {
    grid-column: 3;
}

/* Row styling */
.rbs-table-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.rbs-center-aisle {
    grid-area: aisle;
    background: transparent;
    border-radius: 10px;
    position: relative;
}

.rbs-center-aisle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 60%;
    background: transparent;
}

.rbs-side-label {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    grid-column: 1 / -1; /* Span across all columns */
}

/* Override existing table styles for new layout */
.rbs-restaurant-layout .rbs-table {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin: 0;
}

.rbs-restaurant-layout .rbs-table::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(255,255,255,0.1));
    border-radius: 14px;
    z-index: -1;
}

/* Position-based sizing (maintains layout regardless of capacity) */
.rbs-restaurant-layout .rbs-table.left-side {
    width: 75px;
    height: 50px;
    font-size: 12px;
    padding: 8px;
}

.rbs-restaurant-layout .rbs-table.right-side {
    width: 70px;
    height: 50px;
    font-size: 12px;
    padding: 8px;
}

/* Legacy capacity-based sizing (for backward compatibility) */
.rbs-restaurant-layout .rbs-table.six-person {
    width: 75px;
    height: 50px;
    font-size: 12px;
    padding: 8px;
}

.rbs-restaurant-layout .rbs-table.four-person {
    width: 70px;
    height: 50px;
    font-size: 12px;
    padding: 8px;
}

.rbs-restaurant-layout .rbs-table:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.rbs-restaurant-layout .rbs-table.available {
    opacity: 1;
    cursor: pointer;
    background: #fff !important;
    color: black;
   
}

.rbs-restaurant-layout .rbs-table.unavailable {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(70%);
}

.rbs-restaurant-layout .rbs-table.unavailable:hover {
    transform: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.rbs-restaurant-layout .rbs-table.selected {
    transform: translateY(-8px) scale(1.12);
    box-shadow: 0 25px 50px rgba(0, 122, 255, 0.5);
    border: 4px solid #007aff !important;
}

.rbs-restaurant-layout .rbs-table.selected::after {
    content: '';

}

.rbs-table-number {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
    line-height: 1.1;
}

.rbs-table-capacity {
    font-size: 9px;
    opacity: 0.9;
    font-weight: 500;
    line-height: 1.1;
}

/* Table States */
.rbs-restaurant-layout .rbs-table.blocked {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(50%);
    position: relative;
}

.rbs-restaurant-layout .rbs-table.blocked::after {
    content: '🚫';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    z-index: 2;
}

.rbs-restaurant-layout .rbs-table.optimal-choice {
    border: 3px solid grey;
    animation: pulse-optimal 2s infinite;
}

/* Selection Messages */
.rbs-selection-message {
    margin: 15px 0;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    animation: slideIn 0.3s ease-out;
}

.rbs-message-success {
    background: #d1f2eb;
    color: #0d7a5f;
    border-left: 4px solid #34c759;
}

.rbs-message-info {
    background: #e3f2fd;
    color: #1565c0;
    border-left: 4px solid #007aff;
}

.rbs-message-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.rbs-message-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-optimal {
    0%, 100% {
        border-color: grey;
        box-shadow: 0 0 0 0 rgba(128, 128, 128, 0.4);
    }
    50% {
        border-color: #666;
        box-shadow: 0 0 0 4px rgba(128, 128, 128, 0.2);
    }
}

/* Entrance */
.rbs-entrance {
    text-align: center;
    margin: 20px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    max-width: 600px;
    width: 80%;
    display: block;
}

.rbs-entrance-label {
    font-size: 17px;
    font-weight: 600;
    color: #1d1d1f;
    line-height: 1.2352941176;
}

.rbs-entrance-icon {
    font-size: 20px;
    margin-right: 8px;
    display: inline-block;
}

/* Keep booking container properly aligned */
.entry-content .rbs-booking-container,
.wp-block-post-content .rbs-booking-container,
.entry .rbs-booking-container,
article .rbs-booking-container,
.post-content .rbs-booking-container,
.content .rbs-booking-container,
.main-content .rbs-booking-container {
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Holiday Date Styling for Date Picker */
.ui-datepicker .rbs-holiday-date {
    background: #ffebee !important;
    color: #c62828 !important;
    cursor: not-allowed !important;
}

.ui-datepicker .rbs-holiday-date a {
    color: #c62828 !important;
    text-decoration: line-through !important;
}

.ui-datepicker .ui-state-disabled.rbs-holiday-date {
    opacity: 0.6 !important;
}

/* Large Group Notice Styling */
.rbs-large-group-notice {
    margin-top: 20px;
    animation: fadeIn 0.3s ease-in-out;
}

.rbs-large-group-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.rbs-large-group-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

.rbs-large-group-card h4 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: white;
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.rbs-large-group-card p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 25px 0;
    opacity: 0.9;
    color: white;
}

.rbs-contact-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.rbs-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    min-width: 140px;
    justify-content: center;
}

.rbs-contact-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

.rbs-contact-icon {
    font-size: 18px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0%, 100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Infant Section Styling (Desktop) */
.rbs-infant-section {
    margin-top: 16px;
    padding: 16px 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.rbs-checkbox-field {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}

.rbs-checkbox-field input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    border: 2px solid #007cba;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.2s ease;
}

.rbs-checkbox-field input[type="checkbox"]:hover {
    border-color: #005a87;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.rbs-checkbox-field input[type="checkbox"]:checked {
    background-color: #007cba;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='white' d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
    border-color: #007cba;
}

.rbs-checkbox-field label {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin: 0;
    cursor: pointer;
    flex: 1;
    line-height: 1.4;
    user-select: none;
}

.rbs-infant-count-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

.rbs-infant-count-section label {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
    display: block;
}

.rbs-infant-count-section select {
    padding: 12px 16px;
    font-size: 15px;
    border-radius: 8px;
    border: 2px solid #ddd;
    background-color: white;
    width: 100%;
    transition: border-color 0.2s ease;
}

.rbs-infant-count-section select:focus {
    border-color: #007cba;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.rbs-infant-count-section .description {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
    display: block;
    font-style: italic;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Override theme mobile container restrictions */
    .rbs-booking-container {
        max-width: none !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 20px 15px !important;
        box-sizing: border-box !important;
    }

    /* Override WordPress block padding on mobile */
    .wp-block-group.alignfull.has-global-padding.is-layout-constrained:has(.rbs-booking-container),
    .wp-block-group.alignfull.has-global-padding:has(.rbs-booking-container),
    .wp-block-group.has-global-padding:has(.rbs-booking-container) {
        --wp--style--root--padding-top: 0px !important;
        --wp--style--root--padding-right: 2px !important;
        --wp--style--root--padding-bottom: 0px !important;
        --wp--style--root--padding-left: 2px !important;
        padding-left: 2px !important;
        padding-right: 2px !important;
        padding-top: 0px !important;
        padding-bottom: 0px !important;
    }

    /* Override WordPress block padding for checkout pages on mobile */
    .wp-site-blocks:has(.rbs-classic-checkout-wrapper),
    .wp-block-group.alignfull.has-global-padding.is-layout-constrained:has(.rbs-classic-checkout-wrapper),
    .wp-block-group.alignfull.has-global-padding:has(.rbs-classic-checkout-wrapper),
    .wp-block-group.has-global-padding:has(.rbs-classic-checkout-wrapper),
    .wp-site-blocks:has(.wp-block-woocommerce-checkout),
    .wp-block-group.alignfull.has-global-padding.is-layout-constrained:has(.wp-block-woocommerce-checkout),
    .wp-block-group.alignfull.has-global-padding:has(.wp-block-woocommerce-checkout),
    .wp-block-group.has-global-padding:has(.wp-block-woocommerce-checkout) {
        --wp--style--root--padding-top: 0px !important;
        --wp--style--root--padding-right: 2px !important;
        --wp--style--root--padding-bottom: 0px !important;
        --wp--style--root--padding-left: 2px !important;
        padding-left: 2px !important;
        padding-right: 2px !important;
        padding-top: 0px !important;
        padding-bottom: 0px !important;
    }

    /* Additional checkout page specific overrides */
    body.woocommerce-checkout .wp-site-blocks,
    body.page-id-* .wp-site-blocks:has(.woocommerce-checkout),
    body.page .wp-site-blocks:has(.rbs-classic-checkout-wrapper) {
        --wp--style--root--padding-top: 0px !important;
        --wp--style--root--padding-right: 2px !important;
        --wp--style--root--padding-bottom: 0px !important;
        --wp--style--root--padding-left: 2px !important;
        padding: 2px !important;
    }



    /* Keep mobile booking container properly aligned */
    .entry-content .rbs-booking-container,
    .wp-block-post-content .rbs-booking-container,
    .entry .rbs-booking-container,
    article .rbs-booking-container,
    .post-content .rbs-booking-container,
    .content .rbs-booking-container,
    .main-content .rbs-booking-container {
        max-width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .rbs-booking-container {
        padding: 20px 16px;
    }

    .rbs-form-title {
        font-size: 32px;
        margin-bottom: 32px;
    }

    .rbs-form-section {
        padding: 24px 0px;
    }

    .rbs-form-section h3 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .rbs-form-row {
        flex-direction: column;
        gap: 16px;
    }

    .rbs-field-half,
    .rbs-field-third {
        flex: 1;
    }

    /* Mobile Restaurant Layout - Simplified Grid */
    .rbs-restaurant-layout {
        grid-template-columns: 1fr 25px 1fr;
        padding: 16px;
        gap: 6px;
        max-width: 100%;
    }

    .rbs-table-row {
        gap: 6px;
    }

    .rbs-center-aisle {
        background: transparent;
        border-radius: 8px;
        width: 30px;
    }

    .rbs-side-label {
        font-size: 16px;
        margin-bottom: 16px;
    }

    /* Mobile Table Sizing - Position-based */
    .rbs-restaurant-layout .rbs-table.left-side {
        width: 50px;
        height: 35px;
        font-size: 9px;
        padding: 6px;
    }

    .rbs-restaurant-layout .rbs-table.right-side {
        width: 45px;
        height: 35px;
        font-size: 8px;
        padding: 5px;
    }

    /* Mobile Table Sizing - Legacy capacity-based (for backward compatibility) */
    .rbs-restaurant-layout .rbs-table.six-person {
        width: 50px;
        height: 35px;
        font-size: 9px;
        padding: 6px;
    }

    .rbs-restaurant-layout .rbs-table.four-person {
        width: 45px;
        height: 35px;
        font-size: 8px;
        padding: 5px;
    }

    /* Mobile Form Elements */
    .rbs-form-field input,
    .rbs-form-field select,
    .rbs-form-field textarea {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 20px; /* Better touch target */
        -webkit-appearance: none; /* Remove default styling */
        -moz-appearance: none;
        appearance: none;
    }

    /* Mobile Infant Section Styling */
    .rbs-infant-section {
        margin-top: 12px !important;
        padding: 12px 16px;
        background-color: #f8f9fa;
        border-radius: 8px;
        border: 1px solid #e9ecef;
    }

    .rbs-checkbox-field {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 0;
    }

    .rbs-checkbox-field input[type="checkbox"] {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px;
        flex-shrink: 0;
        margin: 0;
        padding: 0;
        border: 2px solid #007cba;
        border-radius: 4px;
        background-color: white;
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
    }

    .rbs-checkbox-field input[type="checkbox"]:checked {
        background-color: #007cba;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='white' d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: center;
        background-size: 12px;
    }

    .rbs-checkbox-field label {
        font-size: 16px;
        font-weight: 500;
        color: #333;
        margin: 0;
        cursor: pointer;
        flex: 1;
        line-height: 1.4;
    }

    .rbs-infant-count-section {
        margin-top: 12px !important;
        padding-top: 12px;
        border-top: 1px solid #e9ecef;
    }

    .rbs-infant-count-section label {
        font-size: 14px;
        font-weight: 500;
        color: #555;
        margin-bottom: 8px;
        display: block;
    }

    .rbs-infant-count-section select {
        padding: 12px 16px;
        font-size: 16px;
        border-radius: 6px;
        border: 2px solid #ddd;
        background-color: white;
        width: 100%;
    }

    .rbs-infant-count-section .description {
        font-size: 13px;
        color: #666;
        margin-top: 6px;
        display: block;
        font-style: italic;
    }

    /* Custom dropdown arrow for mobile */
    .rbs-form-field select {
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 20px;
        padding-right: 40px;
    }

    /* Date input specific styling for mobile */
    .rbs-form-field input[type="date"] {
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3e%3c/rect%3e%3cline x1='16' y1='2' x2='16' y2='6'%3e%3c/line%3e%3cline x1='8' y1='2' x2='8' y2='6'%3e%3c/line%3e%3cline x1='3' y1='10' x2='21' y2='10'%3e%3c/line%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 20px;
        padding-right: 40px;
    }

    .rbs-submit-btn {
        width: 100%;
        padding: 16px 24px;
        font-size: 16px;
    }

    /* Mobile Modal */
    .rbs-modal-content {
        width: 95%;
        margin: 20px;
    }

    /* Mobile styles for two-step flow */
    .rbs-continue-btn,
    .rbs-back-btn {
        width: 100%;
        min-width: auto;
        margin-bottom: 12px;
        padding: 18px 24px;
        font-size: 16px;
    }

    .rbs-step2-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .rbs-back-btn {
        margin-right: 0;
        order: 2;
    }

    .rbs-next-available-btn {
        width: 100%;
        min-width: auto;
        padding: 18px 24px;
        font-size: 16px;
    }

    .rbs-submit-btn {
        order: 1;
    }

    .rbs-payment-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 16px 0;
    }

    .rbs-summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 12px 0;
    }

    .rbs-payment-details {
        padding: 16px;
    }

    .rbs-payment-total {
        padding-top: 20px;
        margin-top: 12px;
    }

    .rbs-modal-header,
    .rbs-modal-body {
        padding: 16px;
    }

    /* Mobile checkout padding to match booking form */
    .rbs-classic-checkout-wrapper {
        padding: 20px 16px;
    }

    .rbs-classic-checkout-wrapper .woocommerce-checkout .woocommerce-billing-fields,
    .rbs-classic-checkout-wrapper .woocommerce-checkout .woocommerce-shipping-fields,
    .rbs-classic-checkout-wrapper .woocommerce-checkout .woocommerce-additional-fields {
        margin-bottom: 20px;
    }

    .rbs-classic-checkout-wrapper .woocommerce-checkout h3,
    .rbs-classic-checkout-wrapper .woocommerce-checkout .woocommerce-billing-fields h3,
    .rbs-classic-checkout-wrapper .woocommerce-checkout .woocommerce-shipping-fields h3,
    .rbs-classic-checkout-wrapper .woocommerce-checkout .woocommerce-additional-fields h3,
    .rbs-classic-checkout-wrapper .woocommerce-checkout #order_review_heading {
        font-size: 24px;
        margin-bottom: 20px;
    }

    /* Mobile booking summary styling */
    .rbs-checkout-booking-summary-blocks h4,
    .rbs-checkout-booking-summary h3 {
        font-size: 24px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .rbs-booking-container {
        padding: 16px 12px;
    }

    .rbs-form-title {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .rbs-restaurant-layout {
        grid-template-columns: 1fr 18px 1fr;
        grid-template-rows: auto auto auto auto auto auto auto auto auto;
        grid-template-areas:
            "entrance entrance entrance"
            "row1-left aisle row1-right"
            "row2-left aisle row2-right"
            "row3-left aisle row3-right"
            "row4-left aisle row4-right"
            "row5-left aisle row5-right"
            "row6-left aisle row6-right"
            "row7-left aisle row7-right"
            "empty empty empty";
        padding: 12px;
        gap: 4px;
    }

    .rbs-center-aisle {
        width: 10px;
    }

    .rbs-table-row {
        gap: 4px;
    }

    /* Extra small mobile tables - Position-based */
    .rbs-restaurant-layout .rbs-table.left-side {
        width: 40px;
        height: 30px;
        font-size: 7px;
        padding: 4px;
    }

    .rbs-restaurant-layout .rbs-table.right-side {
        width: 35px;
        height: 30px;
        font-size: 6px;
        padding: 3px;
    }

    /* Extra small mobile tables - Legacy capacity-based (for backward compatibility) */
    .rbs-restaurant-layout .rbs-table.six-person {
        width: 35px;
        height: 30px;
        font-size: 7px;
        padding: 4px;
    }

    .rbs-restaurant-layout .rbs-table.four-person {
        width: 35px;
        height: 30px;
        font-size: 6px;
        padding: 3px;
    }

    .rbs-side-label {
        font-size: 14px;
        padding: 6px 12px;
    }

    /* Extra small mobile checkout padding */
    .rbs-classic-checkout-wrapper {
        padding: 16px 12px;
    }

    .rbs-classic-checkout-wrapper .woocommerce-checkout .woocommerce-billing-fields,
    .rbs-classic-checkout-wrapper .woocommerce-checkout .woocommerce-shipping-fields,
    .rbs-classic-checkout-wrapper .woocommerce-checkout .woocommerce-additional-fields {
        margin-bottom: 16px;
    }


}

/* Classic Checkout Compatibility */
.rbs-classic-checkout-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', Helvetica, Arial, sans-serif;
    background: #fff;
    min-height: 100vh;
}

.rbs-classic-checkout-wrapper .woocommerce {
    font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.rbs-classic-checkout-wrapper .woocommerce-checkout {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
    padding: 20px;
}

/* Fix col2-set layout structure */
.rbs-classic-checkout-wrapper .woocommerce-checkout .col2-set {
    display: block !important;
    width: 100% !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.rbs-classic-checkout-wrapper .woocommerce-checkout .col2-set .col-1,
.rbs-classic-checkout-wrapper .woocommerce-checkout .col2-set .col-2 {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    clear: both !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.rbs-classic-checkout-wrapper .woocommerce-checkout .col2-set::after {
    content: "";
    display: table;
    clear: both;
}

/* Checkout form sections - minimal styling */
.rbs-classic-checkout-wrapper .woocommerce-checkout .woocommerce-billing-fields,
.rbs-classic-checkout-wrapper .woocommerce-checkout .woocommerce-shipping-fields,
.rbs-classic-checkout-wrapper .woocommerce-checkout .woocommerce-additional-fields {
    margin-bottom: 24px;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Checkout headings to match booking form */
.rbs-classic-checkout-wrapper .woocommerce-checkout h3,
.rbs-classic-checkout-wrapper .woocommerce-checkout .woocommerce-billing-fields h3,
.rbs-classic-checkout-wrapper .woocommerce-checkout .woocommerce-shipping-fields h3,
.rbs-classic-checkout-wrapper .woocommerce-checkout .woocommerce-additional-fields h3,
.rbs-classic-checkout-wrapper .woocommerce-checkout #order_review_heading {
    margin: 0 0 24px 0;
    color: #1d1d1f;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.005em;
    line-height: 1.1428571429;
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Checkout form fields to match booking form */
.rbs-classic-checkout-wrapper .woocommerce-checkout .form-row input,
.rbs-classic-checkout-wrapper .woocommerce-checkout .form-row select,
.rbs-classic-checkout-wrapper .woocommerce-checkout .form-row textarea {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    font-size: 17px;
    line-height: 1.2352941176;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-sizing: border-box;
    background: #ffffff;
    font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.rbs-classic-checkout-wrapper .woocommerce-checkout .form-row input:focus,
.rbs-classic-checkout-wrapper .woocommerce-checkout .form-row select:focus,
.rbs-classic-checkout-wrapper .woocommerce-checkout .form-row textarea:focus {
    outline: none;
    border-color: #007aff;
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

/* Checkout labels to match booking form */
.rbs-classic-checkout-wrapper .woocommerce-checkout .form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1d1d1f;
    font-size: 17px;
    line-height: 1.2352941176;
    font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Remove WooCommerce shop table border */
.rbs-classic-checkout-wrapper .woocommerce table.shop_table {
    border: none !important;
    border-radius: 0 !important;
}


/* Checkout Booking Summary - Integrated styling */
.rbs-checkout-booking-summary-blocks,
.rbs-checkout-booking-summary {
    margin-bottom: 24px;
}

.rbs-checkout-booking-summary-blocks h4,
.rbs-checkout-booking-summary h3 {
    margin: 0 0 24px 0;
    color: #1d1d1f;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.005em;
    line-height: 1.1428571429;
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.rbs-checkout-booking-summary-blocks .rbs-booking-details p,
.rbs-checkout-booking-summary .rbs-booking-details p {
    margin: 8px 0;
    color: #424245;
    font-size: 17px;
    line-height: 1.2352941176;
    font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.rbs-checkout-booking-summary-blocks .rbs-booking-details strong,
.rbs-checkout-booking-summary .rbs-booking-details strong {
    color: #1d1d1f;
    font-weight: 600;
}

/* Checkout blocks container styling */
.wp-block-woocommerce-checkout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', Helvetica, Arial, sans-serif;
    background: #f5f5f7;
    min-height: 100vh;
}

.wp-block-woocommerce-checkout .wc-block-checkout {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

/* Payment Gateway Compatibility Notice */
.rbs-payment-compatibility-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 16px;
    margin: 20px 0;
    color: #856404;
}

.rbs-payment-compatibility-notice h4 {
    margin: 0 0 8px 0;
    color: #856404;
    font-size: 16px;
    font-weight: 600;
}

.rbs-payment-compatibility-notice p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

/* No Tables Available Styling */
.rbs-no-tables {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
    background: #f9f9f9;
    border: 2px dashed #ddd;
    border-radius: 8px;
    margin: 20px 0;
}

.rbs-no-tables p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #666;
}

.rbs-next-available-btn {
    background: #007aff;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-width: 200px;
    font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    letter-spacing: -0.022em;
    margin-top: 16px;
    display: block;
    width: 100%;
}

.rbs-next-available-btn:hover {
    background: #0056cc;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.3);
}

.rbs-next-available-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.rbs-next-available-btn:active {
    transform: translateY(0);
}

/* Container for the next available button */
.rbs-next-available-container {
    margin-top: 16px;
    text-align: center;
}

.rbs-next-available-container p {
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* Branch Confirmation Dialog Styles */
#rbs-branch-confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

#rbs-branch-confirmation-modal .rbs-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#rbs-branch-confirmation-modal .rbs-modal-header {
    padding: 24px 24px 16px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#rbs-branch-confirmation-modal .rbs-modal-header h3 {
    margin: 0;
    color: #1d1d1f;
    font-size: 22px;
    font-weight: 600;
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#rbs-branch-confirmation-modal .rbs-modal-close {
    font-size: 28px;
    cursor: pointer;
    color: #86868b;
    line-height: 1;
    transition: color 0.2s ease;
    padding: 4px;
}

#rbs-branch-confirmation-modal .rbs-modal-close:hover {
    color: #1d1d1f;
}

#rbs-branch-confirmation-modal .rbs-modal-body {
    padding: 24px;
    text-align: center;
}

.rbs-branch-confirmation-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.rbs-branch-icon {
    font-size: 48px;
    margin-bottom: 8px;
}

.rbs-branch-message {
    font-size: 17px;
    color: #424245;
    margin: 0;
    font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.rbs-selected-branch {
    background: linear-gradient(135deg, #007aff 0%, #0056cc 100%);
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.3);
    margin: 8px 0;
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.rbs-branch-question {
    font-size: 16px;
    color: #86868b;
    margin: 8px 0 0 0;
    font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#rbs-branch-confirmation-modal .rbs-modal-footer {
    padding: 16px 24px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

#rbs-branch-confirmation-modal .rbs-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-width: 160px;
    font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#rbs-branch-confirmation-modal .rbs-btn-primary {
    background: #007aff;
    color: white;
}

#rbs-branch-confirmation-modal .rbs-btn-primary:hover {
    background: #0056cc;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.3);
}

#rbs-branch-confirmation-modal .rbs-btn-secondary {
    background: #f2f2f7;
    color: #007aff;
    border: 1px solid #d1d1d6;
}

#rbs-branch-confirmation-modal .rbs-btn-secondary:hover {
    background: #e5e5ea;
    color: #0056cc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Mobile responsive styles for branch confirmation */
@media (max-width: 768px) {
    #rbs-branch-confirmation-modal .rbs-modal-content {
        width: 95%;
        margin: 20px;
        border-radius: 16px;
    }

    #rbs-branch-confirmation-modal .rbs-modal-header,
    #rbs-branch-confirmation-modal .rbs-modal-body,
    #rbs-branch-confirmation-modal .rbs-modal-footer {
        padding: 20px;
    }

    #rbs-branch-confirmation-modal .rbs-modal-header h3 {
        font-size: 20px;
    }

    .rbs-branch-icon {
        font-size: 40px;
    }

    .rbs-selected-branch {
        font-size: 16px;
        padding: 14px 20px;
    }

    #rbs-branch-confirmation-modal .rbs-modal-footer {
        flex-direction: column;
        gap: 12px;
    }

    #rbs-branch-confirmation-modal .rbs-btn {
        width: 100%;
        min-width: auto;
        padding: 16px 24px;
        font-size: 16px;
    }
}


