/**
 * Front-end Reservation Form Styles
 * Professional Step Wizard with SVG Icons
 *
 * @package MR_Restaurant
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */

.mr-reservation-form-wrap,
.mr-table-selector-wrap,
.mr-restaurant-menu-wrap,
.mr-restaurant-account-wrap {
    --mr-primary: #2271b1;
    --mr-primary-dark: #1a5a8e;
    --mr-success: #00a32a;
    --mr-success-bg: #ecf7ed;
    --mr-error: #d63638;
    --mr-warning: #d68910;
    --mr-text: #1d2327;
    --mr-text-muted: #646970;
    --mr-border: #e0e0e0;
    --mr-bg: #f8f9fa;
    --mr-white: #ffffff;
    --mr-radius: 6px;
    --mr-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.mr-reservation-form-wrap[data-theme="dark"],
.mr-table-selector-wrap[data-theme="dark"] {
    --mr-text: #f0f0f1;
    --mr-text-muted: #a7aaad;
    --mr-border: #3c434a;
    --mr-bg: #23282d;
    --mr-white: #2c3338;
}

/* ==========================================================================
   Main Container
   ========================================================================== */

.mr-reservation-form-wrap {
    max-width: 680px;
    margin: 0 auto;
    background: var(--mr-white);
    border: 1px solid var(--mr-border);
    border-radius: var(--mr-radius);
    font-family: var(--mr-font);
    position: relative;
    overflow: hidden;
}

/* ==========================================================================
   Step Wizard
   ========================================================================== */

.mr-step-wizard {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 24px 32px 20px;
    background: var(--mr-bg);
    border-bottom: 1px solid var(--mr-border);
}

.mr-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
}

.mr-step-icon {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mr-white);
    border: 2px solid var(--mr-border);
    border-radius: 50%;
    color: var(--mr-text-muted);
    transition: all 0.2s ease;
}

.mr-step-icon svg {
    width: 22px;
    height: 22px;
    transition: transform 0.2s ease;
}

.mr-step-check {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: var(--mr-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

.mr-step-check svg {
    width: 12px;
    height: 12px;
    color: #fff;
}

.mr-step-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--mr-text-muted);
    text-align: center;
    transition: color 0.2s ease;
}

/* Active Step */
.mr-step-item.active .mr-step-icon {
    border-color: var(--mr-primary);
    background: var(--mr-primary);
    color: #fff;
}

.mr-step-item.active .mr-step-label {
    color: var(--mr-primary);
    font-weight: 600;
}

/* Completed Step */
.mr-step-item.completed .mr-step-icon {
    border-color: var(--mr-success);
    background: var(--mr-success-bg);
    color: var(--mr-success);
}

.mr-step-item.completed .mr-step-check {
    opacity: 1;
    transform: scale(1);
}

.mr-step-item.completed .mr-step-label {
    color: var(--mr-success);
}

/* Step Connector */
.mr-step-connector {
    flex: 0.6;
    height: 2px;
    background: var(--mr-border);
    margin-top: 24px;
    position: relative;
    overflow: hidden;
}

.mr-step-connector span {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: var(--mr-success);
    transition: width 0.3s ease;
}

.mr-step-item.completed+.mr-step-connector span {
    width: 100%;
}

/* ==========================================================================
   Form Container
   ========================================================================== */

.mr-reservation-form {
    padding: 24px 28px 28px;
}

/* ==========================================================================
   Form Steps
   ========================================================================== */

.mr-form-step {
    display: none;
}

.mr-form-step.active {
    display: block;
    animation: mr-fadeIn 0.25s ease;
}

@keyframes mr-fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step Header */
.mr-step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--mr-border);
}

.mr-step-header svg {
    color: var(--mr-primary);
    flex-shrink: 0;
}

.mr-step-header h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--mr-text);
}

/* ==========================================================================
   Form Grid & Groups
   ========================================================================== */

.mr-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.mr-form-group {
    margin-bottom: 16px;
}

.mr-form-group:last-child {
    margin-bottom: 0;
}

.mr-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--mr-text);
}

.mr-form-group label .required {
    color: var(--mr-error);
    margin-left: 2px;
}

.mr-label-hint {
    font-weight: 400;
    color: var(--mr-text-muted);
    font-size: 12px;
}

/* ==========================================================================
   Input Styles
   ========================================================================== */

.mr-input-wrap {
    position: relative;
}

.mr-input-icon {
    position: absolute;
    left: 12px;
    top: 22px;
    transform: translateY(-50%);
    color: var(--mr-text-muted);
    pointer-events: none;
    z-index: 1;
}

.mr-textarea-wrap .mr-input-icon {
    top: 14px;
    transform: none;
}

.mr-form-group input[type="text"],
.mr-form-group input[type="email"],
.mr-form-group input[type="tel"],
.mr-form-group input[type="date"],
.mr-form-group select,
.mr-form-group textarea {
    width: 100%;
    padding: 10px 12px 10px 40px;
    border: 1px solid var(--mr-border);
    border-radius: var(--mr-radius);
    font-size: 14px;
    color: var(--mr-text);
    background: var(--mr-white);
    transition: border-color 0.15s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.mr-form-group input:focus,
.mr-form-group select:focus,
.mr-form-group textarea:focus {
    outline: none;
    border-color: var(--mr-primary);
}

.mr-form-group textarea {
    resize: vertical;
    min-height: 80px;
    padding-top: 10px;
}

/* ==========================================================================
   Time Slots
   ========================================================================== */

.mr-time-slots-wrap {
    background: var(--mr-bg);
    border: 1px solid var(--mr-border);
    border-radius: var(--mr-radius);
    padding: 16px;
    max-height: 260px;
    overflow-y: auto;
}

.mr-time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
    gap: 8px;
}

