@charset "utf-8";
/* Title: Nice Industries Nice Pass Modals
** Description: Styles for modals (overlay screens usually used for checkout)
** Author: Jessica Greenwalt
** Created: 12-08-2025
** Updated: 03-10-2026
************************************** */

/* Modals */
.mdl {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: flex-start;
    justify-content: center;
    isolation: isolate;
    padding: 5px 5px 12px 12px;
    overflow-y: auto;
}

.mdlovrly {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Modal Box */
.mdlbox {
    position: relative;
    margin: 30px auto 20px auto;
    width: 100%;
    max-width: 520px;
    padding: 24px;
    background: #fff;
    border: 4px solid #000;
    box-shadow: -1px 1px 0 #000, -2px 2px 0 #000, -3px 3px 0 #000, -4px 4px 0 #000, -5px 5px 0 #000, -6px 6px 0 #000, -7px 7px 0 #000;
}

#guestMgmtModalShell .mdlbox {
    max-width: unset;
}

/* = Modal Box Healine */
.mthl {
    margin-bottom: 14px;
    margin-top: -10px;
}

/* Nonprofit Selector Modal */
.mdlbox.npslctmdl {
    max-width: 800px;
}

/* Modal Grid Layout - column width tied to button max-width to avoid gaps */
.nonprofit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 223px));
    gap: 8px;
    margin-bottom: 20px;
    padding: 10px 0;
    justify-content: center;
}

@media (min-width: 738px) {
    .nonprofit-grid {
        grid-template-columns: repeat(3, minmax(0, 223px));
     }
}


/* Modal Header */
.mdlhdr {
    position: relative;
    margin-bottom: 27px;
}

/* Squad modals using mdlbox - match checkout modal close button positioning (top-right) */
.mdlbox .invite-modal-header {
    position: relative;
}

.mdlclose {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 1);
    border: 2px solid rgba(0, 0, 0, 1);
    width: 25px;
    height: 25px;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mdlclose:hover {
    color: #000;
    border: 2px solid rgba(0, 0, 0, 1);
    background: rgba(255, 255, 255, 1);
    transform: rotate(90deg);
}

.progress-step {
    display: inline-block;
    display: none;
    width: 10px;
    height: 10px;
    border-radius: 5px;
    border: 2px solid rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 1);
}

/*
.progress-step.active {
    border: none;
    background: rgba(0, 0, 0, 0.4);
}

.progress-step.completed {
    background: rgba(0, 0, 0, 0.18);
    border: 2px solid rgba(0, 0, 0, 0.1);
}
*/

/* Modal Body */

/* Stage Container */
.checkout-stage {
    display: none;
}

@media (min-width: 520px) {
    .checkout-stage {
        padding: 0 15px 0 15px;
     }
}

/* Ticket Summary Card */
.ticket-summary-card {
    margin-bottom: 20px;
}

.ticket-summary-item {
    background: #fff;
    padding: 15px 10px 15px 12px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    margin-bottom: 4px;
}

.ticket-info .row {
    justify-content: space-between;
}

/* Ticket donation details and Ticket modifiation buttons */
.ticket-info .tdd,
.ticket-info .tmod {
    display: inline-block;
    margin-top: 5px;
    width: 100%;
    text-align: left;
    color: #000;
    font-size: 15px;
    font-weight: 500;
    font-family: "Figtree", Helvetica, Arial, sans-serif;
}

.ticket-info .tmod button {
    font-weight: 500;
    text-decoration: underline;
    background: none;
}

.ticket-details {
    font-size: 14px;
    color: #636e72;
}

.ticket-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-adjust {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    font-size: 16px;
    color: #495057;
}

.qty-adjust:hover {
    background: #f1f3f5;
    border-color: #adb5bd;
}

.qty-display {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
    color: #2d3436;
}

.remove-ticket-btn {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    padding: 4px;
    font-size: 18px;
    opacity: 0.6;
    transition: opacity 0.15s ease;
}

.remove-ticket-btn:hover {
    opacity: 1;
}

/* Pricing Breakdown */
.pricing-card {
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 0 5px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.7);
}

.pricing-row strong {
    color: #2d3436;
}

