/*
 * Global page text-size control (A− / A / A+).
 *
 * A single reusable component, loaded once from templates/base.html, so
 * the same control appears on every page/layout without duplication. This
 * file only styles the three buttons -- positioning/dragging is handled
 * by the wrapping #evitoA11yToolbar (see a11y-toolbar.css), which this
 * widget sits inside as one of three control groups.
 */

.evito-font-ctrl {
    display: flex;
    align-items: center;
    gap: 2px;
}

.evito-font-ctrl button {
    border: none;
    background: #f2f2f2;
    color: #222;
    cursor: pointer;
    border-radius: 999px;
    padding: 8px 10px;
    min-width: 40px;
    min-height: 40px;
    font-weight: 700;
    line-height: 1;
    transition: background 0.15s ease-out, color 0.15s ease-out;
}

.evito-font-ctrl button:hover:not(:disabled) {
    background: #37C2CC;
    color: #fff;
}

.evito-font-ctrl button:focus-visible {
    outline: 3px solid #37C2CC;
    outline-offset: 2px;
}

.evito-font-ctrl button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.evito-font-ctrl button[data-font-action="dec"] {
    font-size: 12px;
}

.evito-font-ctrl button[data-font-action="reset"] {
    font-size: 14px;
}

.evito-font-ctrl button[data-font-action="inc"] {
    font-size: 18px;
}

@media (prefers-reduced-motion: reduce) {
    .evito-font-ctrl button {
        transition: none;
    }
}