.mr-time-slot {
    padding: 10px 8px;
    background: var(--mr-white);
    border: 1px solid var(--mr-border);
    border-radius: var(--mr-radius);
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
    color: var(--mr-text);
}

.mr-time-slot:hover:not(.unavailable) {
    border-color: var(--mr-primary);
    color: var(--mr-primary);
}

.mr-time-slot.selected {
    background: var(--mr-primary);
    border-color: var(--mr-primary);
    color: #fff;
}

.mr-time-slot.selected:hover {
    color: #fff;
}

.mr-time-slot.unavailable {
    background: var(--mr-bg);
    color: var(--mr-text-muted);
    cursor: not-allowed;
    opacity: 0.5;
}

.mr-time-slot.past {
    background: linear-gradient(135deg, var(--mr-bg) 0%, #e8e8e8 100%);
    color: var(--mr-text-muted);
    cursor: not-allowed;
    opacity: 0.4;
    text-decoration: line-through;
    position: relative;
}

.mr-time-slot.past .mr-tables-count {
    text-decoration: none;
}

.mr-time-slot .mr-tables-count {
    display: block;
    font-size: 10px;
    font-weight: 400;
    margin-top: 2px;
    opacity: 0.7;
}

.mr-time-slot.peak::before {
    content: "⚡";
    font-size: 10px;
    margin-right: 3px;
}

.mr-time-slot .mr-preference-label {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 3px;
    opacity: 0.6;
}

.mr-placeholder {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    color: var(--mr-text-muted);
    padding: 24px 16px;
    font-size: 14px;
}

.mr-placeholder svg {
    opacity: 0.5;
}

/* ==========================================================================
   Wait Time Estimator
   ========================================================================== */

.mr-wait-time-estimator {
    margin-top: 20px;
}

.mr-estimator-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 1px solid #ffcc80;
    border-radius: var(--mr-radius);
}

.mr-estimator-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #ff9800;
    border-radius: 50%;
    color: #fff;
}

.mr-estimator-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mr-estimator-label {
    font-size: 13px;
    color: #bf360c;
    font-weight: 500;
}

.mr-estimator-value {
    font-size: 20px;
    font-weight: 700;
    color: #e65100;
}

/* ==========================================================================
   Table Analytics Summary
   ========================================================================== */

.mr-analytics-summary {
    margin-top: 20px;
    margin-bottom: 8px;
    display: none;
}

.mr-analytics-summary.visible {
    display: block;
    animation: mr-fadeIn 0.3s ease;
}

.mr-analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.mr-analytics-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--mr-white);
    border: 1px solid var(--mr-border);
    border-radius: var(--mr-radius);
    transition: all 0.2s ease;
}

.mr-analytics-item:hover {
    border-color: var(--mr-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.mr-analytics-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
}

.mr-analytics-tables .mr-analytics-icon {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
}

.mr-analytics-occupancy .mr-analytics-icon {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
}

.mr-analytics-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mr-analytics-value {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.mr-analytics-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--mr-text);
    line-height: 1;
}

.mr-analytics-unit {
    font-size: 14px;
    font-weight: 500;
    color: var(--mr-text-muted);
}

.mr-analytics-label {
    font-size: 13px;
    color: var(--mr-text-muted);
    font-weight: 500;
}

/* Status indicators for analytics */
.mr-analytics-tables.status-good .mr-analytics-number {
    color: #2e7d32;
}

.mr-analytics-tables.status-limited .mr-analytics-number {
    color: #f57c00;
}

.mr-analytics-tables.status-none .mr-analytics-number {
    color: #c62828;
}

.mr-analytics-occupancy.status-low .mr-analytics-number {
    color: #2e7d32;
}

.mr-analytics-occupancy.status-medium .mr-analytics-number {
    color: #f57c00;
}

.mr-analytics-occupancy.status-high .mr-analytics-number {
    color: #c62828;
}

@media (max-width: 480px) {
    .mr-analytics-grid {
        grid-template-columns: 1fr;
    }

    .mr-analytics-item {
        padding: 14px 16px;
    }

    .mr-analytics-icon {
        width: 40px;
        height: 40px;
    }

    .mr-analytics-number {
        font-size: 24px;
    }
}

/* ==========================================================================
   Booking Summary (Step 2)
   ========================================================================== */

.mr-booking-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px 16px;
    background: var(--mr-bg);
    border: 1px solid var(--mr-border);
    border-radius: var(--mr-radius);
    margin-bottom: 16px;
}

.mr-booking-summary .mr-summary-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--mr-text);
}

.mr-booking-summary .mr-summary-item svg {
    color: var(--mr-primary);
    flex-shrink: 0;
}

/* ==========================================================================
   Table Selection
   ========================================================================== */

.mr-floor-selector {
    margin-bottom: 12px;
}

.mr-floor-tabs {
    display: flex !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}