.pricing-total {
    font-size: 15px;
    font-weight: 700;
    color: #000;
    margin-bottom: 0;
}

.pricing-total .amount {
    color: #667eea;
}


/* Payment Section */
#payment-element,
#review-payment-element {
    margin: 20px 0;
    /* padding: 16px; */
    background: transparent;
    /* border-radius: 8px; */
    min-height: 200px;
}

/* Review Payment Section (Consolidated Flow)
   Contains payment form within review stage for 1-2 ticket type checkouts */
.review-payment-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.payment-error {
    background: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 8px;
    margin: 16px 0;
    font-size: 14px;
}

/* Donation Options */
.donation-options-required {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: -25px;
    margin-bottom: 25px;
}

/* Clear and Conspicuous Donation Text */
.dntn-txt {
    display: block;
    margin: 22px 0 11px 0;
}

.dntn-txt p {
    margin-bottom: 12px;
    font-size: 18px;
    line-height: 24px;
}

/* Post-event donation - 100% message centering */
.ntc-event-ended .dntn-txt p{
    /* text-align: center; */
    font-size: 15px;
    font-weight: 700;
    color: #000;
    margin-bottom: 0;
    margin-top: 0px;
    padding-bottom: 0px;
    padding-left: 5px;
}

/* Buttons */
.checkout-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 20px;
}

.checkout-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.checkout-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading state for donation buttons */
.checkout-btn.loading {
    cursor: wait;
}

/* Support for checkout-btn-secondary class pattern */
.checkout-btn-secondary {
    background: #f1f3f5;
    color: #495057;
}

.checkout-btn-secondary:hover:not(:disabled) {
    background: #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Processing Indicator */
.processing-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 16px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e9ecef;
    border-top-color: #000000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.processing-indicator span {
    color: #636e72;
    font-size: 14px;
}

/* Success State */
.success-content {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    animation: successPulse 0.5s ease;
}

@keyframes successPulse {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.success-content h3 {
    color: #2d3436;
    margin-bottom: 12px;
}

.success-content p {
    color: #636e72;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 8px;
}

/* Warning Modal */
.warning-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100001;
    align-items: center;
    justify-content: center;
}

.warning-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.warning-modal-content {
    position: relative;
    background: white;
    max-width: 420px;
    width: 90%;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.warning-modal-content h3 {
    margin: 0 0 16px 0;
    font-size: 25px;
    font-weight: 500;
    font-family: 'Roboto Slab', Georgia, Lato, Helvetica, Arial, sans-serif;
}

.partial-warning-item {
    padding: 8px 0;
    color: #000000;
    text-align: left;
}

.partial-warning-item strong{
    padding: 8px 0;
    color: #000000;
    text-align: left;
    font-weight: 500;
}

.warning-modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.warning-modal-buttons button {
    flex: 1;
}

/* Mobile Responsive */
/*
@media (max-width: 768px) {
    .mdlbox {
        width: 95%;
        max-height: 90vh;
        margin: 20px;
    }
    
    .mdlbody {
        padding: 16px;
        max-height: calc(90vh - 120px);
    }
    
    .checkout-btn {
        font-size: 15px;
        padding: 12px 20px;
    }
}
*/

/* Flexible Price Input */
.flexible-price-input {
    margin-top: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.flexible-price-input label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #636e72;
    font-weight: 500;
}

.flexible-price-input small {
    display: block;
    margin-top: 6px;
    color: #868e96;
    font-size: 12px;
}


/* Donation Section */
.donation-section-card {
    background: #f0f7ff;
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
}

.donation-header h4 {
    margin: 0 0 12px 0;
    color: #2d3436;
    font-size: 16px;
}

.donation-input-wrapper label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #636e72;
    font-weight: 500;
}

.donation-input-group {
    display: flex;
    align-items: center;
    position: relative;
}

.currency-symbol {
    position: absolute;
    left: 12px;
    color: #636e72;
    font-size: 16px;
}

.donation-hint {
    display: block;
    margin-top: 8px;
    color: #868e96;
    font-size: 13px;
}

.donation-encouraged-box {
    text-align: center;
    padding: 8px;
}

.donation-encouraged-box p {
    margin-bottom: 12px;
    color: #2d3436;
    font-size: 15px;
}

