/* ZIP Code Modal */
.hg-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hg-modal.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.hg-modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hg-modal h2 {
    font-size: 28px;
    color: #100F0C;
    line-height: 34px;
    font-weight: 500;
    margin-bottom: 30px;
    margin-top: 20px;
}
.hg-modal label {
    font-size: 14px;
    color: #100F0C;
    line-height: 17px;
    font-weight: 400;
    margin-bottom: 8px;
}

.hg-modal p {
    color: #666;
    margin: 0;
}

.hg-zip-form {
    margin-top: 0;
}
.hg-zip-form p.text-center {
    text-align: center;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    color: #100F0C;
}

.hg-form-group {
    display: flex;
    gap: 10px;
    margin-bottom:20px;
}

.hg-form-group input {
    flex: 1;
    padding: 10px;
    border: 1px solid #D2CFAE;
    outline: 0;
    border-radius: 4px;
    font-size: 16px;
    box-shadow: none !important;
}
.hg-form-group input:focus {
    outline: 0;
    box-shadow: none !important;
    border: 1px solid #D2CFAE !important;
}

.hg-use-location {
    padding: 10px 15px;
    background-color: #D2CFAE;
    border: 0;
    outline: 0;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: #445D36;
    transition: background-color 0.2s;
}
.hg-use-location:hover {
    background-color: #C9B68C;
    color: #445D36;
    border: 0;
    box-shadow: none;
}
.hg-use-location:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.hg-form-actions {
    text-align: center;
}
.hg-submit {
    padding: 10px 20px;
    background-color: #445D36;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    transition: background-color 0.2s;
}
.hg-submit:hover {
    background-color: #8B9479;
    color: #fff;
    border: 0;
    box-shadow: none;
}

.error-message {
    color: #dc3232;
    margin-top: 10px;
    display: none;
    padding: 10px;
    background-color: #f8f8f8;
    border-radius: 4px;
    border-left: 4px solid #dc3232;
}

/* Menu styles */
#menu-item-9681 .text,
#menu-item-9682 .text {
    font-weight: 500;
}

#menu-item-9682 a.disable-link {
    /* opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none; */
}

#menu-item-9682 a:not(.disable-link) {
    color: #0073aa;
    text-decoration: underline;
    cursor: pointer;
}

#menu-item-9682 a:not(.disable-link):hover {
    color: #005177;
}

/* ZIP code display styles */
.hg-zip-display {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background-color: #f8f8f8;
    border-radius: 4px;
    font-size: 14px;
}

.hg-zip-display .zip-code {
    font-weight: bold;
}

.hg-zip-display .change-zip {
    color: #0073aa;
    text-decoration: underline;
    cursor: pointer;
}

/* Responsive styles */
@media (max-width: 480px) {
    .hg-form-group {
        flex-direction: column;
    }

    .hg-use-location {
        width: 100%;
    }

    .hg-modal-content {
        width: 95%;
        padding: 20px;
    }
} 

/* .no-categories-found {
    padding: 0 5px 0 5px;
} */

.no-categories-found .woocommerce-info {
    padding: 10px 15px;
    background-color: #f8f8f8;
    border-radius: 4px;
}

/* Close Button Styles */
.hg-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px !important;
    cursor: pointer;
    color: #888;
    padding: 5px;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

/* .hg-modal-close:hover,
.hg-modal-close:focus {
    color: #000;
    outline: none;
} */

.hg-modal-close span {
    display: block;
    margin-top: -2px; /* Optical adjustment for the × symbol */
}

.hg-or-divider {
    display: flex;
    align-items: center;
    margin: 5px 0;
    color: #363535;
    
}

.hg-or-divider::before,
.hg-or-divider::after {
    content: "";
    flex: 1;
    /* border-bottom: 1px solid #ddd;*/
} 

.hg-or-text {
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    font-weight: bolder;
}

.hg-cart-distance {
    display: block;
    font-size: 0.9em;
    margin-top: 4px;
    color: #865837;
}
