/* EPO Form Container */
.epo-form-container {
    margin: 2em 0;
    padding: 1.5em;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    max-width: 1200px;
}

/* Options Grid */
.epo-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5em;
    margin: 1.5em 0;
}

.epo-option {
    border: 1px solid #eee;
    padding: 1em;
    border-radius: 4px;
    background: white;
    transition: all 0.2s ease;
    position: relative;
}

.epo-option:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.epo-option.selected {
    border-color: #a7c6df;
    background: #f0f7fd;
}

.epo-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.epo-option label {
    display: block;
    cursor: pointer;
}

.epo-option img {
    max-width: 100%;
    height: auto;
    margin-bottom: 0.5em;
    border-radius: 3px;
}

.epo-option h4 {
    margin: 0.5em 0;
    color: #333;
}

.epo-option p {
    color: #666;
    font-size: 0.9em;
    margin: 0.5em 0 0;
}

.epo-option input[type="checkbox"]:checked + label:after {
    content: "✓";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #4CAF50;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Selection Counter */
.epo-selection-counter {
    font-weight: bold;
    margin: 1em 0;
    padding: 0.5em;
    background: #f5f5f5;
    border-radius: 3px;
    text-align: center;
}

/* Confirmation Modal */
.epo-confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.epo-modal-content {
    background: white;
    padding: 2em;
    border-radius: 4px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.epo-modal-content h3 {
    margin-top: 0;
    color: #333;
}

.epo-modal-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5em;
    gap: 1em;
}

.epo-modal-buttons .button {
    flex: 1;
    text-align: center;
}

/* Cutoff Info */
.epo-cutoff-info {
    background: #fff8e5;
    padding: 1em;
    border-left: 4px solid #ffc107;
    margin: 1em 0;
    border-radius: 3px;
}

.epo-cutoff-info p {
    margin: 0;
}

/* Unavailable Notice */
.epo-unavailable-notice {
    background: #ffebee;
    padding: 1em;
    border-left: 4px solid #f44336;
    margin: 1em 0;
    border-radius: 3px;
}

.epo-unavailable-notice p {
    margin: 0 0 0.5em;
}

.epo-unavailable-notice ul {
    margin: 0.5em 0 0.5em 1.5em;
    padding: 0;
}

/* Save Button */
.epo-save-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 0.75em 1.5em;
    font-size: 1em;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
}

.epo-save-button:hover {
    background-color: #3e8e41;
}

.epo-save-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Countdown Timer */
.epo-countdown-timer {
    font-weight: bold;
    margin-top: 0.5em;
    color: #d32f2f;
}



/* Product Page Styles */
.epo-product-page-wrapper {
    margin: 2em 0;
    padding: 1.5em;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #f9f9f9;
}

.epo-product-form-container h3 {
    margin-top: 0;
    color: #333;
}

/* Make sure checkboxes work on product page */
.epo-product-form-container .epo-option input[type="checkbox"]:checked + label:after {
    content: "✓";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #4CAF50;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}


/* 3-Column Grid Layout */
.epo-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Quantity Selector Styles */
.epo-quantity-selector {
    margin-top: 10px;
    display: flex;
    align-items: center;
}

.epo-quantity-selector label {
    margin-right: 8px;
    font-size: 0.9em;
}

.epo-quantity-selector input {
    width: 60px;
    padding: 5px;
    text-align: center;
}

/* Make product and account forms consistent */
.epo-product-form-container,
.epo-account-form-container {
    margin: 2em 0;
    padding: 1.5em;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    max-width: 1200px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .epo-options-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .epo-options-grid {
        grid-template-columns: 1fr;
    }
}