/* Floor tab buttons - very specific selectors to override theme */
.mr-reservation-form-wrap .mr-floor-tabs .mr-floor-tab,
.mr-reservation-form-wrap .mr-floor-tabs button.mr-floor-tab,
.mr-floor-selector .mr-floor-tabs .mr-floor-tab,
button.mr-floor-tab {
    padding: 8px 16px !important;
    background: var(--mr-white, #ffffff) !important;
    border: 1px solid var(--mr-border, #e0e0e0) !important;
    border-radius: var(--mr-radius, 6px) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--mr-text-muted, #646970) !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    line-height: 1.4 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: none !important;
    outline: none !important;
    text-decoration: none !important;
    margin: 0 !important;
    min-height: auto !important;
}

.mr-reservation-form-wrap .mr-floor-tabs .mr-floor-tab:hover,
.mr-reservation-form-wrap .mr-floor-tabs button.mr-floor-tab:hover,
.mr-floor-selector .mr-floor-tabs .mr-floor-tab:hover,
button.mr-floor-tab:hover {
    border-color: var(--mr-primary, #2271b1) !important;
    color: var(--mr-primary, #2271b1) !important;
    background: var(--mr-white, #ffffff) !important;
}

.mr-reservation-form-wrap .mr-floor-tabs .mr-floor-tab.active,
.mr-reservation-form-wrap .mr-floor-tabs button.mr-floor-tab.active,
.mr-floor-selector .mr-floor-tabs .mr-floor-tab.active,
button.mr-floor-tab.active {
    background: var(--mr-primary, #2271b1) !important;
    border-color: var(--mr-primary, #2271b1) !important;
    color: #fff !important;
}

.mr-table-legend {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.mr-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--mr-text-muted);
}

.mr-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid;
}

.mr-legend-dot.available {
    background: var(--mr-success-bg);
    border-color: var(--mr-success);
}

.mr-legend-dot.booked {
    background: #fce4e6;
    border-color: var(--mr-error);
}

.mr-legend-dot.selected {
    background: var(--mr-primary);
    border-color: var(--mr-primary);
}

.mr-floor-map-container {
    background: #ffffff;
    border: none;
    min-height: 350px;
    position: relative;
    overflow: hidden;
    box-shadow: none;
}

/* Wrapper to handle containment without scrolls */
#mr-floor-map-wrapper {
    padding: 0;
    display: block;
}

.mr-floor-map-scroll {
    /* Remove scrolling - contain mode */
    overflow: visible;
    max-height: none;
    padding: 0;
}

.mr-floor-map {
    position: relative;
    display: block;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid var(--mr-border);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: width 0.3s ease, height 0.3s ease;
}

.mr-floor-map.has-background {
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.mr-floor-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--mr-text-muted);
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
    z-index: 10;
}

/* ==========================================================================
   Visual Table Elements (Like Layout Editor)
   ========================================================================== */

.mr-table-element {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 2px solid #4caf50;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.mr-table-element:hover {
    transform: scale(1.05);
    z-index: 5;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.3);
}

/* Shape variants - support both old and new class names */
.mr-table-element.square,
.mr-table-element.shape-square {
    border-radius: 8px;
}

.mr-table-element.round,
.mr-table-element.shape-circle {
    border-radius: 50%;
}

.mr-table-element.rectangle,
.mr-table-element.shape-rectangle {
    border-radius: 8px;
}

.mr-table-element.shape-oval {
    border-radius: 50%;
}

.mr-table-element .mr-table-number {
    font-size: 14px;
    font-weight: 700;
    color: #2e7d32;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.mr-table-element .mr-table-capacity {
    font-size: 10px;
    font-weight: 500;
    color: #388e3c;
    margin-top: 2px;
    background: rgba(255, 255, 255, 0.7);
    padding: 1px 6px;
    border-radius: 10px;
}

/* Selected Table State */
.mr-table-element.selected {
    background: linear-gradient(135deg, #e8f5e9 0%, #a5d6a7 100%) !important;
    border-color: var(--mr-success) !important;
    border-width: 3px;
    transform: scale(1.08);
    z-index: 10;
    box-shadow:
        0 0 0 4px rgba(76, 175, 80, 0.25),
        0 8px 25px rgba(76, 175, 80, 0.35);
}

.mr-table-element.selected::before {
    content: '';
    position: absolute;
    inset: -6px;
    border: 2px dashed var(--mr-success);
    border-radius: inherit;
    animation: mr-pulse-border 1.5s ease-in-out infinite;
}

@keyframes mr-pulse-border {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

.mr-table-element.selected .mr-table-number {
    color: #2e7d32;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.mr-table-element.selected .mr-table-capacity {
    background: rgba(46, 125, 50, 0.15);
    color: #2e7d32;
}

/* Booked Table State */
.mr-table-element.booked {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%) !important;
    border-color: #9e9e9e !important;
    cursor: not-allowed;
    opacity: 0.75;
}

/* Unfit Table State - table exists but does not fit the party size */
.mr-table-element.unfit {
    background: linear-gradient(135deg, #fafafa 0%, #ececec 100%) !important;
    border-color: #bdbdbd !important;
    border-style: dashed;
    cursor: not-allowed;
    opacity: 0.6;
}

.mr-table-element.unfit:hover {
    transform: none;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.mr-table-element.unfit .mr-table-number {
    color: #757575;
}

.mr-table-element.unfit .mr-table-capacity {
    background: rgba(117, 117, 117, 0.1);
    color: #8a8a8a;
}

.mr-table-element.unfit .mr-table-chair {
    background: linear-gradient(135deg, #e8e8e8 0%, #d4d4d4 100%);
    border-color: #bdbdbd;
}

.mr-table-element.booked:hover {
    transform: none;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.mr-table-element.booked .mr-table-number {
    color: #616161;
    text-decoration: line-through;
}

.mr-table-element.booked .mr-table-capacity {
    background: rgba(97, 97, 97, 0.1);
    color: #757575;
}

.mr-table-element.booked::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(0, 0, 0, 0.03) 10px,
            rgba(0, 0, 0, 0.03) 20px);
    border-radius: inherit;
    pointer-events: none;
}

/* Table Tooltip */
.mr-table-element::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: #1d2327;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 100;
}

.mr-table-element:not(.selected)::before {
    content: attr(data-tooltip);
}

.mr-table-element.selected::before {
    content: '✓ Selected';
    background: var(--mr-success);
}

.mr-table-element:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

/* Chair indicators for tables */
.mr-table-chair {
    position: absolute;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
    border: 2px solid #9e9e9e;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    pointer-events: none;
    z-index: 0;
}

.mr-table-element.booked .mr-table-chair {
    background: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%);
    border-color: #757575;
}

.mr-table-element.selected .mr-table-chair {
    background: linear-gradient(135deg, #fff 0%, #e3f2fd 100%);
    border-color: var(--mr-primary);
}

/* Chair positions */
.mr-table-chair.chair-top {
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
}

.mr-table-chair.chair-bottom {
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
}

.mr-table-chair.chair-left {
    left: -18px;
    top: 50%;
    transform: translateY(-50%);
}

.mr-table-chair.chair-right {
    right: -18px;
    top: 50%;
    transform: translateY(-50%);
}

/* Multiple chairs on same side */
.mr-table-chair.chair-top.chair-1 {
    left: 30%;
}

.mr-table-chair.chair-top.chair-2 {
    left: 70%;
}

.mr-table-chair.chair-top.chair-3 {
    left: 50%;
}

.mr-table-chair.chair-bottom.chair-1 {
    left: 30%;
}

.mr-table-chair.chair-bottom.chair-2 {
    left: 70%;
}

.mr-table-chair.chair-bottom.chair-3 {
    left: 50%;
}

/* Round table chairs */
.mr-table-element.shape-circle .mr-table-chair {
    border-radius: 50%;
}

/* Selected table tick/checkmark */
.mr-table-check {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: var(--mr-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.4);
    z-index: 20;
    animation: mr-check-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mr-table-check svg {
    color: #fff;
    stroke: #fff;
}

@keyframes mr-check-pop {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

/* Next available time for booked tables */
.mr-table-next-time {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    background: #424242;
    color: #fff;
    font-size: 9px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

/* Not clickable state */
.mr-table-element.not-clickable {
    cursor: not-allowed;
}

/* Table list alternative view */
.mr-table-list-container {
    padding: 16px;
    background: var(--mr-bg);
    border: 1px solid var(--mr-border);
    border-radius: var(--mr-radius);
    max-height: 350px;
    overflow-y: auto;
}

.mr-table-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.mr-table-card {
    padding: 16px;
    background: var(--mr-white);
    border: 2px solid var(--mr-border);
    border-radius: var(--mr-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.mr-table-card:hover:not(.booked) {
    border-color: var(--mr-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mr-table-card.selected {
    border-color: var(--mr-primary);
    background: rgba(34, 113, 177, 0.08);
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.15);
}

.mr-table-card.booked {
    opacity: 0.5;
    cursor: not-allowed;
    background: #fafafa;
}

.mr-table-card.unfit {
    opacity: 0.55;
    cursor: not-allowed;
    background: #fafafa;
    border-style: dashed;
}

.mr-table-card-number {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--mr-text);
    margin-bottom: 6px;
}

.mr-table-card-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 12px;
    color: var(--mr-text-muted);
    margin-top: 4px;
}

.mr-table-card-info svg,
.mr-table-card-info .dashicons {
    width: 14px;
    height: 14px;
    font-size: 14px;
}

.mr-table-card-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 8px;
}

.mr-table-card-status.status-available {
    background: var(--mr-success-bg);
    color: var(--mr-success);
}

.mr-table-card-status.status-booked {
    background: #fce4e6;
    color: var(--mr-error);
}

.mr-table-card-status.status-unfit {
    background: #eeeeee;
    color: #757575;
}

/* View toggle for map/list */
.mr-view-toggle {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    padding: 4px;
    background: var(--mr-bg);
    border-radius: var(--mr-radius);
    width: fit-content;
}

.mr-view-toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: transparent;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    color: var(--mr-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mr-view-toggle-btn:hover {
    color: var(--mr-text);
}

.mr-view-toggle-btn.active {
    background: var(--mr-white);
    color: var(--mr-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mr-view-toggle-btn svg {
    width: 16px;
    height: 16px;
}

.mr-selected-table-info {
    margin-top: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 2px solid var(--mr-success);
    border-radius: var(--mr-radius);
    animation: mr-slideUp 0.3s ease;
}

@keyframes mr-slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mr-selected-table-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--mr-success);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.mr-selected-table-badge svg {
    flex-shrink: 0;
    background: var(--mr-success);
    color: #fff;
    padding: 4px;
    border-radius: 50%;
}

.mr-table-details {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: var(--mr-text);
}

.mr-table-details>span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mr-table-details svg {
    width: 16px;
    height: 16px;
    color: var(--mr-success);
}

.mr-table-name {
    font-weight: 700;
    color: #2e7d32;
}

/* ==========================================================================
   Checkboxes
   ========================================================================== */

.mr-checkbox-group {
    margin-bottom: 12px;
}

.mr-checkbox-group label {
    display: flex;
}

.mr-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: var(--mr-text);
    line-height: 1.5;
}

.mr-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.mr-checkbox-custom {
    width: 18px;
    height: 18px;
    border: 1px solid var(--mr-border);
    border-radius: 4px;
    background: var(--mr-white);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    margin-top: 1px;
}

.mr-checkbox-label input:checked+.mr-checkbox-custom {
    background: var(--mr-primary);
    border-color: var(--mr-primary);
}

.mr-checkbox-label input:checked+.mr-checkbox-custom::after {
    content: "";
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.mr-checkbox-label a {
    color: var(--mr-primary);
    text-decoration: none;
}

.mr-checkbox-label a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Confirmation Card (Step 4)
   ========================================================================== */

.mr-confirmation-card {
    background: var(--mr-bg);
    border: 1px solid var(--mr-border);
    border-radius: var(--mr-radius);
    overflow: hidden;
}

.mr-confirmation-section {
    padding: 16px 20px;
    border-bottom: 1px solid var(--mr-border);
}

.mr-confirmation-section:last-child {
    border-bottom: none;
}

.mr-confirmation-section h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--mr-text);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.mr-confirmation-section h4 svg {
    color: var(--mr-primary);
    flex-shrink: 0;
}

.mr-confirm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mr-confirm-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mr-confirm-label {
    font-size: 11px;
    color: var(--mr-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.mr-confirm-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--mr-text);
}

.mr-confirm-notes {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--mr-border);
}

.mr-deposit-section {
    background: #fef8e8;
}

.mr-deposit-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mr-deposit-amount {
    font-size: 18px;
    font-weight: 600;
    color: var(--mr-warning);
}

.mr-deposit-amount small {
    font-size: 12px;
    font-weight: 400;
    color: var(--mr-text-muted);
    margin-left: 4px;
}

.mr-deposit-total {
    font-size: 13px;
    color: var(--mr-text);
}

.mr-deposit-total strong {
    font-size: 16px;
    color: var(--mr-warning);
}

/* ==========================================================================
   Success Step
   ========================================================================== */

.mr-success-step {
    text-align: center;
    padding: 40px 24px;
}

.mr-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--mr-success-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: mr-successPop 0.4s ease;
}

.mr-success-icon svg {
    color: var(--mr-success);
}

@keyframes mr-successPop {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.mr-success-title {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 600;
    color: var(--mr-text);
}

.mr-success-message {
    margin: 0 0 24px;
    font-size: 14px;
    color: var(--mr-text-muted);
    line-height: 1.6;
}

.mr-success-details {
    margin-bottom: 24px;
}

.mr-confirmation-number {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 24px;
    background: var(--mr-bg);
    border: 1px solid var(--mr-border);
    border-radius: var(--mr-radius);
}

.mr-confirmation-number span {
    font-size: 11px;
    color: var(--mr-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mr-confirmation-number strong {
    font-size: 20px;
    color: var(--mr-primary);
    font-weight: 700;
    letter-spacing: 1px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.mr-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--mr-border);
}

/* Button base - high specificity to override theme styles */
.mr-reservation-form-wrap .mr-btn,
.mr-reservation-form-wrap button.mr-btn,
.mr-reservation-form-wrap input[type="submit"].mr-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 14px 28px !important;
    border: 2px solid transparent !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-family: inherit !important;
    position: relative !important;
    overflow: hidden !important;
    text-transform: none !important;
    letter-spacing: 0.02em !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    margin: 0 !important;
}

.mr-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.mr-btn:hover::before {
    left: 100%;
}

/* Button emoji/icon styling */
.mr-btn svg,
.mr-btn .mr-btn-icon {
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mr-btn .mr-btn-emoji {
    font-size: 18px;
    line-height: 1;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mr-btn:hover svg,
.mr-btn:hover .mr-btn-icon {
    transform: translateX(4px);
}

.mr-btn:hover .mr-btn-emoji {
    transform: scale(1.15);
}

.mr-btn-secondary:hover svg,
.mr-btn-secondary:hover .mr-btn-icon {
    transform: translateX(-4px);
}

/* Primary button - main action */
/* Primary button - main action */
.mr-reservation-form-wrap .mr-btn-primary,
.mr-reservation-form-wrap button.mr-btn-primary {
    background: linear-gradient(135deg, var(--mr-primary) 0%, var(--mr-primary-dark) 100%) !important;
    border-color: var(--mr-primary) !important;
    color: #fff !important;
    margin-left: auto !important;
    box-shadow: 0 4px 15px rgba(34, 113, 177, 0.3) !important;
}

.mr-reservation-form-wrap .mr-btn-primary:hover,
.mr-reservation-form-wrap button.mr-btn-primary:hover {
    background: linear-gradient(135deg, var(--mr-primary-dark) 0%, #1a5276 100%) !important;
    border-color: var(--mr-primary-dark) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(34, 113, 177, 0.4) !important;
}

.mr-reservation-form-wrap .mr-btn-primary:active,
.mr-reservation-form-wrap button.mr-btn-primary:active {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3) !important;
}

/* Secondary button - back/cancel */
.mr-reservation-form-wrap .mr-btn-secondary,
.mr-reservation-form-wrap button.mr-btn-secondary {
    background: var(--mr-white) !important;
    border-color: var(--mr-border) !important;
    color: var(--mr-text) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06) !important;
}

.mr-reservation-form-wrap .mr-btn-secondary:hover,
.mr-reservation-form-wrap button.mr-btn-secondary:hover {
    border-color: var(--mr-primary) !important;
    color: var(--mr-primary) !important;
    background: linear-gradient(135deg, rgba(34, 113, 177, 0.02) 0%, rgba(34, 113, 177, 0.06) 100%) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1) !important;
}

.mr-reservation-form-wrap .mr-btn-secondary:active,
.mr-reservation-form-wrap button.mr-btn-secondary:active {
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

/* Success button - confirm action */
.mr-reservation-form-wrap .mr-btn-success,
.mr-reservation-form-wrap button.mr-btn-success {
    background: linear-gradient(135deg, var(--mr-success) 0%, #008a24 100%) !important;
    border-color: var(--mr-success) !important;
    color: #fff !important;
    margin-left: auto !important;
    box-shadow: 0 4px 15px rgba(0, 163, 42, 0.3) !important;
}

.mr-reservation-form-wrap .mr-btn-success:hover,
.mr-reservation-form-wrap button.mr-btn-success:hover {
    background: linear-gradient(135deg, #008a24 0%, #006b1c 100%) !important;
    border-color: #008a24 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(0, 163, 42, 0.4) !important;
}

.mr-reservation-form-wrap .mr-btn-success:active,
.mr-reservation-form-wrap button.mr-btn-success:active {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 163, 42, 0.3) !important;
}

/* Danger button - destructive action */
.mr-reservation-form-wrap .mr-btn-danger,
.mr-reservation-form-wrap button.mr-btn-danger {
    background: linear-gradient(135deg, var(--mr-error) 0%, #c0392b 100%) !important;
    border-color: var(--mr-error) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(214, 54, 56, 0.3) !important;
}

.mr-reservation-form-wrap .mr-btn-danger:hover,
.mr-reservation-form-wrap button.mr-btn-danger:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%) !important;
    border-color: #c0392b !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(214, 54, 56, 0.4) !important;
}

.mr-reservation-form-wrap .mr-btn-danger:active,
.mr-reservation-form-wrap button.mr-btn-danger:active {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(214, 54, 56, 0.3) !important;
}

/* Button with pulse animation for important actions */
.mr-btn-pulse {
    animation: mr-btn-pulse 2s infinite;
}

@keyframes mr-btn-pulse {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(34, 113, 177, 0.3);
    }

    50% {
        box-shadow: 0 4px 25px rgba(34, 113, 177, 0.5), 0 0 0 8px rgba(34, 113, 177, 0.1);
    }
}

.mr-btn-success.mr-btn-pulse {
    animation: mr-btn-pulse-success 2s infinite;
}

@keyframes mr-btn-pulse-success {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(0, 163, 42, 0.3);
    }

    50% {
        box-shadow: 0 4px 25px rgba(0, 163, 42, 0.5), 0 0 0 8px rgba(0, 163, 42, 0.1);
    }
}

/* Disabled state */
.mr-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    animation: none !important;
}

.mr-btn:disabled::before {
    display: none;
}

/* Loading state for buttons */
.mr-btn.mr-btn-loading {
    pointer-events: none;
    opacity: 0.8;
}

.mr-btn.mr-btn-loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: mr-btn-spin 0.8s linear infinite;
}

.mr-btn-secondary.mr-btn-loading::after {
    border-color: rgba(34, 113, 177, 0.2);
    border-top-color: var(--mr-primary);
}

@keyframes mr-btn-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   Loading Overlay
   ========================================================================== */

.mr-form-loading {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.mr-form-loading.active {
    opacity: 1;
    visibility: visible;
}

.mr-loading-spinner,
.mr-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--mr-border);
    border-top-color: var(--mr-primary);
    border-radius: 50%;
    animation: mr-spin 0.7s linear infinite;
}

@keyframes mr-spin {
    to {
        transform: rotate(360deg);
    }
}

.mr-form-loading p {
    font-size: 14px;
    color: var(--mr-text-muted);
    margin: 0;
}

/* ==========================================================================
   Validation States
   ========================================================================== */

.mr-form-group.has-error input,
.mr-form-group.has-error select,
.mr-form-group.has-error textarea {
    border-color: var(--mr-error);
    background: #fef2f2;
}

.mr-form-group.has-error .mr-input-icon {
    color: var(--mr-error);
}

/* Field-level error message (inline) */
.mr-field-error {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 6px 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #b91c1c;
    animation: mr-shakeError 0.4s ease;
}

.mr-field-error::before {
    content: '';
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23b91c1c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    flex-shrink: 0;
}

@keyframes mr-shakeError {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-4px);
    }

    40% {
        transform: translateX(4px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}

/* Legacy error message class */
.mr-error-message {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--mr-error);
}

/* General error alert shown after step title */
.mr-form-step>.mr-error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 16px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mr-form-step>.mr-error-message::before {
    content: '';
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23991b1b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='12' y1='8' x2='12' y2='12'%3E%3C/line%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

/* Success message alert */
.mr-form-step>.mr-success-message {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    padding: 12px 16px;
    border-radius: 6px;
    margin: 16px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mr-form-step>.mr-success-message::before {
    content: '';
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23065f46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'%3E%3C/path%3E%3Cpolyline points='22 4 12 14.01 9 11.01'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

/* ==========================================================================
   Calendar add-to actions on the success step
   ========================================================================== */

.mr-calendar-actions {
    margin: 20px auto 0;
    padding: 16px 20px;
    border: 1px dashed var(--mr-border);
    border-radius: var(--mr-radius);
    text-align: center;
    max-width: 480px;
    background: var(--mr-bg);
}

.mr-calendar-actions-label {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--mr-text-muted);
    font-weight: 500;
}

.mr-calendar-actions-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.mr-calendar-actions-buttons .mr-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    padding: 8px 14px;
}

/* ==========================================================================
   Table Selector Standalone Shortcode
   ========================================================================== */

.mr-table-selector-wrap {
    max-width: 960px;
    margin: 0 auto;
    font-family: var(--mr-font);
    color: var(--mr-text);
}

/* Filter bar */
.mr-selector-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    padding: 20px;
    background: var(--mr-white);
    border: 1px solid var(--mr-border);
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mr-filter-group {
    flex: 1;
    min-width: 140px;
}

.mr-filter-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--mr-text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mr-filter-group label .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: var(--mr-primary);
}

.mr-filter-group label svg {
    color: var(--mr-primary);
}

.mr-filter-group input,
.mr-filter-group select {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--mr-border);
    border-radius: var(--mr-radius);
    font-size: 13px;
    color: var(--mr-text);
    background: var(--mr-bg);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.mr-filter-group input:focus,
.mr-filter-group select:focus {
    border-color: var(--mr-primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.mr-filter-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23718096' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
}

/* Table list section title */
.mr-table-list-view {
    margin: 20px 0;
}

.mr-table-list-view h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--mr-text);
    margin: 0 0 12px;
    padding-left: 10px;
    border-left: 3px solid var(--mr-primary);
    line-height: 1.5;
}

/* Table cards grid */
.mr-table-cards,
#mr-table-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}

.mr-table-card {
    position: relative;
    padding: 14px 16px;
    background: var(--mr-white);
    border: 1.5px solid var(--mr-border);
    border-radius: var(--mr-radius);
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}

.mr-table-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--mr-primary);
    opacity: 0;
    transition: opacity 0.2s;
}

