/*
 * The cookie banner.
 *
 * Every size, colour and font is pinned here, in every state, and anchored on
 * the banner's id. The storefront's Elementor kit styles bare links and buttons
 * site-wide (a bare link is 20px and shrinks on hover), and without the pins
 * the banner would take those on.
 *
 * Tessera orange is #f26641. Nothing here is blue, the focus ring included.
 */
#tessera-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2147483000;
    box-sizing: border-box;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    background: #ffffff;
    border-top: 1px solid #e2e2e2;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.12);
    color: #1a1a1a;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    text-align: left;
}

#tessera-consent *,
#tessera-consent *::before,
#tessera-consent *::after {
    box-sizing: border-box;
}

#tessera-consent .tessera-consent__inner {
    display: flex;
    align-items: center;
    gap: 24px;
    max-width: 1140px;
    margin: 0 auto;
}

#tessera-consent .tessera-consent__words {
    flex: 1 1 auto;
    min-width: 0;
}

#tessera-consent .tessera-consent__title {
    margin: 0 0 4px;
    padding: 0;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    outline: none;
}

#tessera-consent .tessera-consent__text,
#tessera-consent .tessera-consent__state {
    margin: 0;
    padding: 0;
    color: #3d3d3d;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
}

#tessera-consent .tessera-consent__state {
    margin-top: 6px;
    color: #1a1a1a;
    font-weight: 600;
}

#tessera-consent .tessera-consent__state[hidden] {
    display: none;
}

#tessera-consent a.tessera-consent__link,
#tessera-consent a.tessera-consent__link:link,
#tessera-consent a.tessera-consent__link:visited,
#tessera-consent a.tessera-consent__link:hover,
#tessera-consent a.tessera-consent__link:focus,
#tessera-consent a.tessera-consent__link:active {
    color: #f26641;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: underline;
    white-space: nowrap;
}

#tessera-consent .tessera-consent__buttons {
    display: flex;
    flex: 0 0 auto;
    gap: 12px;
}

/* The two buttons are the same size and weight. Neither is the small one. */
#tessera-consent button.tessera-consent__button,
#tessera-consent button.tessera-consent__button:hover,
#tessera-consent button.tessera-consent__button:focus,
#tessera-consent button.tessera-consent__button:active {
    display: inline-block;
    min-width: 132px;
    min-height: 48px;
    margin: 0;
    padding: 12px 24px;
    border: 2px solid #1a1a1a;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: none;
    color: #1a1a1a;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    transition: none;
}

#tessera-consent button.tessera-consent__button--reject:hover {
    background: #f3f3f3;
}

#tessera-consent button.tessera-consent__button--accept,
#tessera-consent button.tessera-consent__button--accept:hover,
#tessera-consent button.tessera-consent__button--accept:focus,
#tessera-consent button.tessera-consent__button--accept:active {
    border-color: #f26641;
    background: #f26641;
    color: #ffffff;
}

#tessera-consent button.tessera-consent__button--accept:hover {
    border-color: #d9532f;
    background: #d9532f;
}

#tessera-consent button.tessera-consent__button:focus-visible,
#tessera-consent a.tessera-consent__link:focus-visible {
    outline: 3px solid #1a1a1a;
    outline-offset: 2px;
}

@media (max-width: 767px) {
    #tessera-consent {
        padding: 14px 14px calc(14px + env(safe-area-inset-bottom, 0px));
    }

    #tessera-consent .tessera-consent__inner {
        display: block;
    }

    #tessera-consent .tessera-consent__buttons {
        margin-top: 12px;
    }

    #tessera-consent button.tessera-consent__button,
    #tessera-consent button.tessera-consent__button:hover,
    #tessera-consent button.tessera-consent__button:focus,
    #tessera-consent button.tessera-consent__button:active {
        flex: 1 1 0;
        min-width: 0;
    }

    #tessera-consent .tessera-consent__text,
    #tessera-consent .tessera-consent__state,
    #tessera-consent a.tessera-consent__link,
    #tessera-consent a.tessera-consent__link:hover {
        font-size: 14px;
    }
}
