/**
 * Copyright © 2026 Blue Fairy Development. All rights reserved.
 *
 * The "cookie settings" control, and nothing else.
 *
 * ITS OWN FILE BECAUSE BOTH THEMES NEED IT AND NEITHER NEEDS THE OTHER'S RULES. The Luma banner
 * has consent.css; the Hyva banner is built from the theme's own utility classes and would be
 * disturbed by consent.css's .bf-cc positioning. So the one control both themes share lives
 * here, defined once, and each template links this file.
 */

.bf-cc-reopen[hidden] {
    display: none;
}

/*
 * THE REOPEN CONTROL CARRIES ITS OWN LOOK, AND IT IS NOT THIS STORE'S LOOK.
 *
 * It used to be a bare <button> with padding and a font size, so every theme drew it however it
 * draws an unstyled button - which on a light homepage is often near-invisible, and the control
 * a visitor needs in order to WITHDRAW consent is the last one that should be hard to find.
 *
 * So it is a cookie, and it brings its own colours: a circle that reads on a white page, a dark
 * page, a photograph or a patterned background, because an extension cannot know which it will
 * land on. Every value is a custom property, so a merchant who wants it to match their store can
 * set three of them instead of forking the template.
 *
 * 44px is WCAG 2.2's target size, not a round number.
 */
.bf-cc-reopen {
    --bf-cc-reopen-size: 44px;
    --bf-cc-reopen-bg: #fff;
    --bf-cc-reopen-fg: #1f1b16;
    --bf-cc-reopen-ring: rgb(0 0 0 / 18%);

    position: fixed;
    left: 12px;
    bottom: 12px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: var(--bf-cc-reopen-size);
    height: var(--bf-cc-reopen-size);
    padding: 0;
    line-height: 0;
    border: 1px solid var(--bf-cc-reopen-ring);
    border-radius: 50%;
    background: var(--bf-cc-reopen-bg);
    color: var(--bf-cc-reopen-fg);
    box-shadow:
        0 1px 2px rgb(0 0 0 / 10%),
        0 4px 14px rgb(0 0 0 / 16%);
    appearance: none;
    cursor: pointer;
}

.bf-cc-reopen svg {
    display: block;
    width: 60%;
    height: 60%;
    fill: currentcolor;
}

/* The accessible name stays words: an icon alone tells a screen reader nothing. */
.bf-cc-reopen__label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.bf-cc-reopen:hover {
    --bf-cc-reopen-ring: rgb(0 0 0 / 32%);
}

/* Never `outline: none`: this is the control a visitor tabs to in order to withdraw consent. */
.bf-cc-reopen:focus-visible {
    outline: 3px solid var(--bf-cc-reopen-fg);
    outline-offset: 2px;
}

@media (prefers-color-scheme: dark) {
    .bf-cc-reopen {
        --bf-cc-reopen-bg: #2a2522;
        --bf-cc-reopen-fg: #f5efe7;
        --bf-cc-reopen-ring: rgb(255 255 255 / 22%);
    }
}