.nonprofit-link {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.nonprofit-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* = Register for Event
** ----------------------- */

/* Checkout pop-up modal */
.donation-options {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}

.donation-options .btn-m {
    flex: 1; 
    font-size: 18px;
}

.donation-options .btn-m.active,
.donation-options .btn-m.active:hover {
    color: #000;
    background: #B5FF75;
}

.donation-stage-buttons .btn-txt {
    margin-top: 20px;
}

.donation-options-required .line-txt {
    margin-bottom: 28px;
}

.donation-options-required .frm-lbl-grp {
    max-width: 140px;
}

/* Remove bottom margin from frm-lbl-grp in Ticket Info Container */
.ticket-info .frm-lbl-grp {
    margin-bottom: 6px;
}

/* Ticket Info Container Donation Options */
.ticket-info .donation-selection-container {
    margin-top: 15px;
    margin-bottom: 6px;
}

.ticket-info .donation-options {
    margin-bottom: 6px;
}

.ticket-info .donation-options .btn-m {
    font-size: 15px;
}

/* Flat Standard Button inside of Ticket Info Container */
.ticket-info .btn-fs {
    padding: 8px 16px 10px 16px;
    font-size: 15px;
}

/* Donate To Row */
.donation-options-required .donation-amount {
    display: block;
    font-size: 35px;
    font-weight: 600;
    font-family: 'Roboto Slab', Georgia, Lato, Helvetica, Arial, sans-serif;
}

/* User Tickets Section */
.user-tickets-section {
    margin-top: 24px;
    padding-top: 12px;
    text-align: left;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.tickets-header {
    font-weight: bold;
    color: #000;
    font-size: 16px;
    margin-bottom: 16px;
    text-align: left;
}

.ticket-transaction {
    margin-bottom: 8px;
    color: #000;
    text-align: left;
}

.transaction-date {
    font-weight: normal;
    margin-bottom: 8px;
    /* margin-top: 10px; */
    text-align: left;
}

.timezone-indicator {
    color: #000000;
    font-size: 14px;
}

.transaction-tickets {
    margin-left: 0;
    margin-bottom: 4px;
    text-align: left;
}

.ticket-line {
    margin-bottom: 16px;
    text-align: left;
}



.ticket-description-wrapper {
    margin-left: 24px;
    margin-top: 2px;
}

.ticket-description {
    color: #000000;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
}

.description-toggle {
    background: none;
    border: none;
    color: #0066cc;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
    text-decoration: underline;
}

.description-toggle:hover {
    color: #0052a3;
}

.transaction-total {
    color: #000;
    margin-top: 4px;
    text-align: left;
}

#cancelConfirmPopup .popup-buttons {
    display: flex;
    justify-content: flex-end;
}

/* Additional Tickets Section */
#additionalTicketsSection {
    margin-top: 20px;
    animation: fadeIn 0.3s ease-in;
}

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

#additionalTicketsSection .ticket-boxes-container {
    margin-bottom: 16px;
}


/* Donation Stage Styles */
.donation-selection-container {
    margin-bottom: 25px;
}

/* Remove the label for other box since placeholder handles it */
.donation-option-box.donation-other .donation-label {
    display: none;
}

/* Checkout minimum transaction warning */
.checkout-warning {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 12px 16px;
    margin-top: 16px;
    color: #856404;
    font-size: 14px;
    line-height: 1.5;
}

/* Checkout stage error messages */
.stage-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 12px 16px;
    margin: 16px 0;
    color: #721c24;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.stage-error.show {
    opacity: 1;
    transform: translateY(0);
}


/* No Tickets Available Message */
.no-tickets-message {
    padding: 24px;
    text-align: left;
    color: #666;
    font-size: 15px;
    line-height: 1.5;
    background: #f8f8f8;
    border-radius: 8px;
    margin-top: 16px;
}

/* Progress step enhancements */
.progress-step.clickable {
    cursor: pointer;
}

