pre{
    display: none !important;
}
/* Stall Booking CSS */
.stall-booking-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.stall-header {
    margin-bottom: 20px;
    text-align: center;
}

.stall-header h1 {
    color: #333;
    margin-bottom: 10px;
}

.stall-header p {
    color: #666;
    font-size: 16px;
}

.event-description {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Status Legend */
.stall-status {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 20px;
}

.stall-color {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.color-box {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.stall-color.available .color-box { background: #4caf50; }
.stall-color.booked .color-box { background: #f44336; }
.stall-color.premium .color-box { background: #c547c5; }
.stall-color.construction .color-box { background: #ffc107; }
.stall-color.selected .color-box { background: #2196f3; }

.stall-count {
    color: #666;
    font-size: 12px;
    margin-left: 5px;
}

/* Filters */
.stall-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stall-filters select,
.stall-filters input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    flex: 1;
    min-width: 200px;
}

/* Stalls Grid */
.stalls-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.stalls-grid.columns-2 { grid-template-columns: repeat(2, 1fr); }
.stalls-grid.columns-3 { grid-template-columns: repeat(3, 1fr); }
.stalls-grid.columns-4 { grid-template-columns: repeat(4, 1fr); }
.stalls-grid.columns-5 { grid-template-columns: repeat(5, 1fr); }
.stalls-grid.columns-6 { grid-template-columns: repeat(6, 1fr); }

/* Stall Item */
.stall-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.stall-item.selectable {
    cursor: pointer;
}

.stall-item.selectable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stall-item.selected {
    border-color: #2196f3;
    background: #e3f2fd;
}

.stall-item.stall-status-booked {
    background: #ffebee;
    border-color: #f44336;
    opacity: 0.7;
    cursor: not-allowed;
}


.stall-item.stall-type-premium {
   border-color: #c547c5;
       background: #ffeeff;
}

.stall-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.stall-number {
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.stall-type-badge {
    background: #e0e0e0;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    text-transform: uppercase;
}

.stall-description {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}

.stall-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.stall-price {
    font-weight: bold;
    color: #4caf50;
    font-size: 16px;
}

.stall-status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: bold;
}

.stall-status-badge.status-open {
    background: #4caf50;
    color: white;
}

.stall-status-badge.status-booked {
    background: #f44336;
    color: white;
    cursor: not-allowed;
}

.stall-status-badge.status-under_construction {
    background: #ffc107;
    color: #333;
    cursor: not-allowed;
}

/* Stall Selector */
.stall-selector {
    margin-top: 15px;
    text-align: center;
}

.stall-checkbox {
    display: none;
}

.stall-checkbox-label {
    display: inline-block;
    padding: 5px 15px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
}

.stall-checkbox:checked + .stall-checkbox-label {
    background: #2196f3;
    color: white;
    border-color: #1976d2;
}

/* Selection Summary */
.stall-selection-summary {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    bottom: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    position: relative;
    margin-top: 70px;
}

.selected-stalls-info {
    margin-bottom: 15px;
}

.selected-stalls-info h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.selected-stalls-list {
    max-height: 100px;
    overflow-y: auto;
    margin-bottom: 10px;
    padding: 5px;
    background: #f9f9f9;
    border-radius: 4px;
}

.selected-stall-item {
    display: flex;
    justify-content: space-between;
    padding: 5px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.selected-stall-item:last-child {
    border-bottom: none;
}

.selected-total {
    font-size: 16px;
    text-align: right;
    padding-top: 10px;
    border-top: 2px solid #eee;
}

.booking-actions {
    display: flex;
    gap: 10px;
}

.book-stalls-button,
.clear-selection-button {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.book-stalls-button {
    background: #4caf50;
    color: white;
    flex: 2;
}

.book-stalls-button:hover:not(:disabled) {
    background: #45a049;
}

.book-stalls-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.clear-selection-button {
    background: #f44336;
    color: white;
    flex: 1;
}

.clear-selection-button:hover {
    background: #d32f2f;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stalls-grid.columns-3,
    .stalls-grid.columns-4,
    .stalls-grid.columns-5,
    .stalls-grid.columns-6 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stall-filters {
        flex-direction: column;
    }
    
    .stall-filters select,
    .stall-filters input {
        width: 100%;
    }
    
    .booking-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .stalls-grid.columns-2,
    .stalls-grid.columns-3,
    .stalls-grid.columns-4,
    .stalls-grid.columns-5,
    .stalls-grid.columns-6 {
        grid-template-columns: 1fr;
    }
    
    .stall-status {
        flex-direction: column;
        gap: 10px;
    }
}

/* Error Messages */
.stall-booking-error {
    padding: 15px;
    background: #ffebee;
    border-left: 4px solid #f44336;
    color: #c62828;
    margin: 20px 0;
}

/* Loading State */
.stalls-grid.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Tooltip */
.stall-item[data-tooltip] {
    position: relative;
}

.stall-item[data-tooltip]:hover:after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background: #333;
    color: white;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 1000;
}

.construction .color-box {
    background-color: #ffc107;
}

.selected .color-box {
    background-color: #007bff;
}
.stall-content {
    padding: 20px 0px 0px 0px;
}
.remove-stall-btn {
    margin: 0px;
    min-width: 17px;
    /* padding: 2px 3px 2px 3px; */
    border-radius: 19px;
    background: #fc6a6a;
    margin: 0px 8px;
}

.stall-item.stall-status-reserved {
    background: #fff3e0;
    border-color: #ff9800;
    opacity: 0.8;
    cursor: not-allowed;
}
.stall-item.stall-status-under_construction{
    border-color:  #ffc107;
    opacity: 0.7;
    cursor: not-allowed;
}
.stall-custom-field input {
    margin: 7px 0px;
}

.col-sm-6.stall-custom-field {
    border: 1px solid #e7e0e0;
    padding: 13px 27px;
}

.stall-payment-wrapper {
            max-width: 800px;
            margin: 40px auto;
            padding: 30px;
            background: #fff;
            border-radius: 10px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        }
        .stall-payment-header {
            text-align: center;
            margin-bottom: 30px;
            border-bottom: 2px solid #f0f0f0;
            padding-bottom: 20px;
        }
        .stall-payment-header h2 {
            margin: 0;
            color: #333;
            font-size: 28px;
        }
        .stall-payment-header p {
            color: #666;
            margin-top: 10px;
        }
        .stall-payment-timer {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 8px;
            text-align: center;
            margin-bottom: 30px;
            border-left: 4px solid #ff6b6b;
        }
        .timer-display {
            font-size: 32px;
            font-weight: bold;
            color: #ff6b6b;
            font-family: monospace;
        }
        .stall-summary {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 30px;
        }
        .stall-summary h3 {
            margin-top: 0;
            margin-bottom: 15px;
            color: #333;
        }
        .stall-summary-table {
            width: 100%;
            border-collapse: collapse;
        }
        .stall-summary-table th,
        .stall-summary-table td {
            padding: 10px;
            text-align: left;
            border-bottom: 1px solid #dee2e6;
        }
        .stall-summary-table th {
            background: #e9ecef;
            font-weight: 600;
        }
        .stall-summary-table tfoot tr:last-child td {
            border-bottom: none;
            font-weight: bold;
            font-size: 16px;
        }
        .razorpay-payment-container {
            text-align: center;
            margin: 30px 0;
        }
        .rzp-button {
            background: #667eea;
            color: white;
            border: none;
            padding: 15px 40px;
            font-size: 18px;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 250px;
        }
        .rzp-button:hover {
            background: #5a67d8;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
        }
        .rzp-button:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }
        .button-loader {
            display: none;
            width: 20px;
            height: 20px;
            border: 3px solid #ffffff;
            border-radius: 50%;
            border-top-color: transparent;
            animation: spin 1s linear infinite;
            margin-left: 10px;
        }
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        .payment-footer {
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid #f0f0f0;
            text-align: center;
            color: #666;
        }
        .back-link {
            color: #667eea;
            text-decoration: none;
        }
        .back-link:hover {
            text-decoration: underline;
        }

         .stall-failed-wrapper {
            max-width: 600px;
            margin: 40px auto;
            padding: 40px;
            background: #fff;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            text-align: center;
        }
        .failed-icon {
            font-size: 64px;
            color: #dc3545;
            margin-bottom: 20px;
        }
        .failed-header h2 {
            color: #dc3545;
            font-size: 32px;
            margin-bottom: 15px;
        }
        .failed-message {
            color: #6c757d;
            margin-bottom: 30px;
            font-size: 16px;
            line-height: 1.6;
        }
        .action-buttons {
            margin-top: 30px;
        }
        .retry-button, .home-button {
            display: inline-block;
            padding: 12px 30px;
            margin: 0 10px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s;
        }
        .retry-button {
            background: #667eea;
            color: white;
        }
        .retry-button:hover {
            background: #5a67d8;
            transform: translateY(-2px);
        }
        .home-button {
            background: #6c757d;
            color: white;
        }
        .home-button:hover {
            background: #5a6268;
            transform: translateY(-2px);
        }
        * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== Main Container ===== */
.stall-success-wrapper {
    max-width: 1000px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* ===== Header Section ===== */
.success-header {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    padding: 48px 32px;
    text-align: center;
    color: white;
}

.success-icon {
    font-size: 80px;
    line-height: 1;
    margin-bottom: 16px;
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    width: 120px;
    height: 120px;
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-header h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.success-header p {
    font-size: 16px;
    opacity: 0.9;
}

/* ===== Payment Info Card ===== */
.payment-info {
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    border-radius: 16px;
    padding: 20px 24px;
    margin: -30px 32px 32px;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.08);
}

.payment-info strong {
    color: #059669;
    font-weight: 600;
    min-width: 120px;
    display: inline-block;
}

.payment-info br {
    display: none;
}

.payment-info strong + br {
    display: block;
}

/* ===== Common Section Styles ===== */
.booking-details {
    background: #f8fafc;
    border-radius: 20px;
    padding: 28px;
    margin: 0 32px 32px;
    border: 1px solid #e2e8f0;
}

.booking-details h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.booking-details h3:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #10b981;
}

/* ===== Grid Layout for Details ===== */
.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 0;
}

.detail-item {
    background: white;
    padding: 16px 20px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.detail-item:hover {
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
}

.detail-label {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.detail-value {
    font-size: 16px;
    font-weight: 500;
    color: #1e293b;
    word-break: break-word;
    margin-top: -6px;
}

/* ===== Stalls Table ===== */
.stalls-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.stalls-table thead {
    background: #f1f5f9;
}

.stalls-table th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stalls-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    font-size: 15px;
}

.stalls-table tr:last-child td {
    border-bottom: none;
}

.stalls-table tbody tr:hover {
    background: #f8fafc;
}

/* Status Badge */
.stalls-table td span.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    background: #10b981 !important;
    color: white !important;
}

/* Total Amount Row */
.total-amount {
    background: #f1f5f9;
}

.total-amount td {
    font-weight: 600;
    color: #1e293b;
    border-top: 2px solid #cbd5e1;
}

.total-amount td:last-child {
    color: #059669;
    font-size: 18px;
}

/* ===== Payment List (if used) ===== */
.payment-list {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin: 0 32px 32px;
    border: 1px solid #e2e8f0;
}

.payment-list .header {
    margin-bottom: 20px;
}

.payment-list .header h2 {
    font-size: 24px;
    color: #1e293b;
}

/* ===== Action Buttons ===== */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 0 32px 40px;
}

.print-button,
.home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.print-button {
    background: #10b981;
    color: white;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.print-button:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.home-button {
    background: white;
    color: #10b981;
    border: 2px solid #10b981;
}

.home-button:hover {
    background: #f0fdf4;
    transform: translateY(-2px);
}

/* Dashicons alignment */
.print-button .dashicons,
.home-button .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* ===== Home URL Link ===== */
.home_url {
    text-align: center;
    padding: 0 32px 40px;
}

.home-event {
    display: inline-block;
    padding: 12px 32px;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.home-event:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* ===== Error Messages ===== */
.stall-booking-error {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
    background: #fef2f2;
    border: 1px solid #fee2e2;
    border-radius: 12px;
    color: #b91c1c;
    text-align: center;
    font-size: 16px;
}

.stall-booking-error a {
    color: #10b981;
    text-decoration: none;
    font-weight: 500;
}

.stall-booking-error a:hover {
    text-decoration: underline;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .stall-success-wrapper {
        margin: 20px;
        border-radius: 16px;
    }

    .success-header {
        padding: 32px 20px;
    }

    .success-header h2 {
        font-size: 28px;
    }

    .success-icon {
        width: 100px;
        height: 100px;
        font-size: 60px;
    }

    .payment-info {
        margin: -20px 20px 24px;
        padding: 16px 20px;
    }

    .payment-info strong {
        min-width: 100px;
    }

    .booking-details {
        margin: 0 20px 24px;
        padding: 20px;
    }

    .details-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stalls-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .stalls-table th,
    .stalls-table td {
        padding: 12px 16px;
    }

    .action-buttons {
        flex-direction: column;
        padding: 0 20px 32px;
    }

    .print-button,
    .home-button {
        width: 100%;
    }

    .payment-list {
        margin: 0 20px 24px;
        padding: 20px;
    }

    .home_url {
        padding: 0 20px 32px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .success-header h2 {
        font-size: 24px;
    }

    .payment-info strong {
        display: block;
        margin-bottom: 4px;
    }

    .payment-info br {
        display: block;
    }

    .detail-item {
        padding: 12px 16px;
    }

    .stalls-table th,
    .stalls-table td {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* ===== Print Styles ===== */
@media print {
    .stall-success-wrapper {
        box-shadow: none;
        margin: 0;
    }

    .action-buttons,
    .home_url {
        display: none;
    }

    .success-header {
        background: #f8fafc;
        color: #1e293b;
    }

    .payment-info {
        border: 1px solid #ddd;
    }
}

