/* Controls are deliberately excluded from text resizing so they stay usable. */
.font-spyglass-controls {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    vertical-align: middle;
}

.font-spyglass-controls .font-spyglass-button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    width: 46px;
    height: 44px;
    margin: 0;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 5px;
    font-family: inherit;
    font-weight: 700 !important;
    font-style: normal !important;
    line-height: 1 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.15s ease, opacity 0.15s ease;
}

.font-spyglass-controls .font-spyglass-increase {
    font-size: 27px !important;
}

.font-spyglass-controls .font-spyglass-reset {
    font-size: 22px !important;
}

.font-spyglass-controls .font-spyglass-decrease {
    font-size: 19px !important;
}

.font-spyglass-controls .font-spyglass-button:hover:not(:disabled) {
    background: rgba(127, 127, 127, 0.14);
}

.font-spyglass-controls .font-spyglass-button:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 3px;
}

.font-spyglass-controls .font-spyglass-button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.font-spyglass-status {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* The generated text from CSS ::before/::after is resized too. */
[data-font-spyglass-before]::before {
    font-size: var(--font-spyglass-before-size) !important;
}

[data-font-spyglass-after]::after {
    font-size: var(--font-spyglass-after-size) !important;
}