/* Stage navigation buttons */
.stage-navigation {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* Processing indicator improvements */
#processingIndicator span {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Read-only ticket display */
.ticket-summary-item.read-only .ticket-controls {
    color: #636e72;
}

.ticket-summary-item.read-only .qty-display {
    font-weight: 600;
    color: #2d3436;
}

/* Payment Status Warning Banner */
.payment-status-banner {
    margin: 0 0 20px 0;
    padding: 16px 20px;
    background: #F9F932;
}
.payment-status-banner .hboxtop {
    text-align: left;
    font-weight: 600;
    margin-bottom: 8px;
}

.payment-status-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.payment-status-icon {
    font-size: 20px;
    flex-shrink: 0;
    line-height: 1.4;
}

.payment-status-messages {
    flex: 1;
    text-align: left;
}

.payment-status-main {
    margin: 0;
    color: #000000;
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
}

.payment-status-nonprofit .payment-status-main {
    color:#000000;
    text-align: left;
}

.payment-status-manager {
    margin: 8px 0 0 0;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: #000000;
    font-size: 16px;
    line-height: 1.5;
    /* font-style: italic; */
    text-align: left;
}

@media (max-width: 768px) {
    .payment-status-banner {
        margin: 0 0 16px 0;
        padding: 12px 16px;
    }
    
    .payment-status-main {
        font-size: 14px;
    }
    
    .payment-status-manager {
        font-size: 14px;
    }
}

/* Disabled buttons when payment processing is blocked */
[data-payment-blocked="true"] #registerBtn,
[data-payment-blocked="true"] .ticket-purchase-btn,
[data-payment-blocked="true"] .get-tickets-btn,
[data-payment-blocked="true"] .qty-btn,
[data-payment-blocked="true"] #getAdditionalTicketsBtn,
[data-payment-blocked="true"] .multi-ticket-btn {
    opacity: 0.5;
    pointer-events: none;
}



/* Donation confirmed display (read-only mode) */
.donation-confirmed-display {
    text-align: center;
    padding: 24px;
    background: rgba(0, 128, 0, 0.08);
    border-radius: 8px;
    margin: 16px 0;
}

.donation-confirmed-display .confirmed-amount {
    font-size: 32px;
    font-weight: 700;
    color: #2e7d32;
}

.donation-confirmed-display .confirmed-label {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

/* Cancel/danger button variant */
.btn-danger {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.btn-danger:hover {
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
}

/* Stage navigation buttons container */
.stage-navigation {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

/* ========== Cancellation Modal Styles ========== */

.cancel-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.cancel-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.cancel-popup-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    max-width: 480px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1001;
}

.cancel-popup-content h2 {
    margin: 0 0 16px 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.cancel-popup-content p {
    margin: 0 0 16px 0;
    color: #333;
    line-height: 1.5;
}

.cancel-popup-content a {
    color: #0066cc;
    text-decoration: underline;
}

/* Cancel ticket list */
.cancel-ticket-list {
    margin: 16px 0;
}

.cancel-ticket-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f8f8;
    border-radius: 8px;
    margin-bottom: 8px;
}

.cancel-ticket-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cancel-ticket-name {
    font-weight: 500;
    color: #333;
}

.cancel-ticket-owned {
    font-size: 0.85rem;
    color: #666;
}

.cancel-ticket-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cancel-qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 4px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    visibility: visible !important;
    opacity: 1 !important;
}

.cancel-qty-btn:hover {
    background: #f0f0f0;
}

.cancel-qty-display {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
}

/* Popup buttons */
.cancel-popup-content .popup-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.cancel-popup-content .popup-buttons button {
    flex: 1 1 auto;
    min-width: 120px;
}

/* Stack vertically on very small screens */
@media (max-width: 400px) {
    .cancel-popup-content .popup-buttons {
        flex-direction: column;
    }
    
    .cancel-popup-content .popup-buttons button {
        width: 100%;
    }
}

.cancel-popup-content .btn-secondary {
    background: #f0f0f0;
    color: #333;
    border: none;
}

.cancel-popup-content .btn-secondary:hover {
    background: #e0e0e0;
}

#confirmCancelBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* Checkout Loading State */
.checkout-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

/* Checkout Error State */
.checkout-error-state {
    text-align: center;
    padding: 40px 20px;
}

.checkout-error-state p {
    margin-bottom: 20px;
    color: #666;
}

/* Stage Navigation Buttons (for resume scenarios) */
.stage-navigation {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ========== Component-Based Checkout System ========== */

/* Base component class - provides consistent spacing */
.checkout-component {
    margin-bottom: 0;
}

/* Hidden state for components */
.component-hidden {
    display: none !important;
}

/* Shared error displays */
.checkout-error-top,
.checkout-error-bottom {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 16px;
    color: #721c24;
    font-size: 14px;
    line-height: 1.5;
}

.checkout-error-bottom {
    margin-bottom: 0;
    margin-top: 16px;
}

/* Component-specific spacing adjustments */
#componentConfirmButton {
    margin-top: 20px;
}

#componentSkipButton {
    margin-top: 12px;
    text-align: center;
}

#componentSecondSubtotal {
    margin: 16px 0;
    padding: 16px 5px;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
}

