:root {
    --lc-brand: #399535;
    --lc-brand-dark: #2e7d2a;
    --lc-brand-soft: rgba(57, 149, 53, 0.12);
}

div#lc-user-zip {
    border: 2px solid var(--lc-brand);
    border-radius: 50px;
    padding: 2px 15px;
    color: var(--lc-brand);
}


/* Overlay */
#lc-zip-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 9999;
}

/* Modal box */
.lc-modal-content {
    background: #ffffff;
    max-width: 720px;
    /* margin: 8% auto; */
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}




/* Close button */
.lc-close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 22px;
    cursor: pointer;
    z-index: 10;
    color: #333;
}

/* Inner layout */
.lc-modal-inner {
    display: flex;
    min-height: 450px;
}

/* Left image */
.lc-modal-image {
    width: 45%;
    background-image: url("http://esnaturalbarcelona.com/wp-content/uploads/2026/02/esnatural-location.webp");
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Smooth image blend */
.lc-modal-image::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 90px;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(57, 149, 53, 0.05),
        #ffffff
    );
}

/* Right side content */
.lc-modal-right {
    width: 55%;
    padding: 42px 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Heading */
.lc-modal-right h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #1f1f1f;
}

.lc-modal-right h3::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    background: var(--lc-brand);
    margin-top: 8px;
    border-radius: 4px;
}

/* Description text */
/* ZIP modal message styling */
.lc-subtext {
    margin-bottom: 16px;
    line-height: 1.5;
}

.lc-line-primary {
    font-size: 14px;
    display: block;
    font-weight: 600;
    color: #1f2937; /* dark readable */
}

.lc-line-secondary {
    display: block;
    font-size: 16px;
    /* margin-top: 6px; */
    font-weight: 600;
    color: var(--lc-brand);
}




/* Input */
.lc-modal-right input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: 8px;
    border: 1px solid #d0d0d0;
    font-size: 14px;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.lc-modal-right input:focus {
    outline: none;
    border-color: var(--lc-brand);
    box-shadow: 0 0 0 3px var(--lc-brand-soft);
}

/* Primary button */
#lc-check-zip {
    background: var(--lc-brand);
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.15s ease;
}

#lc-check-zip:hover {
    background: var(--lc-brand-dark);
    /* transform: translateY(-1px); */
}

/* Secondary button */
#lc-remember-zip {
    background: transparent;
    color: var(--lc-brand);
    border: 1px solid var(--lc-brand);
    padding: 11px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

/* Message */
.lc-message {
    margin-top: 12px;
    font-size: 14px;
    color: #d63638;
}


/* Spinner inside button */
.button.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
    color: transparent !important;
    background-color: var(--lc-brand) !important;
}

.button.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid #fff; /* white spinner */
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}



/* Mobile responsive */
@media (max-width: 768px) {

    #lc-zip-modal {
        padding: 25px;
    }

    .lc-modal-inner {
        flex-direction: column;
    }

    .lc-modal-image {
        width: 100%;
        height: 180px;
    }

    .lc-modal-image::after {
        display: none;
    }

    .lc-modal-right {
        width: 100%;
        padding: 26px 24px;
    }
}
