/* WP Accept Terms Modal Styles */
.wp-accept-terms-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.wp-accept-terms-modal-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

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

.wp-accept-terms-modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e1e5e9;
    position: relative;
    overflow: hidden;
}

.wp-accept-terms-modal-header h2 {
    margin: 0;
    color: #1d2327;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
}

.wp-accept-terms-modal-header h3 {
    margin: 0;
    color: #1d2327;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    display: inline-block;
}

.wp-accept-terms-modal-close {
    float: right;
    background: none;
    border: none;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 1;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.wp-accept-terms-modal-close:hover {
    background-color: #f0f0f1;
    color: #1d2327;
}

.wp-accept-terms-modal-body {
    padding: 16px 24px 24px;
    line-height: 1.6;
    color: #50575e;
}

.wp-accept-terms-modal-body p {
    margin: 0 0 16px 0;
}

.wp-accept-terms-modal-body p:last-child {
    margin-bottom: 0;
}

.wp-accept-terms-modal-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid #e1e5e9;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.wp-accept-terms-modal-footer button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.wp-accept-terms-accept {
    background-color: #0073aa;
    color: white;
}

.wp-accept-terms-accept:hover {
    background-color: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.wp-accept-terms-accept:active {
    transform: translateY(0);
}

.wp-accept-terms-reject {
    background-color: #dc3232;
    color: white;
}

.wp-accept-terms-reject:hover {
    background-color: #b32d2e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 50, 50, 0.3);
}

.wp-accept-terms-reject:active {
    transform: translateY(0);
}

.wp-accept-terms-modal-footer button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Page Mode Styles */
.wp-accept-terms-page {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.wp-accept-terms-page h1 {
    color: #1d2327;
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 32px 0;
    text-align: center;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 16px;
}

.wp-accept-terms-content {
    margin-bottom: 40px;
    line-height: 1.7;
    color: #50575e;
    font-size: 16px;
}

.wp-accept-terms-content p {
    margin: 0 0 20px 0;
}

.wp-accept-terms-content p:last-child {
    margin-bottom: 0;
}

.wp-accept-terms-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.wp-accept-terms-buttons button {
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wp-accept-terms-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .wp-accept-terms-modal-header,
    .wp-accept-terms-modal-body,
    .wp-accept-terms-modal-footer {
        padding: 20px;
    }
    
    .wp-accept-terms-modal-header h2 {
        font-size: 20px;
    }
    
    .wp-accept-terms-modal-footer {
        flex-direction: column;
    }
    
    .wp-accept-terms-modal-footer button {
        width: 100%;
    }
    
    .wp-accept-terms-page {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .wp-accept-terms-page h1 {
        font-size: 24px;
    }
    
    .wp-accept-terms-buttons {
        flex-direction: column;
    }
    
    .wp-accept-terms-buttons button {
        width: 100%;
    }
}



/* Checkbox Styles */
.wp-accept-terms-checkbox {
    margin: 15px 0;
    padding: 10px;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    background: #f9f9f9;
}

.wp-accept-terms-checkbox label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

.wp-accept-terms-checkbox-input {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.wp-accept-terms-checkbox-label {
    color: #50575e;
    font-weight: 500;
}

.wp-accept-terms-checkbox-required {
    border-left: 3px solid #0073aa;
    background: #f0f8ff;
}

.wp-accept-terms-checkbox-required .wp-accept-terms-checkbox-label::after {
    content: ' *';
    color: #dc3232;
    font-weight: bold;
}

/* Disabled Accept Button */
.wp-accept-terms-accept.disabled,
.wp-accept-terms-accept:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #8c8f94 !important;
    transform: none !important;
    box-shadow: none !important;
}

.wp-accept-terms-accept.disabled:hover,
.wp-accept-terms-accept:disabled:hover {
    background-color: #8c8f94 !important;
    transform: none !important;
    box-shadow: none !important;
}
