/* Terms and Conditions Modal */
.lt-terms-checkbox-wrapper {
    margin: 20px 0;
    padding: 16px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.05) 0%, rgba(255, 152, 0, 0.02) 100%);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 8px;
}

.lt-terms-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--color-text);
}

.lt-terms-checkbox-label input[type="checkbox"] {
    margin-top: 4px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    min-width: 18px;
}

.lt-terms-link {
    color: #ffc107;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
    transition: color 0.2s ease;
}

.lt-terms-link:hover {
    color: #ffb347;
}

/* Modal Styles */
.lt-terms-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    animation: fadeIn 0.3s ease;
}

.lt-terms-modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lt-terms-modal {
    background: var(--color-bg-primary, #0b0e11);
    border-radius: 12px;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
    position: relative;
}

.lt-terms-modal h2 {
    margin: 0 0 24px 0;
    font-size: 24px;
    font-weight: 700;
    color: #ffc107;
    border-bottom: 2px solid rgba(255, 193, 7, 0.3);
    padding-bottom: 16px;
}

.lt-terms-modal h3 {
    margin: 24px 0 12px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
}

.lt-terms-modal p {
    margin: 0 0 12px 0;
    line-height: 1.8;
    color: var(--color-text-muted);
    font-size: 14px;
}

.lt-terms-modal ul {
    margin: 12px 0 12px 20px;
    padding-left: 0;
}

.lt-terms-modal li {
    margin-bottom: 8px;
    line-height: 1.8;
    color: var(--color-text-muted);
    font-size: 14px;
}

.lt-terms-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #ffc107;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.lt-terms-modal-close:hover {
    transform: rotate(90deg);
}

.lt-terms-modal-actions {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 193, 7, 0.2);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.lt-terms-modal-actions button {
    padding: 12px 24px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.lt-terms-modal-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.lt-terms-modal-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.lt-terms-modal-actions .btn-primary {
    background: #ffc107;
    color: #0b0e11;
}

.lt-terms-modal-actions .btn-primary:hover {
    background: #ffb347;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Scrollbar styling */
.lt-terms-modal::-webkit-scrollbar {
    width: 8px;
}

.lt-terms-modal::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.lt-terms-modal::-webkit-scrollbar-thumb {
    background: #ffc107;
    border-radius: 4px;
}

.lt-terms-modal::-webkit-scrollbar-thumb:hover {
    background: #ffb347;
}

/* Error state for unchecked checkbox */
.woocommerce-error[data-for="lt-terms-agree"],
.woocommerce .woocommerce-error li:has(.lt-terms-error) {
    color: #ff6b6b;
}

@media (max-width: 768px) {
    .lt-terms-modal {
        max-width: 90%;
        max-height: 90vh;
        padding: 24px;
    }

    .lt-terms-modal h2 {
        font-size: 20px;
    }

    .lt-terms-checkbox-label {
        font-size: 13px;
    }
}