.mr-table-card:hover:not(.booked) {
    border-color: var(--mr-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.mr-table-card:hover:not(.booked)::after {
    opacity: 1;
}

.mr-table-card.selected {
    border-color: var(--mr-primary);
    background: #f0f7fc;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.15);
}

.mr-table-card.selected::after {
    opacity: 1;
}

.mr-table-card.booked {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--mr-bg);
}

.mr-table-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.mr-table-card-name,
.mr-table-card-number {
    font-weight: 700;
    font-size: 14px;
    color: var(--mr-text);
    display: block;
    margin-bottom: 4px;
}

.mr-table-card-status {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 2px 8px;
    border-radius: 20px;
}

.mr-table-card-status.available {
    background: var(--mr-success-bg);
    color: var(--mr-success);
}

.mr-table-card-status.booked {
    background: #fce4e6;
    color: var(--mr-error);
}

.mr-table-card-info {
    font-size: 12px;
    color: var(--mr-text-muted);
    display: block;
    line-height: 1.5;
}

/* Selector legend */
.mr-selector-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 14px 18px;
    background: var(--mr-bg);
    border-radius: var(--mr-radius);
    border: 1px solid var(--mr-border);
    margin-bottom: 16px;
}

.mr-selector-legend .mr-legend-item {
    font-size: 13px;
    font-weight: 500;
    color: var(--mr-text);
    gap: 8px;
}

