.pool-variation-form {
    max-width: 500px;
    margin-top: 1.5em;
    border: 1px solid #ddd;
    padding: 1em;
    border-radius: 6px;
    background: #f9f9f9;
    position: relative;
}

/* Loading state */
.pool-variation-form.loading {
    opacity: 0.7;
    pointer-events: none;
}

.pool-variation-form.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
}

.pool-variation-form .pool-field {
    margin-bottom: 1em;
}

.pool-variation-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5em;
    font-size: 1rem;
}

.pool-variation-form select, .pool-variation-form input[type="number"] {
    width: 100%;
    padding: 0.5em;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.pool-variation-form select:focus, .pool-variation-form input[type="number"]:focus {
    border-color: #0071a1;
    outline: none;
    box-shadow: 0 0 0 1px #0071a1;
}

.pool-variation-form select:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.pool-variation-details {
    margin-top: 1em;
    font-size: 1.1em;
    color: #333;
}

.pool-price {
    font-size: 1.6em;
    font-weight: 700;
    color: #222;
    margin-bottom: 1em;
    text-align: center;
}

.pool-qty {
    margin-bottom: 1em;
}

.pool-qty label {
    margin-bottom: 0.3em;
}

.single_add_to_cart_button {
    width: 100%;
    display: block;
    background: #0071a1;
    color: #fff;
    border: none;
    padding: 0.8em 1.2em;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s ease;
    cursor: pointer;
}

.single_add_to_cart_button:hover {
    background: #005f85;
    color: #fff;
}

.single_add_to_cart_button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 113, 161, 0.3);
}

.pool-variation-form input[type="number"] {
    text-align: center;
}

/* Loading and error messages */
.loading {
    text-align: center;
    padding: 1em;
    color: #666;
    font-style: italic;
}

.error {
    color: #d63638;
    background: #fcf0f1;
    border: 1px solid #d63638;
    border-radius: 4px;
    padding: 0.8em;
    margin: 0.5em 0;
    text-align: center;
}

/* Pool fees notice styling */
.pool-fees-notice {
    color: #666;
    font-style: italic;
}

/* Simple product form specific styling */
#pool-simple-form {
    text-align: center;
}

#pool-simple-form .pool-qty {
    max-width: 150px;
    margin: 0 auto 1em auto;
}

/* Responsive design */
@media (max-width: 600px) {
    .pool-variation-form {
        margin-left: -1em;
        margin-right: -1em;
        border-left: none;
        border-right: none;
        border-radius: 0;
    }
    
    .pool-price {
        font-size: 1.4em;
    }
}

/* Animation for smooth transitions */
.pool-variation-form select, 
.pool-variation-form input, 
.pool-variation-form button {
    transition: all 0.3s ease;
}

/* Focus states for accessibility */
.pool-variation-form select:focus,
.pool-variation-form input:focus,
.pool-variation-form button:focus {
    outline: 2px solid #005caa;
    outline-offset: 2px;
}

/* Players checkbox container styling */
.players-checkbox-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5em;
    background: #fff;
}

.players-checkbox-container .select-prompt {
    text-align: center;
    color: #666;
    font-style: italic;
    margin: 0;
    padding: 1em;
}

.player-checkbox-item {
    display: flex;
    align-items: center;
    padding: 0.5em;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.player-checkbox-item:last-child {
    border-bottom: none;
}

.player-checkbox-item:hover {
    background-color: #f8f9fa;
}

.player-checkbox-item input[type="checkbox"] {
    margin-right: 0.75em;
    transform: scale(1.2);
}

.player-checkbox-item input[type="number"] {
    width: 60px;
    margin-left: auto;
    text-align: center;
    padding: 0.25em;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.player-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.player-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25em;
}

.player-price {
    font-size: 0.9em;
    color: #666;
}

/* Total section styling */
.total-section {
    margin-top: 1em;
    padding: 1em;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-align: center;
}

.total-section .pool-price {
    margin-bottom: 0;
}

/* Add to cart button for multiple items */
.multiple-add-to-cart-button {
    width: 100%;
    display: block;
    background: #0071a1;
    color: #fff;
    border: none;
    padding: 0.8em 1.2em;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s ease;
    cursor: pointer;
    margin-top: 1em;
}

.multiple-add-to-cart-button:hover {
    background: #005f85;
    color: #fff;
}

.multiple-add-to-cart-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 113, 161, 0.3);
}

.multiple-add-to-cart-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.multiple-add-to-cart-button.success {
    background: #28a745;
}

/* Responsive design for checkboxes */
@media (max-width: 600px) {
    .player-checkbox-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .player-checkbox-item input[type="number"] {
        margin-left: 0;
        margin-top: 0.5em;
        width: 80px;
    }
    
    .players-checkbox-container {
        max-height: 250px;
    }
}

/* Nonce error styling */
.pool-nonce-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    padding: 20px;
    margin: 20px 0;
    border: 2px solid #f5c6cb;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.pool-nonce-error::before {
    content: "⚠️";
    font-size: 24px;
    display: block;
    margin-bottom: 10px;
}

.pool-nonce-error p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.4;
}

.pool-nonce-error p:first-of-type {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.pool-nonce-error button {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 15px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.pool-nonce-error button:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.4);
}

.pool-nonce-error button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

/* Animation for nonce error appearance */
.pool-nonce-error {
    animation: slideInDown 0.3s ease-out;
}

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

/* Nonce notification styling */
.pool-nonce-notification {
    padding: 12px 20px;
    margin: 15px 0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: slideInDown 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

.pool-nonce-notification::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.pool-nonce-notification.pool-nonce-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.pool-nonce-notification.pool-nonce-success::before {
    background: #28a745;
}

.pool-nonce-notification.pool-nonce-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.pool-nonce-notification.pool-nonce-info::before {
    background: #17a2b8;
}

.pool-nonce-notification.pool-nonce-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.pool-nonce-notification.pool-nonce-error::before {
    background: #dc3545;
}

.pool-nonce-notification span {
    flex: 1;
    margin-right: 10px;
}

.pool-nonce-notification .notification-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.pool-nonce-notification .notification-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
}
