/* Site theme for CookieConsent (cookieconsent.css). Sizes are in em/px rather than rem,
   because from 768px up rem follows the viewport width */
#cc-main {
    --cc-font-family: ivyepic, sans-serif;
    --cc-modal-border-radius: 1.25em;
    --cc-btn-border-radius: 3em;
    --cc-link-color: #943626;
    --cc-overlay-bg: rgba(64, 20, 12, 0.6);

    --cc-bg: #fbefe5;
    --cc-primary-color: #943626;
    --cc-secondary-color: #943626;

    --cc-btn-primary-bg: #943626;
    --cc-btn-primary-color: #fbefe5;
    --cc-btn-primary-border-color: #943626;
    --cc-btn-primary-hover-bg: #6b281b;
    --cc-btn-primary-hover-color: #fbefe5;
    --cc-btn-primary-hover-border-color: #6b281b;
    --cc-btn-secondary-bg: transparent;
    --cc-btn-secondary-color: #943626;
    --cc-btn-secondary-border-color: #943626;
    --cc-btn-secondary-hover-bg: #943626;
    --cc-btn-secondary-hover-color: #fbefe5;
    --cc-btn-secondary-hover-border-color: #943626;

    --cc-separator-border-color: #f0d3bf;
    --cc-section-category-border: #f0d3bf;
    --cc-toggle-on-bg: #943626;
    --cc-toggle-off-bg: #9b7466;
    --cc-toggle-on-knob-bg: #fbefe5;
    --cc-toggle-readonly-bg: #e3bfa8;
    --cc-toggle-readonly-knob-bg: #fbefe5;
    --cc-cookie-category-block-bg: #f7e0cc;
    --cc-cookie-category-block-border: #f7e0cc;
    --cc-cookie-category-block-hover-bg: #f3d5bc;
    --cc-cookie-category-block-hover-border: #f3d5bc;
    --cc-cookie-category-expanded-block-hover-bg: #f3d5bc;
    --cc-footer-bg: #f7e0cc;
    --cc-footer-color: #943626;
    --cc-footer-border-color: #f0d3bf;
    --cc-webkit-scrollbar-bg: #f0d3bf;
    --cc-webkit-scrollbar-hover-bg: #943626;
}
@media (min-width: 641px) {
    #cc-main {
        --cc-modal-margin: 1em;
    }
}

#cc-main .cm,
#cc-main .pm {
    border: 1px solid #f0d3bf;
    box-shadow: 0 0.75em 2.5em rgba(64, 20, 12, 0.3);
}
@media (max-width: 640px) {
    #cc-main .pm {
        border: 0;
    }
}

/* The cookie sections share the button radius, which is a pill here */
#cc-main .pm__section,
#cc-main .pm__section--toggle,
#cc-main .pm__section-title {
    border-radius: 1em;
}
#cc-main .pm__section--toggle .pm__section-desc-wrapper {
    border-radius: 0 0 1em 1em;
}

#cc-main .cm__title,
#cc-main .pm__title {
    font-family: "sweet-gothic", sans-serif;
    font-weight: 400;
    font-size: 1em;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
#cc-main .cm__desc,
#cc-main .pm__section-desc {
    font-weight: 300;
    line-height: 1.5;
}
#cc-main .pm__section-title {
    font-weight: 500;
}
#cc-main .cm__btn,
#cc-main .pm__btn {
    font-weight: 400;
    font-size: 0.9em;
    letter-spacing: -0.01em;
}

/* Links are underlined all the time, as elsewhere on the site */
#cc-main .cm__footer a,
#cc-main .cc__link {
    font-weight: 400;
    background-size: 100% 1px;
}
#cc-main .cm__footer a:hover,
#cc-main .cc__link:hover {
    color: #6b281b;
}

/* Round outlined close buttons in place of the dark corner tab, sized like the preferences one */
#cc-main .cm__btn--close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    min-height: 40px;
    font-size: 1em;
    border: 1px solid #943626;
    border-radius: 50%;
    background: transparent;
}
#cc-main .cm__btn--close svg {
    stroke: #943626;
}
#cc-main .cm__btn--close:hover {
    background: #943626;
}
#cc-main .cm__btn--close:hover svg {
    stroke: #fbefe5;
}
#cc-main .pm__close-btn {
    border-radius: 50%;
}

.cookie-preferences-trigger {
    position: fixed;
    z-index: 1000;
    left: 16px;
    bottom: 16px;
    display: grid;
    width: 48px;
    height: 48px;
    padding: 0;
    place-items: center;
    border: 1px solid #943626;
    border-radius: 50%;
    background: #fbefe5;
    box-shadow: 0 4px 14px rgba(64, 20, 12, 0.25);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cookie-preferences-trigger:hover {
    background: #f7e0cc;
}

.cookie-preferences-trigger[hidden] {
    display: none !important;
}

.cookie-preferences-trigger img {
    display: block;
    width: 26px;
    height: 26px;
}

.cookie-preferences-trigger:focus-visible {
    outline: 3px solid #fa5341;
    outline-offset: 3px;
}