.mr-legend-color {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid;
    flex-shrink: 0;
    display: inline-block;
}

.mr-legend-color.available {
    background: var(--mr-success-bg);
    border-color: var(--mr-success);
}

.mr-legend-color.booked {
    background: #fce4e6;
    border-color: var(--mr-error);
}

.mr-legend-color.selected {
    background: var(--mr-primary);
    border-color: var(--mr-primary);
}

/* Selected table info panel (shortcode) */
.mr-selected-table-card {
    padding: 2px 0;
}

.mr-selected-table-card h4 {
    font-size: 11px;
    font-weight: 700;
    color: var(--mr-success);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 10px;
}

.mr-table-details .mr-table-number,
.mr-table-details .mr-table-capacity,
.mr-table-details .mr-table-floor {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--mr-text);
}

.mr-table-details .dashicons {
    color: var(--mr-primary);
    font-size: 15px;
    width: 15px;
    height: 15px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media screen and (max-width: 640px) {
    .mr-step-wizard {
        padding: 16px;
        gap: 8px;
    }

    .mr-step-icon {
        width: 40px;
        height: 40px;
    }

    .mr-step-icon svg {
        width: 18px;
        height: 18px;
    }

    .mr-step-label {
        font-size: 10px;
    }

    .mr-step-connector {
        flex: 0.3;
        margin-top: 20px;
    }

    .mr-reservation-form {
        padding: 20px 16px;
    }

    .mr-form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .mr-step-header h2 {
        font-size: 15px;
    }

    .mr-time-slots {
        grid-template-columns: repeat(3, 1fr);
    }

    .mr-booking-summary {
        flex-direction: column;
        gap: 10px;
    }

    .mr-confirm-grid {
        grid-template-columns: 1fr;
    }

    .mr-form-actions {
        flex-direction: column;
    }

    .mr-btn {
        width: 100%;
        justify-content: center;
    }

    .mr-btn-primary,
    .mr-btn-success {
        margin-left: 0;
        order: -1;
    }
}

@media screen and (max-width: 480px) {
    .mr-step-wizard {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .mr-step-connector {
        display: none;
    }

    .mr-step-item {
        flex: 0 0 auto;
        width: 70px;
    }

    .mr-time-slots {
        grid-template-columns: repeat(2, 1fr);
    }

    .mr-table-legend {
        flex-wrap: wrap;
        gap: 10px;
    }
}

/* ==========================================================================
   Payment Step Styles
   ========================================================================== */

/* =========================================
   PAYMENT METHOD SECTION
   ========================================= */

.mr-payment-intro {
    font-size: 14px;
    color: var(--mr-text-muted);
    margin-bottom: 20px;
    text-align: center;
}

.mr-payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.mr-payment-option {
    display: block;
    cursor: pointer;
}

.mr-payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mr-payment-option-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--mr-white);
    border: 2px solid var(--mr-border);
    border-radius: 10px;
    transition: all 0.22s ease;
    position: relative;
}

