/* =====================================================
   register-modal.css
   ===================================================== */

/* ── OVERLAY ── */
.sl-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

.sl-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* ── MODAL CARD ── */
.sl-modal {
    background: #fff;
    border-radius: 12px;
    padding: 32px 36px 28px;
    width: 100%;
    max-width: 430px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
    transform: translateY(16px);
    transition: transform .28s ease;
}

.sl-overlay.is-open .sl-modal {
    transform: translateY(0);
}


.sl-already-account {
    text-align: center;
    font-size: 14px;
    color: #444;
    margin-bottom: 22px;
}

.sl-login-link {
    color: black;
    text-decoration: underline;
    font-weight: 600;
    display: inline-block;
    line-height: 1.7;
    transition: border-color .15s;
}

.sl-login-link:hover {
    border-color: #555;
    color: #000;
}


.woocommerce-form.woocommerce-form-register {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-form-row {
    margin-bottom: 0;
}

.woocommerce-Input--text {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: 13px;
    color: #333;
    background: #f2f3f5;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px !important;
    outline: none;
    transition: border-color .2s, background .2s;
    margin-bottom: 12px;
    font-family: inherit;
}

.woocommerce-Input--text::placeholder {
    color: #999;
    font-size:13px;
}

.woocommerce-Input--text:focus {
    border-color: #4a90e2;
    background: #f7faff;
}


.sl-input-wrap {
    position: relative;
    display: block;
}

.sl-input-wrap .woocommerce-Input--text {
    padding-right: 44px;
}

.sl-eye-btn {
    margin: 0px;
    position: absolute;
    right: 12px;
    top: 60%;
    transform: translateY(-62%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #aaa;
    display: flex;
    align-items: center;
    transition: color .15s;
}

.sl-eye-btn:hover {
    color: #555;
}

.sl-eye-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}


.sl-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    margin-bottom: 12px;
    user-select: none;
}

.sl-checkbox {
    display: none;
}

.sl-checkbox-box {
    width: 16px;
    height: 16px;
    min-width: 16px;
    border: 1.5px solid #bbb;
    border-radius: 3px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s, border-color .15s;
}

.sl-checkbox:checked+.sl-checkbox-box {
    background: #e74c3c;
    border-color: #e74c3c;
}

.sl-checkbox:checked+.sl-checkbox-box::after {
    content: '';
    width: 9px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
}


.sl-terms-text {
    font-size: 12.5px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 14px;
}

.sl-terms-text a {
    color: #3498db;
    text-decoration: none;
}

.sl-terms-text a:hover {
    text-decoration: underline;
}


.sl-error-msg {
    display: block;
    color: #e53935;
    font-size: 13px;
    text-align: center;
    margin-bottom: 12px;
    animation: sl-fadeIn .2s ease;
}

.sl-error-msg[hidden] {
    display: none;
}

@keyframes sl-fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ── Footer ── */
.sl-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.woocommerce-LostPassword a {
    font-size: 13px;
    color: #666;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.woocommerce-LostPassword a:hover {
    color: #111;
}

.sl-footer-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sl-btn-cancel {
    background: none;
    border: none;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    padding: 8px 4px;
    font-family: inherit;
    transition: color .15s;
}

.sl-btn-cancel:hover {
    color: #111;
}

.sl-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 10px 26px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s, transform .1s;
}

.sl-btn-submit:hover {
    background: #c0392b;
}

.sl-btn-submit:active {
    transform: scale(.97);
}

.sl-btn-submit:disabled {
    opacity: .85;
    cursor: not-allowed;
}

/* ── Dot spinner ── */
.sl-dot-spinner {
    position: relative;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.sl-dot-spinner span {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #fff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    animation: sl-dot-fade 1s linear infinite;
}

.sl-dot-spinner span:nth-child(1) {
    transform: rotate(0deg) translateY(-6px);
    animation-delay: -0.875s;
}

.sl-dot-spinner span:nth-child(2) {
    transform: rotate(45deg) translateY(-6px);
    animation-delay: -0.750s;
}

.sl-dot-spinner span:nth-child(3) {
    transform: rotate(90deg) translateY(-6px);
    animation-delay: -0.625s;
}

.sl-dot-spinner span:nth-child(4) {
    transform: rotate(135deg) translateY(-6px);
    animation-delay: -0.500s;
}

.sl-dot-spinner span:nth-child(5) {
    transform: rotate(180deg) translateY(-6px);
    animation-delay: -0.375s;
}

.sl-dot-spinner span:nth-child(6) {
    transform: rotate(225deg) translateY(-6px);
    animation-delay: -0.250s;
}

.sl-dot-spinner span:nth-child(7) {
    transform: rotate(270deg) translateY(-6px);
    animation-delay: -0.125s;
}

.sl-dot-spinner span:nth-child(8) {
    transform: rotate(315deg) translateY(-6px);
    animation-delay: 0.000s;
}

@keyframes sl-dot-fade {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0.1;
    }
}

.register-form-wrap {
    text-align: center;
}

.sl-btn {
    margin: 0px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
}

.sl-eye-icon path {
    stroke: black !important;

}