.agenwebsite-hide {
    display: none !important;
}

#agenwebsite_billing_city_field .optional {
    display: none;
}

.wc-block-components-agenwebsite_shipping_city-form__agenwebsite_shipping_city .select2-container {
    border: 0;
    font-size: 1em !important;
    padding: 1.5em .5em 0;
    margin: 0;
}

.wc-block-components-agenwebsite_shipping_city-form__agenwebsite_shipping_city .select2-container--default.select2-container--focus .select2-selection--multiple,
.wc-block-components-agenwebsite_shipping_city-form__agenwebsite_shipping_city .select2-container .select2-dropdown, .wc-block-components-agenwebsite_shipping_city-form__agenwebsite_shipping_city .select2-container .select2-selection{
    border: 0;
}

.wc-block-components-agenwebsite_shipping_city-form__agenwebsite_shipping_city {
    border: 1px solid hsla(0,0%,7%,.8);
    border-radius: 4px;
    flex: 0 0 100% !important;
    padding-bottom: 5px;
}

.wc-block-components-agenwebsite_shipping_city-form__agenwebsite_shipping_city .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    padding: 0;
}

.agenwebsite-warning-message {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    padding: 1em;
    margin: 1em 0;
    border-radius: 4px;
}

.agenwebsite-warning-message a {
    color: blue;
    text-decoration: underline;
}

/* City Search Popup Styles */
.aw-city-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.aw-city-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.aw-city-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    height: 70vh;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10000;
    display: flex;
    flex-direction: column;
}

.aw-city-popup-overlay.show .aw-city-popup {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.aw-city-popup-header {
    padding: 20px 20px 10px;
    border-bottom: 1px solid #eee;
    position: relative;
    flex: none;
}

.aw-city-popup-title {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.aw-city-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 5px;
    line-height: 1;
}

.aw-city-popup-close:hover {
    color: #333;
}

.aw-city-search-input {
    width: 93%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s ease;
}

.aw-city-search-input:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.aw-city-popup-body {
    padding: 0;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.aw-city-results {
    list-style: none;
    margin: 0;
    padding: 0;
}

.aw-city-result-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.aw-city-result-item:hover {
    background-color: #f8f9fa;
}

.aw-city-result-item:last-child {
    border-bottom: none;
}

.aw-city-result-text {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.aw-city-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.aw-city-loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: aw-spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes aw-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.aw-city-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

.aw-city-input-trigger {
    cursor: pointer;
    position: relative;
}

.aw-city-input-trigger:after {
    content: '🔍';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0.6;
}

/* Mobile Compatibility */
@media (max-width: 768px) {
    .aw-city-popup {
        width: 95%;
        height: 80vh;
        top: 10vh;
        transform: translateX(-50%);
    }
    
    .aw-city-popup-overlay.show .aw-city-popup {
        transform: translateX(-50%) scale(1);
    }
    
    .aw-city-popup-header {
        padding: 15px 15px 10px;
    }
    
    .aw-city-popup-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .aw-city-search-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .aw-city-result-item {
        padding: 12px 15px;
    }
    
    .aw-city-result-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .aw-city-popup {
        width: 98%;
        margin: 0;
        border-radius: 0;
        top: 0;
        height: 100vh;
        transform: translateX(-50%);
    }
    
    .aw-city-popup-overlay.show .aw-city-popup {
        transform: translateX(-50%) scale(1);
    }
}