#componentSecondSubtotal .pricing-total {
    margin-bottom: 0;
}

/* Payment form loading spinner */
.payment-form-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

/* Generic checkout loading spinner (shown during initial reserve) */
.checkout-loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
    min-height: 200px;
}

.checkout-loading-spinner span,
.checkout-loading-spinner p {
    font-family: "Figtree", Helvetica, Arial, sans-serif;
    font-size: 18px;
    line-height: 24px;
    color: #000;
}

/* ========== Cover Platform Fee Checkbox ========== */

.cover-fee-section {
    padding: 20px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.cover-fee-row {
    padding: 0 5px;
}

/* Hide bottom border on cover-fee-section when subtotal component is visible below it */
.cover-fee-section-no-bottom-border {
    border-bottom: none;
    padding-bottom: 0;
}

/* ========== Event Terms Agreement Checkbox ========== */

.event-terms-confirm {
    margin-bottom: 30px;
}



/* ========== Waiver Text Modal ========== */
#waiverModal {
    display: flex;
    z-index: 10001;
    align-items: center;
}
.waiver-text-scroll {
    max-height: 60vh;
    overflow-y: auto;
    white-space: pre-wrap;
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
    padding: 8px 0;
}

.sold-out-badge,
.max-bought-badge {
    font-family: "Figtree", Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: bold;
    color: #999;
    font-size: 0.95em;
    text-align: right;
    white-space: nowrap;
}

/* ========== Post-Event Donation Spacing ========== */
#postEventDonationPayment {
    margin-bottom: 20px;
}

/* ========== Thank You Animation (Post-Event Donations) ========== */
.thank-you-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000; /* Below confetti (9999) for layering effect */
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.thank-you-overlay.thank-you-visible {
    opacity: 1;
}

.thank-you-overlay.thank-you-fade-out {
    opacity: 0;
    transition: opacity 0.7s ease;
}

