/* Registration Agreements Styles */

/* Registration Form Checkbox */
.wcsa-reg-agreements {
    margin-top: 20px !important;
}

.wcsa-reg-agreements label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.wcsa-reg-agreement-link {
    color: #0073aa;
    text-decoration: underline;
    cursor: pointer;
}

.wcsa-reg-agreement-link:hover {
    color: #005177;
}

/* Registration Agreement Modal */
.wcsa-reg-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wcsa-reg-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.wcsa-reg-modal-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    animation: wcsa-modal-slide-in 0.3s ease-out;
}

@keyframes wcsa-modal-slide-in {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wcsa-reg-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.wcsa-reg-modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: #333;
    flex: 1;
}

.wcsa-reg-modal-close,
.wcsa-social-modal-close {
    display: none;
}

.wcsa-reg-modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
}

.wcsa-reg-modal-body h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #333;
}

.wcsa-reg-modal-body p {
    margin-bottom: 15px;
}

.wcsa-reg-modal-body ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.wcsa-reg-modal-footer {
    padding: 15px 25px;
    border-top: 1px solid #e0e0e0;
    text-align: right;
}

.wcsa-loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* Social Login Consent Popup */
.wcsa-social-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wcsa-social-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.wcsa-social-popup-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    animation: wcsa-modal-slide-in 0.3s ease-out;
}

.wcsa-social-popup-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.wcsa-social-popup-header h2 {
    margin: 0;
    font-size: 22px;
    color: #333;
}

.wcsa-social-popup-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

.wcsa-social-agreements-list {
    margin: 20px 0;
}

.wcsa-social-agreement-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.wcsa-social-agreement-item:hover {
    background: #f8f9fa;
}

.wcsa-social-agreement-item input[type="checkbox"] {
    margin: 0;
}

.wcsa-social-agreement-link {
    color: #0073aa;
    text-decoration: underline;
    flex: 1;
}

.wcsa-social-agreement-link:hover {
    color: #005177;
}

.wcsa-social-accept-all {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.wcsa-social-accept-all label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    cursor: pointer;
}

.wcsa-social-popup-footer {
    padding: 15px 25px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.wcsa-social-popup-footer .button {
    padding: 12px 30px;
    font-size: 16px;
}

/* Mobile Responsive */
@media (max-width: 768px) {

    .wcsa-reg-modal-content,
    .wcsa-social-popup-content {
        width: 95%;
        max-height: 85vh;
        margin: 20px auto;
    }

    .wcsa-reg-modal-header,
    .wcsa-social-popup-header {
        padding: 15px 20px;
    }

    .wcsa-reg-modal-header h2,
    .wcsa-social-popup-header h2 {
        font-size: 18px;
    }

    .wcsa-reg-modal-body,
    .wcsa-social-popup-body {
        padding: 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {

    .wcsa-reg-modal-content,
    .wcsa-social-popup-content {
        width: 98%;
        max-height: 80vh;
        margin: 15px auto;
    }

    .wcsa-reg-modal-header,
    .wcsa-social-popup-header {
        padding: 12px 15px;
    }

    .wcsa-reg-modal-header h2,
    .wcsa-social-popup-header h2 {
        font-size: 16px;
    }

    .wcsa-reg-modal-body,
    .wcsa-social-popup-body {
        padding: 15px;
        font-size: 13px;
    }
}