.text-size-switcher {
    position: fixed;
    left: 14px;
    bottom: 14px;
    z-index: 100001;
    font-family: Arial, sans-serif;
}

.text-size-switcher__toggle {
    width: 36px;
    height: 36px;
    border: 1px solid #ffffff;
    border-radius: 50%;
    background: #1b1b1b;
    color: #ffffff;
    cursor: pointer;
    font-weight: bold;
}

.text-size-switcher__options {
    position: absolute;
    bottom: 44px;
    left: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    width: max-content;
    padding: 8px;
    border: 1px solid #ffffff;
    background: #1b1b1b;
    color: #ffffff;
}

.text-size-switcher__options[hidden] {
    display: none;
}

.text-size-switcher__options button {
    min-width: 32px;
    min-height: 32px;
    border: 1px solid #ffffff;
    background: #ffffff;
    color: #1b1b1b;
    cursor: pointer;
    font-weight: bold;
}

.text-size-switcher button:hover,
.text-size-switcher button:focus {
    outline: 3px solid #ed1c24;
    outline-offset: 2px;
}

.text-size-controls {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 100001;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px;
    background: #1b1b1b;
    border: 1px solid #ffffff;
    color: #ffffff;
}

.text-size-controls__label {
    margin-right: 4px;
    font-size: 14px;
    font-weight: bold;
}

.text-size-controls__button {
    min-width: 36px;
    min-height: 36px;
    padding: 4px 6px;
    border: 1px solid #ffffff;
    background: #ffffff;
    color: #1b1b1b;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-weight: bold;
}

.text-size-controls__button:hover,
.text-size-controls__button:focus {
    background: #ed1c24;
    color: #ffffff;
    outline: 3px solid #ffffff;
    outline-offset: 2px;
}

@media (min-width: 768px) and (max-width: 960px) {
    html.tf-text-large {
        font-size: 70.3125%;
    }

    html.tf-text-xlarge {
        font-size: 78.125%;
    }
}

@media (min-width: 961px) and (max-width: 1200px) {
    html.tf-text-large {
        font-size: 84.375%;
    }

    html.tf-text-xlarge {
        font-size: 93.75%;
    }
}

@media (min-width: 1201px) {
    html.tf-text-large {
        font-size: 98.4375%;
    }

    html.tf-text-xlarge {
        font-size: 109.375%;
    }
}

@media (max-width: 767px) {
    html.tf-text-large {
        font-size: 112.5%;
    }

    html.tf-text-xlarge {
        font-size: 125%;
    }

    .text-size-controls {
        right: 8px;
        bottom: 8px;
    }

    .text-size-controls__label {
        display: none;
    }
}
