.avag-popup {
    display: none; /* trebuie să fie ascuns la start */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 999999;
    overflow: auto;
}

.avag-popup-content {
    position: relative;
    background: white;
    padding: 30px 30px 20px 30px;
    border-radius: 10px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    text-align: center;
    font-family: sans-serif;
	border: 1px solid #cc3300
}

/* Buton X */
.avag-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
    transition: color 0.3s;
}

.avag-close:hover {
    color: #cc3300;
}

.avag-tabs {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.avag-tab {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    border-radius: 5px;
}

.avag-tab.active {
    border-bottom: 2px solid #cc3300;
    font-weight: bold;
    background: #f0f0f0;
}

.avag-tab:hover {
    background: #e0e0e0;
    border-bottom: 2px solid #cc3300;
}

#avag-localitate {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
}

#avag-save {
    padding: 10px 20px;
    background: #cc3300; /* culoarea dorită */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 15px;
    transition: background 0.3s;
}

#avag-save:hover {
    background: #a32a00; /* hover mai închis */
}

.avag-contact-msg {
    font-size: 14px;
    color: #333;
}

.avag-contact-msg a {
    color: #0073aa;
    text-decoration: none;
    margin-left: 5px;
}

/* Buton flotant pentru schimbare zonă */
.avag-floating-btn {
    position: fixed;
    bottom: 160px;
    right: 20px;
    background: #cc3300;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(204, 51, 0, 0.4);
    z-index: 1001;
    transition: all 0.3s ease;
    overflow: hidden;
}

.avag-floating-btn:hover {
    background: #a32a00;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(204, 51, 0, 0.6);
}

.avag-floating-btn svg {
    width: 28px;
    height: 28px;
    margin-bottom: 2px;
}

.avag-floating-btn .avag-floating-text {
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    line-height: 1;
    max-width: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Animație pentru butonul flotant */
@keyframes avag-pulse {
    0% {
        box-shadow: 0 4px 12px rgba(204, 51, 0, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(204, 51, 0, 0.8);
    }
    100% {
        box-shadow: 0 4px 12px rgba(204, 51, 0, 0.4);
    }
}

.avag-floating-btn:not(:hover) {
    animation: avag-pulse 2s infinite;
}

/* Stiluri pentru câmpurile disabled */
.avag-disabled-field {
    background-color: #f5f5f5 !important;
    cursor: not-allowed !important;
    opacity: 0.7;
    border: 1px solid #ddd !important;
}

.avag-disabled-field:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Tooltip pentru câmpurile disabled */
.avag-disabled-field::after {
    content: "Folosiți butonul flotant pentru a schimba zona";
    position: absolute;
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

/* Responsive pentru mobil */
@media (max-width: 768px) {
    .avag-floating-btn {
        width: 60px;
        height: 60px;
        bottom: 165px;
        right: 20px;
    }
    
    .avag-floating-btn svg {
        width: 24px;
        height: 24px;
    }
    
    .avag-floating-btn .avag-floating-text {
        font-size: 9px;
        max-width: 45px;
    }
}

/* Stiluri pentru containerele shipping în WooCommerce Blocks Checkout */
.wc-block-components-text-input.wc-block-components-address-form__city,
.wc-block-components-address-form__city,
.wc-block-components-address-form__state,
.wc-block-components-state-input {
    cursor: pointer !important;
    position: relative;
}

/* Adaugă overlay transparent peste câmpurile disabled pentru a le face clickable */
.wc-block-components-address-form__city::after,
.wc-block-components-address-form__state::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    cursor: pointer;
}

/* Stiluri pentru input/select disabled - cursor pointer */
input#shipping-city.avag-disabled-field,
select#shipping-state.avag-disabled-field,
.wc-blocks-components-select__select.avag-disabled-field {
    cursor: pointer !important;
    pointer-events: none;
}

/* Container parent să permită click-uri */
.wc-block-components-text-input.wc-block-components-address-form__city *,
.wc-block-components-address-form__state * {
    pointer-events: none;
}

.wc-block-components-text-input.wc-block-components-address-form__city,
.wc-block-components-address-form__state {
    pointer-events: all !important;
}

/* Highlight la hover pentru feedback vizual */
.wc-block-components-address-form__city:hover,
.wc-block-components-address-form__state:hover {
    background-color: #f9f9f9;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

/* Icon indicator pentru câmpurile clickable */
.wc-block-components-address-form__city::before,
.wc-block-components-address-form__state::before {
    content: '📍';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 11;
    font-size: 16px;
    opacity: 0.6;
    pointer-events: none;
}
