/**
 * WC Extended Features - Public Styles
 *
 * @package Wc_Extended_Features
 */

/* ==========================================================================
   Event Booking Styles
   ========================================================================== */

.wcef-event-booking {
    margin: 20px 0;
}

.wcef-tickets-header,
.wcef-tickets-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.wcef-tickets-header th,
.wcef-tickets-table th {
    background-color: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    border: 1px solid #e1e1e1;
}

.ticket-option {
    border: 1px solid #e1e1e1;
    border-top: none;
    padding: 15px;
    background: #fff;
}

.ticket-option:first-of-type {
    border-top: 1px solid #e1e1e1;
}

.parent-ticket {
    display: flex;
    align-items: center;
    gap: 20px;
}

.variations_name {
    flex: 2;
    font-weight: 500;
}

.variations_price {
    flex: 1;
}

.variations_qty {
    flex: 1;
}

.variations_qty select {
    min-width: 60px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Attendee Form Styles */
.attendee-form {
    margin-top: 15px;
}

.person-info {
    background: #f9f9f9;
    padding: 15px;
    margin-top: 10px;
    border-radius: 4px;
    border: 1px solid #e1e1e1;
}

.person-info strong {
    display: block;
    margin-bottom: 10px;
    color: #333;
}

.person-info label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.person-info input[type="text"],
.person-info select {
    width: 100%;
    max-width: 300px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
}

.person-info input[type="checkbox"] {
    margin-right: 8px;
}

/* File Uploader Styles */
.file-uploader {
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-top: 5px;
}

.file-uploader:hover {
    border-color: #999;
    background: #f5f5f5;
}

.file-uploader.drag-over {
    border-color: #0073aa;
    background: #e8f4fc;
}

.file-uploader span {
    color: #666;
    font-size: 14px;
}

.file-uploader input[type="file"] {
    display: none;
}

.uploaded-file-name {
    margin-top: 8px;
    font-size: 13px;
    color: #28a745;
}

/* Booking Summary Styles */
.booking-summary {
    margin-top: 20px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
}

.booking-summary table {
    width: 100%;
    border-collapse: collapse;
}

.booking-summary th {
    padding: 10px;
    text-align: left;
    background: #e9ecef;
    border-bottom: 2px solid #dee2e6;
}

.booking-summary td {
    padding: 10px;
    border-bottom: 1px solid #dee2e6;
}

.booking-summary .total-price td {
    font-weight: 600;
    font-size: 16px;
    border-top: 2px solid #dee2e6;
}

/* Submit Button */
.submit-booking {
    margin-top: 20px;
    padding: 15px 30px;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-booking:hover {
    background: #218838;
}

/* ==========================================================================
   Donation Styles
   ========================================================================== */

.donation-button-wrapper {
    margin: 20px 0;
}

.donation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.donation-btn {
    padding: 12px 24px;
    border: 2px solid #0073aa;
    background: #fff;
    color: #0073aa;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.donation-btn:hover {
    background: #f0f8ff;
}

.donation-btn.active {
    background: #0073aa;
    color: #fff;
}

.custom-donation-amount {
    width: 100%;
    max-width: 200px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

/* Checkout Donation Select */
.wcef-donation-select-row th,
.wcef-donation-select-row td {
    padding: 12px 0;
    vertical-align: middle;
}

.wcef-donation-select-row th {
    font-weight: 600;
}

.wcef-donation-select {
    width: 100%;
    max-width: 280px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}

.wcef-donation-select:hover {
    border-color: #999;
}

.wcef-donation-select:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

/* RTL support */
html[dir="rtl"] .wcef-donation-select-row th {
    text-align: right;
}

/* Responsive */
@media (max-width: 480px) {
    .wcef-donation-select {
        max-width: none;
    }
}

/* ==========================================================================
   Event List Styles
   ========================================================================== */

.wcef-events-wrapper {
    margin-bottom: 30px;
}

.wcef-events-title h2 {
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.event-details-list {
    margin: 10px 0;
    padding: 0;
    list-style: none;
}

.event-details-list li {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
}

.event-details-list .dashicons {
    margin-right: 8px;
    font-size: 16px;
}

/* ==========================================================================
   Hide WooCommerce default elements for events
   ========================================================================== */

.single-product.prodcat-events .woocommerce div.product form.cart .variations,
.single-product.prodcat-events .woocommerce-variation-price,
.single-product.prodcat-events .price,
.single-product.prodcat-events .single_add_to_cart_button,
.single-product.prodcat-events .woocommerce-product-attributes,
.single-product.prodcat-events .ppc-button-wrapper,
.single-product.prodcat-events .product_meta .sku_wrapper.detail-container,
.single-product.prodcat-events .product_meta .posted_in.detail-container,
.single-product.prodcat-events .elementor-widget-woocommerce-product-additional-information {
    display: none !important;
}

/* ==========================================================================
   RTL Support
   ========================================================================== */

html[dir="rtl"] .parent-ticket {
    flex-direction: row-reverse;
}

html[dir="rtl"] .person-info input[type="checkbox"] {
    margin-right: 0;
    margin-left: 8px;
}

html[dir="rtl"] .event-details-list .dashicons {
    margin-right: 0;
    margin-left: 8px;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 768px) {
    .parent-ticket {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .variations_name,
    .variations_price,
    .variations_qty {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .donation-options {
        flex-direction: column;
    }
    
    .donation-btn {
        width: 100%;
        text-align: center;
    }
    
    .custom-donation-amount {
        width: 100%;
        max-width: none;
    }
}
