/* Dark Seat Selection */
#wc-etp-layout-visualizer {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 12px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    margin-top: 20px;
}

.wc-etp-stage {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 15px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 30px;
    border-bottom: 4px solid #d32f2f;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
    border-radius: 4px;
}

.wc-etp-zone {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wc-etp-zone h4 {
    margin: 0 0 10px 0;
    color: #fdb94e;
    font-size: 1.1em;
}

.wc-etp-seat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30px, 1fr));
    gap: 8px;
    justify-content: center;
}

.wc-etp-seat {
    width: 30px;
    height: 30px;
    background: #333;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: all 0.2s;
    border: 1px solid #444;
}

.wc-etp-seat:hover {
    transform: scale(1.1);
    border-color: #fff;
}

.wc-etp-seat.selected {
    border-color: #fff;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.wc-etp-seat.unavailable {
    background-color: #555;
    opacity: 0.5;
    cursor: not-allowed;
    text-decoration: line-through;
}

.wc-etp-standing-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#wc-etp-selection-summary {
    margin-top: 20px;
    padding: 15px;
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid #2ecc71;
    border-radius: 8px;
    display: none;
    color: #1a1a1a;
    /* Dark text for visibility */
    font-weight: 500;
}

/*** Single Column Layout Override for Events - Aggressive ***/

/* Standard Woo Classes */
body.wc-etp-single-layout .product .woocommerce-product-gallery,
body.wc-etp-single-layout .product .summary.entry-summary {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 0 30px 0 !important;
    clear: both !important;
    display: block !important;
    flex: 0 0 100% !important;
}

/* Flexbox Containers commonly used in themes (e.g. Astra, Storefront, Divi) */
body.wc-etp-single-layout .product,
body.wc-etp-single-layout .woocommerce-product-details__short-description,
body.wc-etp-single-layout .product .product_title {
    display: block !important;
}

/* Force container to wrap if it's flex */
body.wc-etp-single-layout div.product {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
}

/* Ensure Gallery Image is centered */
body.wc-etp-single-layout .woocommerce-product-gallery {
    margin-bottom: 40px !important;
}

body.wc-etp-single-layout .woocommerce-product-gallery__image {
    text-align: center;
}

body.wc-etp-single-layout .woocommerce-product-gallery img {
    width: auto !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    max-height: 500px;
    /* Prevent massive images taking over */
}

/* Hide related products if distracting? No user didn't ask. */
/* Apple UI Attendee Form Redesign */
.wc-etp-attendee-details-block {
    margin: 32px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1d1d1f;
}

.wc-etp-attendee-toggle {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
    color: #1d1d1f;
}

/* Force black accent color for checkbox */
.wc-etp-attendee-toggle input[type="checkbox"],
.components-checkbox-control__input {
    accent-color: #000000 !important;
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-right: 8px;
    /* Extra spacing just in case gap isn't supported by flex container wrapper */
}

/* Container for all fields */
.wc-etp-attendee-fields {
    background: transparent;
    /* Removed background color */
    border-radius: 0;
    padding: 10px 0;
    margin: 18px;
    /* Reduced padding since background is gone */
}

.wc-etp-section-title {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0 0 32px 0;
    color: #1d1d1f;
    border-bottom: none;
    text-transform: none;
    padding-bottom: 0;
}

.wc-etp-ticket-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02), 0 10px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Slightly darker border for better visibility on white */
}

.wc-etp-ticket-card:last-child {
    margin-bottom: 0;
}

.wc-etp-ticket-title {
    font-size: 19px;
    font-weight: 600;
    margin: 0 0 24px 0;
    color: #1d1d1f;
    text-transform: none;
    letter-spacing: -0.01em;
    background: transparent;
    padding: 0;
    display: block;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 12px;
}

.wc-etp-form-group {
    margin-bottom: 20px;
}

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

.wc-etp-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #86868b;
    text-transform: none;
    letter-spacing: normal;
}

.wc-etp-form-group label .required {
    color: #0071e3;
    margin-left: 3px;
}

.wc-etp-form-control {
    width: 100%;
    box-sizing: border-box;
    /* Fixes overflow issue */
    min-height: 48px;
    padding: 10px 16px;
    border: 1px solid #d2d2d7;
    border-radius: 10px;
    font-size: 16px;
    color: #1d1d1f;
    background-color: #ffffff;
    transition: all 0.2s ease;
    box-shadow: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.wc-etp-form-control:focus {
    border-color: #0071e3;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
    outline: none;
}

.wc-etp-form-control::placeholder {
    color: #a1a1a6;
    font-weight: 400;
}