/* ===========================================
   🌐 KULATÉ TLAČÍTKO (jen přes shortcode)
   =========================================== */

.sodew-regional-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    /* 🔥 zrušení kruhu */
    background: none;
    border: none;
    box-shadow: none;

    /* 🔥 velikost tlačítka podle obrázku */
    width: 48px;
    height: 48px;

    cursor: pointer;
    padding: 0;
    margin: 0 4px;

    transition: transform 0.2s ease-in-out;
}


.sodew-regional-btn:hover {
    transform: scale(1.08);
}


/* 🌍 Verze s textem (např. [sodew_regional_button label="Změnit jazyk"]) */
.sodew-regional-btn .sodew-label {
    margin-left: 8px;
    font-size: 15px;
    font-weight: 500;
}

/* 🌙 Minimalistická verze – jen ikona bez pozadí (např. do menu) */
.sodew-regional-btn.text-only {
    background: none;
    border: none;
    box-shadow: none;
    width: auto;
    height: auto;
    font-size: 18px;
    color: inherit;
    transition: color 0.2s ease-in-out;
}

.sodew-regional-btn.text-only:hover {
    color: #072b61;
    transform: none;
}

.sodew-regional-btn img.sodew-icon {
    width: 100%;      /* obrázek = celé tlačítko */
    height: 100%;
    object-fit: contain;
    border-radius: 50%;  /* jen když chceš zachovat kulatý tvar */
    display: block;
}


/* ===========================================
   🪟 MODAL
   =========================================== */

.sodew-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all 0.2s ease-in-out;
}

.sodew-modal.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.sodew-modal-content {
    background: #fff;
    padding: 2em;
    border-radius: 12px;
    width: 320px;
    text-align: left;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    animation: sodew-fadein 0.25s ease-out;
}

@keyframes sodew-fadein {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.sodew-modal-content h3 {
    margin-top: 0;
    text-align: center;
    font-size: 1.3em;
    color: #072b61;
}

.sodew-modal-content label {
    display: block;
    margin-top: 12px;
    font-weight: bold;
    font-size: 0.9em;
    color: #333;
}

.sodew-modal-content select {
    width: 100%;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-top: 4px;
    background: #fdfdfd;
    font-size: 0.95em;
}

.sodew-modal-content select:focus {
    outline: none;
    border-color: #072b61;
    box-shadow: 0 0 0 2px rgba(7, 43, 97, 0.2);
}

/* Tlačítka ve spodní části modalu */
.sodew-buttons {
    text-align: right;
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.sodew-buttons button {
    padding: 7px 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.95em;
    transition: background 0.2s ease-in-out;
}

/* Uložit */
#sodew-save {
    background: #072b61;
    color: #fff;
}

#sodew-save:hover {
    background: #0a3a84;
}

/* Zrušit */
#sodew-cancel {
    background: #ccc;
    color: #000;
}

#sodew-cancel:hover {
    background: #bbb;
}