.mr-payment-option:hover .mr-payment-option-inner {
    border-color: var(--mr-primary);
    background: rgba(34, 113, 177, 0.02);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mr-payment-option input[type="radio"]:checked + .mr-payment-option-inner {
    border-color: var(--mr-primary);
    background: rgba(34, 113, 177, 0.05);
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.12);
}

/* Checkmark badge that appears on selection */
.mr-payment-option input[type="radio"]:checked + .mr-payment-option-inner::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 12px;
    width: 22px;
    height: 22px;
    background: var(--mr-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 22px;
    text-align: center;
    animation: mr-check-pop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mr-payment-option-radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--mr-border);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}

.mr-payment-option input[type="radio"]:checked + .mr-payment-option-inner .mr-payment-option-radio {
    border-color: var(--mr-primary);
}

.mr-payment-option input[type="radio"]:checked + .mr-payment-option-inner .mr-payment-option-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--mr-primary);
    border-radius: 50%;
}

.mr-payment-option-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 6px;
}

.mr-payment-option-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mr-payment-option-text strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--mr-text);
}

.mr-payment-option-text small {
    font-size: 12px;
    color: var(--mr-text-muted);
}

/* "Online Payment" badge for Stripe / PayPal */
.mr-payment-option-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--mr-primary);
    background: rgba(34, 113, 177, 0.1);
    padding: 2px 7px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
}

