/* ==========================================================================
   1. GLOBAL EVENTS & LIST STYLING (Light Text & Accents)
   ========================================================================== */

.tribe-events-single-event-description, 
.tribe-common-b2, 
.tribe-events-content p,
.tribe-events-meta-group .tribe-events-single-section-title,
.tribe-events-meta-group dt,
.tribe-events-meta-group dd,
.tribe-events-event-meta,
.tribe-events-back a, 
.tribe-events-nav-previous a, 
.tribe-events-nav-next a,
.tribe-events-calendar-list__month-separator-text, 
.tribe-events-c-top-bar__datepicker-desktop, 
.tribe-events-c-small-cta__price,
.tribe-events-calendar-list__event-date-tag-daynum, 
.tribe-events-cost {
    color: #ffffff !important;
}

/* Mahogany / Golden-Tan Event Titles */
.tribe-events-single-event-title, 
.tribe-events-calendar-list__event-title-link {
    color: #9c783f !important; 
}

.tribe-events-calendar-list__event-title-link:hover {
    color: #e05a1a !important;
}

/* Visual Accents (Lines/Dividers) */
.tribe-events-calendar-list__month-separator:after, 
.tribe-events-calendar-list__month-separator:before {
    border-color: #ffffff !important;
    opacity: 0.3;
}


/* ==========================================================================
   2. SPECIFIC COMPONENT FIXES (Add to Calendar & Get Tickets)
   ========================================================================== */

/* "Add to calendar" Dropdown Button Text -> BLACK */
button.tribe-events-c-subscribe-dropdown__button-text,
.tribe-events-c-subscribe-dropdown__button-text {
    color: #000000 !important;
}

/* "Get Tickets" Link -> Forced to BLUE */
a.tribe-events-c-small-cta__link.tribe-common-cta.tribe-common-cta--thin-alt,
.tribe-events-c-small-cta__link.tribe-common-cta {
    color: #0073aa !important;
}

a.tribe-events-c-small-cta__link.tribe-common-cta.tribe-common-cta--thin-alt:hover,
.tribe-events-c-small-cta__link.tribe-common-cta:hover {
    color: #00a0d2 !important; 
}


/* ==========================================================================
   3. SINGLE EVENT TICKET FORM LAYOUT (The Box on the Event Page)
   ========================================================================== */

/* Main Wrapper - Deep Dark & Spaced Out */
#tribe-tickets__tickets-form {
    background-color: #121212 !important;
    padding: 25px !important;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Fix the "Smushed" Quantity Row Layout */
.tribe-tickets__tickets-item-quantity {
    display: flex !important;
    flex-direction: row !important; 
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important; 
    min-width: 140px !important; 
    width: auto !important;
    position: relative !important;
    z-index: 20 !important;
}

/* The Number Box */
.tribe-tickets__tickets-item-quantity-number-input {
    width: 60px !important; 
    height: 40px !important;
    background-color: #222222 !important;
    color: #ffffff !important;
    border: 1px solid #444444 !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

/* Plus & Minus Selection Buttons */
.tribe-tickets__tickets-item-quantity-add, 
.tribe-tickets__tickets-item-quantity-remove {
    width: 40px !important;
    height: 40px !important;
    flex-shrink: 0 !important; 
    background-color: #333333 !important;
    color: #ffffff !important;
    border: 1px solid #444444 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 30 !important; 
    font-size: 20px !important;
    border-radius: 4px !important;
}

/* Ticket Info Elements inside Form */
.tribe-tickets__tickets-item-content-title {
    color: #9c783f !important; 
    font-weight: bold !important;
}

.tribe-tickets__tickets-item-extra-price, 
.tribe-tickets__tickets-item-extra-available,
.tribe-amount, 
.tribe-currency-symbol,
.tribe-tickets__tickets-title {
    color: #ffffff !important;
}

/* Main Form Submission Button */
#tribe-tickets__tickets-buy.tribe-tickets__tickets-buy {
    background-color: #800020 !important; /* Burgundy */
    color: #ffffff !important;
    width: 100% !important;
    margin-top: 20px !important;
    padding: 15px !important;
    border: none !important;
    opacity: 1 !important; 
}

#tribe-tickets__tickets-buy:disabled {
    background-color: #4a0012 !important; 
    cursor: not-allowed;
}


/* ==========================================================================
   4. CHECKOUT PAGE SPECIFIC STYLING (High Contrast Dark Mode UI)
   ========================================================================== */

