/* Wishlist Login Modal */
#wh-wishlist-login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

#wh-wishlist-login-modal:not(:empty) {
    visibility: visible;
    opacity: 1;
}

#wh-wishlist-login-modal .wh-modal-content {
    background-color: #fff;
    height: auto;
    width: 450px;
    max-width: 95vw;
    max-height: 80vh;
    overflow: auto;
    position: relative;
    padding: 15px;
    border: 3px solid #e0e0e0;
    box-shadow: 3px 3px 5px 0 #000000;
    animation: slideIn 0.3s ease-out;
}

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

#wh-wishlist-login-modal .wh-modal-close {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 20px;
    padding: 5px 5px 0;
    cursor: pointer;
}

#wh-wishlist-login-modal #main-body {
    text-align: center;
}

#wh-wishlist-login-modal #login-body {
    display: none;
}

#wh-wishlist-login-modal .wh-modal-icon {
    margin-bottom: 10px;
    margin-top: 5px;
    font-size: 48px;
    color: #d32f2f;
}

#wh-wishlist-login-modal .wh-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

#wh-wishlist-login-modal .wh-modal-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0 0 30px 0;
    line-height: 1.5;
}

#wh-wishlist-login-modal .wh-modal-btn {
    width: 100%;
    margin-bottom: 0;
}

#wh-wishlist-login-modal .wh-modal-divider {
    font-size: 12px;
    color: #999;
    margin: 10px 0;
    position: relative;
}

#wh-wishlist-login-modal .wh-modal-divider::before,
#wh-wishlist-login-modal .wh-modal-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background-color: #ddd;
}

#wh-wishlist-login-modal .wh-modal-divider::before {
    left: 0;
}

#wh-wishlist-login-modal .wh-modal-divider::after {
    right: 0;
}

/* Login Form Styles */
#wh-wishlist-login-modal .wh-login-error {
    text-align: center;
    background: #f9f9f9;
    border: 1px solid #d3d3d3;
    border-radius: 3px;
    padding: 20px 5px;
    margin-bottom: 15px;
}

#wh-wishlist-login-modal .wh-login-form {
    margin: 20px 0;
}

#wh-wishlist-login-modal .wh-form-group {
    margin-bottom: 15px;
}

#wh-wishlist-login-modal .wh-form-input {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 2px;
    color: #2b2b2b;
    padding: 8px 10px 8px;
    box-sizing: border-box;
    transition: border-color 0.2s;
    background: none repeat scroll 0 0 #fff;
}

#wh-wishlist-login-modal .wh-form-input:focus {
    outline: 0 none;
    border: 1px solid rgba(0, 0, 0, .3);
}

#wh-wishlist-login-modal .wh-checkbox-group {
    text-align: left;
    margin: 15px 0;
}

#wh-wishlist-login-modal .wh-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

#wh-wishlist-login-modal .wh-checkbox-input {
    margin-right: 8px;
    cursor: pointer;
}

#wh-wishlist-login-modal #modal-sumbit-login-btn{
    margin-bottom: 10px;
}

#wh-wishlist-login-modal .wh-login-links {
    margin: 15px 0;
    font-size: 13px;
    text-align: center;
}

#wh-wishlist-login-modal .wh-forgot-password-link,
#wh-wishlist-login-modal .wh-register-link {
    color: #d32f2f;
    text-decoration: none;
    transition: color 0.2s;
}

#wh-wishlist-login-modal .wh-forgot-password-link:hover,
#wh-wishlist-login-modal .wh-register-link:hover {
    color: #b71c1c;
    text-decoration: underline;
}

#wh-wishlist-login-modal .wh-link-separator {
    margin: 0 8px;
    color: #999;
}

#wh-wishlist-login-modal .wh-back-button {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 13px;
    padding: 8px 0;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

#wh-wishlist-login-modal .wh-back-button:hover {
    color: #333;
}

#wh-wishlist-login-modal .wh-back-button span {
    font-size: 14px;
}

/* Responsive */
@media (max-width: 600px) {
    #wh-wishlist-login-modal .wh-modal-content {
        width: 95%;
    }

    #wh-wishlist-login-modal .wh-modal-title {
        font-size: 18px;
    }
}


#container_load_more #load-wishlist-products{
    margin: 0 0 30px;
    position: relative;
}
#container_load_more #load-wishlist-products.loading{
    pointer-events: none;
    opacity: 0.5;
}
#container_load_more #load-wishlist-products.loading:after{
    content: "";
    position: absolute;
    top: 1em;
    right: 0.9em;
    width: 1.1em;
    --b: 2px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #ffffff;
    -webkit-mask: repeating-conic-gradient(#0000 0deg, #000 1deg 70deg, #0000 71deg 90deg), radial-gradient(farthest-side, #0000 calc(100% - var(--b) - 1px), #000 calc(100% - var(--b)));
    -webkit-mask-composite: destination-in;
    mask-composite: intersect;
    animation: l6 1s infinite;
}
