/**
 * Festival Starówka - WooCommerce Styles
 */

/* WooCommerce Integration */
.woocommerce-enabled .festival-checkout {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.woocommerce-enabled .festival-checkout h2 {
    color: #495057;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

/* Cart Items */
.festival-cart-items {
    margin-bottom: 30px;
}

.festival-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.festival-cart-item:last-child {
    border-bottom: none;
}

.item-details h4 {
    margin: 0 0 5px 0;
    color: #495057;
}

.item-details .spot-info {
    color: #6c757d;
    font-size: 14px;
}

.item-price {
    font-weight: bold;
    color: #007bff;
    font-size: 16px;
}

/* Checkout Form Styling */
.woocommerce-checkout .col2-set {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.woocommerce-checkout .form-row {
    margin-bottom: 20px;
}

.woocommerce-checkout .form-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #495057;
}

.woocommerce-checkout .input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.woocommerce-checkout .input-text:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.woocommerce-checkout .required {
    color: #dc3545;
}

/* Order Review */
.woocommerce-checkout-review-order {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 25px;
}

.woocommerce-checkout-review-order h3 {
    margin-top: 0;
    color: #495057;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
}

.shop_table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.shop_table th,
.shop_table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.shop_table th {
    background: #e9ecef;
    font-weight: 600;
    color: #495057;
}

.order-total {
    font-size: 18px;
    font-weight: bold;
    color: #007bff;
}

/* Payment Methods */
.wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.wc_payment_method {
    border: 2px solid #dee2e6;
    border-radius: 6px;
    margin-bottom: 10px;
}

.wc_payment_method label {
    display: block;
    padding: 15px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.wc_payment_method input[type="radio"] {
    margin-right: 10px;
}

.wc_payment_method.checked {
    border-color: #007bff;
    background: rgba(0, 123, 255, 0.05);
}

.payment_box {
    padding: 15px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* Place Order Button */
#place_order {
    background: #007bff;
    color: #fff;
    border: 2px solid #007bff;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
}

#place_order:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#place_order:active {
    transform: translateY(0);
}

#place_order:disabled {
    background: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* Festival-specific fields */
.festival-vendor-fields {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 6px;
    padding: 20px;
    margin: 25px 0;
}

.festival-vendor-fields h3 {
    color: #1976d2;
    margin-top: 0;
    margin-bottom: 20px;
}

.festival-field-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.festival-field-full {
    grid-column: 1 / -1;
}

/* Vendor Category Selection */
.vendor-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.vendor-category-item {
    border: 2px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vendor-category-item:hover {
    border-color: #007bff;
    background: rgba(0, 123, 255, 0.05);
}

.vendor-category-item.selected {
    border-color: #007bff;
    background: #007bff;
    color: #fff;
}

.vendor-category-item input[type=\"radio\"] {
    display: none;
}

/* My Account Integration */
.woocommerce-MyAccount-navigation {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 30px;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation li {
    margin-bottom: 10px;
}

.woocommerce-MyAccount-navigation a {
    display: block;
    padding: 10px 15px;
    color: #495057;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.woocommerce-MyAccount-navigation a:hover,
.woocommerce-MyAccount-navigation .is-active a {
    background: #007bff;
    color: #fff;
}

/* Festival Reservations in My Account */
.festival-reservations-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.festival-reservations-table th,
.festival-reservations-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.festival-reservations-table th {
    background: #007bff;
    color: #fff;
    font-weight: 600;
}

.reservation-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.reservation-status.pending {
    background: #fff3cd;
    color: #856404;
}

.reservation-status.confirmed {
    background: #d4edda;
    color: #155724;
}

.reservation-status.cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .woocommerce-checkout .col2-set {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .festival-field-group {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .vendor-category-grid {
        grid-template-columns: 1fr;
    }

    .shop_table,
    .festival-reservations-table {
        font-size: 14px;
    }

    .shop_table th,
    .shop_table td,
    .festival-reservations-table th,
    .festival-reservations-table td {
        padding: 8px;
    }
}

/* Print Styles */
@media print {
    .woocommerce-checkout .no-print,
    .wc_payment_methods,
    #place_order {
        display: none !important;
    }

    .shop_table {
        border: 1px solid #000;
    }

    .shop_table th,
    .shop_table td {
        border: 1px solid #000;
        padding: 8px;
    }
}