/* Checkout Form Text Headers & Section Titles -> WHITE */
.tribe-tickets__commerce-checkout .tribe-common-h2,
.tribe-tickets__commerce-checkout .tribe-common-h4,
.tribe-tickets__commerce-checkout .tribe-common-h5,
.tribe-tickets__commerce-checkout .tribe-common-h6,
.tribe-tickets__commerce-checkout-cart-item-details-title,
.tribe-tickets__commerce-checkout-cart-footer-quantity-label,
.tribe-tickets__commerce-checkout-cart-footer-total-label,
.tribe-tickets__commerce-checkout-gateways h4 {
    color: #ffffff !important;
}

/* Checkout Card Header Link (Horus Academy 3rd Annual Gala) -> Forced to WHITE */
.tribe-tickets__commerce-checkout-cart-header-title a,
.tribe-tickets__commerce-checkout-cart-header-title a:link,
.tribe-tickets__commerce-checkout-cart-header-title a:visited {
    color: #ffffff !important;
    text-decoration: none !important;
}

.tribe-tickets__commerce-checkout-cart-header-title a:hover {
    color: #9c783f !important; 
}

/* Prices, Quantities, and Totals Columns */
.tribe-tickets__commerce-checkout-cart-item-price,
.tribe-tickets__commerce-checkout-cart-item-price .amount,
.tribe-tickets__commerce-checkout-cart-item-quantity,
.tribe-tickets__commerce-checkout-cart-item-subtotal,
.tribe-tickets__commerce-checkout-cart-footer-quantity-number,
.tribe-tickets__commerce-checkout-cart-footer-total-wrap {
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Navigation Link (e.g., "back to event") */
.tribe-tickets__commerce-checkout-header-link-back-to-event {
    color: #9c783f !important; 
    text-decoration: underline !important;
}

.tribe-tickets__commerce-checkout-header-link-back-to-event:hover {
    color: #ffffff !important;
}

/* Coupon Interaction Items */
.tec-tickets-commerce-checkout-cart__coupons-add-link {
    color: #9c783f !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
}

.tec-tickets-commerce-checkout-cart__coupons-add-link:hover {
    color: #ffffff !important;
}

.tec-tickets-commerce-checkout-cart__coupons-input-field {
    background-color: #222222 !important;
    color: #ffffff !important;
    border: 1px solid #444444 !important;
    padding: 8px 12px !important;
    border-radius: 4px !important;
}

.tec-tickets-commerce-checkout-cart__coupons-apply-button {
    color: #ffffff !important;
    border-color: #555555 !important;
    background-color: #333333 !important;
}

/* Table / Row Separator Rules */
.tribe-tickets__commerce-checkout-cart-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding-bottom: 15px !important;
    margin-bottom: 15px !important;
}

.tribe-tickets__commerce-checkout-cart-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding-top: 15px !important;
}

/* Final Checkout Submission Button (Purchase Tickets) -> Text Forced to BLACK */
button.tribe-tickets__commerce-checkout-form-submit-button,
#tec-tc-gateway-stripe-checkout-button {
    color: #000000 !important;
    font-weight: 700 !important;
}

/* Stripe Payment Element Display Safety Frame */
#tec-tc-gateway-stripe-card-element {
    background-color: #ffffff !important; 
    padding: 12px !important;
    border-radius: 6px !important;
    margin-bottom: 20px !important;
}


/* ==========================================================================
   5. ORDER CONFIRMATION / THANK YOU PAGE STYLING
   ========================================================================== */

/* Main Header, Descriptions, Block Titles, Rows, and Metadata Layouts -> WHITE */
.tribe-tickets__commerce-order .tribe-tickets__commerce-order-header-title,
.tribe-tickets__commerce-order .tribe-tickets__commerce-order-description,
.tribe-tickets__commerce-order .tribe-tickets__commerce-order-details-col1,
.tribe-tickets__commerce-order .tribe-tickets__commerce-order-details-col2,
.tribe-tickets__commerce-order .tribe-common-h4 {
    color: #ffffff !important;
}

/* Attendee Purchased Ticket Details Line -> Forced to BLACK */
.tribe-tickets__commerce-order .tec-tickets__attendees-list-item-attendee-details,
.tribe-tickets__commerce-order .tec-tickets__attendees-list-item-attendee-details-ticket,
.tribe-tickets__commerce-order .tec-tickets__attendees-list-item-attendee-details-ticket .tec-tickets-price.amount {
    color: #000000 !important;
}

/* Footer Bottom Links ("browse more events" & "back home") styling */
.tribe-tickets__commerce-order-footer-links a.tribe-tickets__commerce-order-footer-link,
.tribe-tickets__commerce-order-footer-links a.tribe-tickets__commerce-order-footer-link:link {
    color: #9c783f !important; 
    text-decoration: underline !important;
}

.tribe-tickets__commerce-order-footer-links a.tribe-tickets__commerce-order-footer-link:hover {
    color: #ffffff !important;
}