.thank-you-text-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.thank-you-word {
    font-family: "Figtree", Helvetica, Arial, sans-serif;
    font-size: 72px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    opacity: 0;
    transform: scale(0.3);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.thank-you-word.thank-you-word-visible {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 480px) {
    .thank-you-word {
        font-size: 48px;
    }
    
    .thank-you-text-container {
        gap: 12px;
    }
}

/* ==========================================================================
   Ticket Viewer Modal
   ========================================================================== */
.ticket-viewer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.ticket-viewer-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}
.ticket-viewer-box {
    z-index: 1002;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 420px;
    max-height: 90vh;
    min-height: 555px;
}
/* Header */
.ticket-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 20px;
    /* border-bottom: 1px solid #eee; */
}
.ticket-viewer-title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
}
.ticket-viewer-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
/* Close button - reuses mdlclose from checkout modal */
.ticket-viewer-box .mdlclose {
    position: static;
    font-size: 28px;
    line-height: 1;
}
/* Center Section */
.ticket-viewer-center {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    gap: 16px;
    min-height: 320px;
}
/* QR Code Container */
.ticket-qr-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 256px;
    height: 256px;
    flex-shrink: 0;
}
#ticketQRCode {
    display: flex;
    align-items: center;
    justify-content: center;
}
#ticketQRCode img,
#ticketQRCode canvas {
    display: block;
    max-width: 100%;
    max-height: 100%;
}
.ticket-qr-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.ticket-qr-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 100%;
    text-align: center;
    color: #666;
}
/* Navigation Buttons (visual) */
.ticket-nav-btn {
    position: relative;
    z-index: 1002;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #000;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: none;
}
.ticket-nav-btn .ticket-nav-icon {
    width: 14px;
    height: 14px;
    color: #000;
}
.ticket-nav-btn.disabled {
    border-color: rgba(0, 0, 0, 0.3);
    cursor: default;
    border: none;
}
.ticket-nav-btn.disabled .ticket-nav-icon {
    color: rgba(0, 0, 0, 0.3);
}
.ticket-nav-btn:hover:not(.disabled) {
    background: #000;
}
.ticket-nav-btn:hover:not(.disabled) .ticket-nav-icon {
    color: #fff;
}
/* Extended Navigation Click Areas */
.ticket-nav-area {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    height: 320px; /* Match center section height */
    z-index: 1001;
    cursor: pointer;
}
.ticket-nav-area.disabled {
    cursor: default;
}
.ticket-nav-area-left {
    left: 0;
    width: 50%;
}
.ticket-nav-area-right {
    right: 0;
    width: 50%;
}
/* Lower Info Section */
.ticket-viewer-info {
    position: relative;
    padding: 16px 20px 24px;
    /* border-top: 1px solid #eee; */
    text-align: left;
    margin-top: auto;
}
.ticket-viewer-index {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 14px;
    color: #000;
}
.ticket-viewer-user {
    display: flex;
    align-items: baseline;
    gap: 0;
    color: #000;
}
.ticket-viewer-user-name {
    font-size: 16px;
    font-weight: 600;
}
.ticket-viewer-user-email {
    font-size: 14px;
}
.ticket-viewer-type {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin-bottom: 4px;
    text-align: left;
}
.ticket-viewer-donation {
    font-size: 14px;
    color: #000;
    text-align: left;
}
/* Mobile adjustments */
@media (max-width: 480px) {
    .ticket-viewer-box {
        width: 95%;
        max-width: none;
    }
    .ticket-viewer-center {
        padding: 24px 12px;
        gap: 8px;
    }
    .ticket-qr-container {
        width: 200px;
        height: 200px;
    }
    #ticketQRCode img {
        width: 200px !important;
        height: 200px !important;
    }
    .ticket-nav-btn {
        width: 36px;
        height: 36px;
    }
    .ticket-nav-btn .ticket-nav-icon {
        width: 11px;
        height: 11px;
    }
}
/* ============================================
   Print Tickets Page
   ============================================ */
.print-tickets-page {
    background: #f5f5f5;
    min-height: 100vh;
}
.print-tickets-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}
.print-tickets-back {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}
.print-tickets-back:hover {
    text-decoration: underline;
}
.print-ticket-page {
    padding: 32px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.print-ticket-page .mdlbox {
    top: auto;
    /* width: 45%; */
    /* height: 50%; */
    width: 350px;
    height: 510px;
}
.print-ticket-page .ticket-qr-container{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    margin-bottom: auto;
}
.print-ticket-page .ticket-qr-container img,
.print-ticket-page .ticket-qr-container canvas {
    max-width: 256px;
    max-height: 256px;
}
.print-ticket-page .mdlbox {
    display: flex;
    flex-direction: column;
}
.print-ticket-page .ticket-viewer-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.print-ticket-page .ticket-viewer-header,
.print-ticket-page .ticket-viewer-center,
.print-ticket-page .ticket-viewer-info {
    border: none;
}
.print-ticket-page .ticket-viewer-info {
    margin-top: 0px;
}
.ticket-viewer-text {
    margin-top: 4px;
    font-size: 12px;
    color: #000;
    text-align: left;
}
/* ============================================
   Print Media Queries
   ============================================ */
@media print {
    .no-print {
        display: none !important;
    }
    .print-tickets-page {
        background: #fff;
    }
    .print-ticket-page {
        padding: 0;
        page-break-after: always;
        page-break-inside: avoid;
        break-after: page;
        break-inside: avoid;
        min-height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .print-ticket-page:last-child {
        page-break-after: auto;
        break-after: auto;
    }
}
/* Add Event Team Modal */
#addManagerModal .rolbtns {
    margin-bottom: 32px;
}
#addManagerModal label.txtac {
    width: 100%;
    margin-top: 15px;
}