/* Payment Summary */
.mr-payment-summary {
    background: var(--mr-bg);
    border-radius: 10px;
    padding: 16px;
    margin-top: 16px;
}

.mr-payment-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
    color: var(--mr-text-muted);
}

.mr-payment-summary-line.mr-payment-summary-total {
    border-top: 1px solid var(--mr-border);
    margin-top: 8px;
    padding-top: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--mr-text);
}

.mr-payment-summary-line.mr-payment-summary-total span:last-child {
    color: var(--mr-success);
}

/* Stripe Container */
.mr-stripe-container {
    margin-top: 16px;
    padding: 16px;
    background: var(--mr-white);
    border: 1px solid var(--mr-border);
    border-radius: 10px;
}

.mr-stripe-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--mr-text);
    margin-bottom: 10px;
}

.mr-card-element {
    padding: 12px 14px;
    background: var(--mr-bg);
    border: 1px solid var(--mr-border);
    border-radius: 8px;
}

.mr-card-errors {
    margin-top: 8px;
    font-size: 13px;
    color: var(--mr-danger);
}

/* PayPal Container */
.mr-paypal-container {
    margin-top: 16px;
    padding: 16px;
    background: var(--mr-white);
    border: 1px solid var(--mr-border);
    border-radius: 10px;
}

