/*!
 * TransHeart frontend language switcher + banner styles.
 */

.transheart-switcher {
    display: inline-block;
    font-family: inherit;
    line-height: 1.4;
}

.transheart-switcher--dropdown select {
    appearance: auto;
    padding: 6px 24px 6px 10px;
    border-radius: 6px;
    border: 1px solid #d8dee5;
    background: #fff;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.transheart-switcher--dropdown select:focus-visible {
    outline: 2px solid #e67e22;
    outline-offset: 2px;
}

.transheart-switcher--list,
.transheart-switcher--flags,
.transheart-switcher--text {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    gap: 12px;
    align-items: center;
}

.transheart-switcher--list li,
.transheart-switcher--flags li,
.transheart-switcher--text li {
    display: inline-block;
}

.transheart-switcher--list a,
.transheart-switcher--flags a,
.transheart-switcher--text a {
    text-decoration: none;
    color: inherit;
    border-bottom: 1px dotted transparent;
    transition: border-color 160ms ease;
}

.transheart-switcher--list a:hover,
.transheart-switcher--flags a:hover,
.transheart-switcher--text a:hover {
    border-bottom-color: #e67e22;
    color: #e67e22;
}

.transheart-switcher--list .is-active a,
.transheart-switcher--flags .is-active a,
.transheart-switcher--text .is-active a {
    color: #e67e22;
    font-weight: 600;
}

.transheart-switcher--flags {
    font-size: 18px;
}

/* --- Suggestion banner -------------------------------------------------- */

.transheart-banner {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff8eb;
    border-bottom: 1px solid #f6d68a;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 16px;
    font-size: 14px;
    color: #5b3d10;
}

.transheart-banner__message {
    flex: 0 1 auto;
}

.transheart-banner__action {
    background: #e67e22;
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: background 160ms ease;
}

.transheart-banner__action:hover {
    background: #ca6c1d;
    color: #fff;
}

.transheart-banner__dismiss {
    background: transparent;
    border: 1px solid #d2c599;
    color: #5b3d10;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 160ms ease;
}

.transheart-banner__dismiss:hover {
    background: rgba(214, 195, 130, 0.18);
}

@media (max-width: 640px) {
    .transheart-banner {
        flex-direction: column;
        gap: 6px;
    }

    .transheart-banner__action,
    .transheart-banner__dismiss {
        width: 100%;
        text-align: center;
    }
}
