/*
 * Focus rings, loaded after every other storefront sheet.
 *
 * Keyboard users (and text fields, which match :focus-visible on click)
 * get one clear ring in the theme colour; the outline follows each
 * element's border-radius. A mouse click or tap on a link or button
 * draws nothing: browsers only match :focus-visible when the user needs
 * to see where focus is.
 */
:focus-visible {
    outline: 2px solid var(--theme-focus, var(--theme-primary));
    outline-offset: 2px;
}

/* Mouse or touch focus: no outline, including Bootstrap's button:focus ring. */
:is(a, button, summary, [role="button"], [tabindex]):focus:not(:focus-visible) {
    outline: none;
}

/* Bootstrap's coloured focus glow on its button variants, mouse focus only. */
:is(.btn-primary, .btn-outline-primary, .btn-outline-secondary, .btn-outline-success,
    .btn-outline-info, .btn-outline-warning, .btn-outline-danger, .btn-outline-light,
    .btn-outline-dark):focus:not(:focus-visible) {
    box-shadow: none;
}

/* The header menu bar clips overflow, so draw the ring inside each item. */
.amz-header-bottom :focus-visible {
    outline-offset: -2px;
}