/* Responsive Payment Styles */
@media screen and (max-width: 600px) {
    .mr-payment-option-inner {
        padding: 12px 14px;
        gap: 10px;
    }

    .mr-payment-option-icon {
        width: 28px;
        height: 28px;
    }

    .mr-payment-option-text strong {
        font-size: 13px;
    }

    .mr-payment-option-text small {
        font-size: 11px;
    }
}


/* ==========================================================================
   No Tables Available Messages
   ========================================================================== */

.mr-no-tables,
.mr-no-tables-message,
.mr-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: var(--mr-text-muted);
    min-height: 200px;
}

.mr-no-tables svg,
.mr-no-tables-message svg,
.mr-error svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    stroke: var(--mr-text-muted);
    opacity: 0.6;
}

.mr-no-tables p,
.mr-no-tables-message p,
.mr-error p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    max-width: 300px;
}

/* Specific styling for "no suitable tables for party size" message */
.mr-no-suitable-tables {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-radius: 12px;
    color: #9a3412;
}

.mr-no-suitable-tables svg {
    stroke: #ea580c;
    opacity: 1;
}

.mr-no-suitable-tables p {
    color: #9a3412;
    font-weight: 500;
}

.mr-no-tables-text {
    color: var(--mr-text-muted);
    font-size: 14px;
    padding: 20px;
    text-align: center;
    background: var(--mr-bg);
    border-radius: 8px;
    margin: 10px 0;
}

.mr-map-loading,
.mr-list-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--mr-text-muted);
    gap: 12px;
}

.mr-map-loading .spinner,
.mr-list-loading .spinner {
    float: none;
    margin: 0;
}

.mr-btn-disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.mr-nav-locked {
    cursor: default !important;
    pointer-events: none !important;
}

.mr-nav-locked .mr-step-icon {
    cursor: default !important;
}