.wcacp-access-code-form {
    margin: 20px 0;
    padding: 25px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
}

.wcacp-access-code-notice {
    background: #fff8e5;
    border-left: 4px solid #ffb300;
    padding: 15px;
    margin-bottom: 20px;
}

.wcacp-access-code-notice h3 {
    margin-top: 0;
    color: #23282d;
}

.wcacp-code-form {
    margin-top: 20px;
}

.wcacp-code-input-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.wcacp-code-input {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    min-width: 250px;
    flex: 1;
    max-width: 300px;
}

.wcacp-submit-button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-transform: none;
}

.wcacp-submit-button:hover {
    background: #45a049;
}

.wcacp-success-message {
    background: #d1f0d1;
    border: 1px solid #46b450;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.wcacp-restricted-notice {
    color: #666;
    font-size: 0.9em;
    margin-top: 10px;
    text-align: center;
}

/* For shop/archive pages */
.woocommerce-loop-product__footer .wcacp-restricted-notice {
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .wcacp-code-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .wcacp-code-input {
        max-width: 100%;
        margin-bottom: 10px;
    }
    
    .wcacp-submit-button {
        width: 100%;
    }
}

/* Force display for Divi */
.et_pb_wc_add_to_cart .wcacp-access-code-form,
.et_pb_module .wcacp-access-code-form,
.single-product .wcacp-access-code-form {
    display: block !important;
    margin: 20px 0;
    padding: 25px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
}

/* Ensure form is visible even if Divi hides it */
.single-product div[class*="et_pb"] .wcacp-access-code-form {
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
}

/* Style the notice */
.wcacp-access-code-notice {
    background: #fff8e5;
    border-left: 4px solid #ffb300;
    padding: 15px;
    margin-bottom: 20px;
}

.wcacp-access-code-notice h3 {
    margin-top: 0;
    color: #23282d;
}

/* Input styling */
.wcacp-code-input {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    min-width: 250px;
    margin-right: 10px;
}

.wcacp-submit-button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.wcacp-submit-button:hover {
    background: #45a049;
}