/**
 * Frontend styles for Gutz Location Filter
 */

/* Location Bar Styles */
#glf-location-bar {
    background: #0d49fd;
    color: #fff;
    padding: 20px 0;
    position: relative;
    z-index: 999;
    box-sizing: border-box;
}

#glf-location-bar.glf-location-bar-top {
    position: relative;
    top: 0;
}

#glf-location-bar.glf-location-bar-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
}

.glf-location-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.glf-location-form {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.glf-location-label {
    font-weight: 600;
    white-space: nowrap;
    margin: 0;
    color: inherit;
}

.glf-location-select {
    min-width: 200px;
    padding: 8px 12px;
    border-radius: 6px;
    border: none;
    background: #fff;
    color: #333;
    outline: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.glf-location-select:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.glf-location-select:hover {
    background: #f8f9fa;
}

/* Modal Styles */
.glf-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: glfFadeIn 0.3s ease-out;
}

.glf-modal-overlay-close {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.glf-modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: glfSlideIn 0.3s ease-out;
}

.glf-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    text-decoration: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.glf-modal-close:hover {
    color: #666;
    background-color: #f5f5f5;
    text-decoration: none;
}

.glf-modal-header {
    padding: 25px 25px 15px 25px;
    border-bottom: 1px solid #eee;
}

.glf-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.glf-modal-body {
    padding: 20px 25px;
}

.glf-modal-body p {
    margin: 0 0 15px 0;
    color: #666;
    line-height: 1.6;
}

.glf-removed-products-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.glf-removed-products-list li {
    padding: 8px 0;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.glf-removed-products-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.glf-removed-products-list li:first-child {
    padding-top: 0;
}

.product-name {
    font-weight: 500;
    color: #333;
}

.product-quantity {
    color: #666;
    font-size: 14px;
}

.glf-modal-footer {
    padding: 15px 25px 25px 25px;
    text-align: right;
}

.glf-continue-shopping {
    background: #0d49fd;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    min-width: 140px;
    text-align: center;
}

.glf-continue-shopping:hover {
    background: #0a3dd1;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 73, 253, 0.3);
}

/* Animations */
@keyframes glfFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes glfSlideIn {
    from { 
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    #glf-location-bar {
        padding: 15px 0;
    }
    
    .glf-location-inner {
        padding: 0 15px;
    }
    
    .glf-location-form {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .glf-location-label {
        font-size: 14px;
    }
    
    .glf-location-select {
        min-width: 180px;
        width: 100%;
        max-width: 250px;
    }
    
    .glf-modal-overlay {
        padding: 10px;
    }
    
    .glf-modal-content {
        max-width: 100%;
        margin: 0;
    }
    
    .glf-modal-header,
    .glf-modal-body,
    .glf-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .glf-removed-products-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}
