/**
 * PrestaChamps
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Commercial License
 * you can't distribute, modify or sell this code
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file
 * If you need help please contact leo@prestachamps.com
 *
 * @author    PrestaChamps <leo@prestachamps.com>
 * @copyright PrestaChamps
 * @license   commercial
 */

/*
 * Pop-up style 3 (views/templates/hook/template/v3.tpl). Loaded only while
 * the style is selected. The colours are custom properties set on the root
 * from the pop-up customization settings (PopupTheme); the values below are
 * the install defaults. gdpr-consent.js adds .gdprModal--v3 and
 * .gdprModal--v3-<position> to the modal wrapper.
 */

/* The wrapper: with scroll lock on it covers the page (overlay, click to
   close); off, it takes no room and the page stays usable, as in the other
   styles. !important: gdpr-modal.js sets its height inline. */
body.overflow-hidden .gdprModal.gdprModal--v3 {
    height: 100% !important;
}
body.overflow-shown .gdprModal.gdprModal--v3 {
    height: 0 !important;
}

/* The placeholder: a see-through layer over the viewport that places the
   pop-up; clicks outside the pop-up go through it. */
.gdprModal.gdprModal--v3 .gdprModal__placeholder {
    position: fixed !important;
    top: 0 !important;
    right: 0;
    bottom: 0 !important;
    left: 0 !important;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    max-height: none;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 16px;
    background: transparent !important;
    box-shadow: none !important;
    pointer-events: none;
    overflow: visible;
}
.gdprModal.gdprModal--v3-top .gdprModal__placeholder {
    align-items: flex-start;
}
.gdprModal.gdprModal--v3-middle .gdprModal__placeholder {
    align-items: center;
}

.gdpr-v3 {
    --gdpr-v3-accent: #007dc6;
    --gdpr-v3-accent-ink: #ffffff;
    --gdpr-v3-accent-text: #0071b2;
    --gdpr-v3-save: #008000;
    --gdpr-v3-save-ink: #ffffff;
    --gdpr-v3-deny: #cc1800;
    --gdpr-v3-deny-text: #cc1800;
    --gdpr-v3-bg: #ffffff;
    --gdpr-v3-text: #000000;
    --gdpr-v3-muted: #474747;
    --gdpr-v3-line: #dbdbdb;
    --gdpr-v3-soft: #f2f2f2;
    --gdpr-v3-off: #999999;
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 920px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow: hidden;
    border-radius: 16px;
    background: var(--gdpr-v3-bg);
    color: var(--gdpr-v3-text);
    box-shadow: 0 24px 64px rgba(0, 0, 0, .28), 0 2px 8px rgba(0, 0, 0, .12);
    font-size: 15px;
    line-height: 1.55;
    text-align: left;
    pointer-events: auto;
}
.gdpr-v3 *,
.gdpr-v3 *::before,
.gdpr-v3 *::after {
    box-sizing: border-box;
}
.gdpr-v3 [hidden] {
    display: none !important;
}
.gdpr-v3 p {
    margin: 0 0 10px;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}
.gdpr-v3 a {
    color: var(--gdpr-v3-accent-text);
    font-weight: 600;
    text-decoration: underline;
}
.gdpr-v3 button {
    margin: 0;
    font-family: inherit;
    letter-spacing: normal;
    text-transform: none;
    box-shadow: none;
}
.gdpr-v3 a:focus-visible,
.gdpr-v3 button:focus-visible,
.gdpr-v3 input:focus-visible {
    outline: 2px solid var(--gdpr-v3-text);
    outline-offset: 2px;
}
.gdpr-v3-sr {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Head: the shop's logo or name. */
.gdpr-v3__head {
    flex: none;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 12px 24px;
    border-bottom: 1px solid var(--gdpr-v3-line);
}
.gdpr-v3__logo {
    display: block;
    width: auto;
    max-width: 200px;
    height: auto;
    max-height: 32px;
}
.gdpr-v3__shop {
    font-weight: 800;
    font-size: 18px;
}

/* Tabs. */
.gdpr-v3__tabs {
    flex: none;
    display: flex;
    border-bottom: 1px solid var(--gdpr-v3-line);
}
.gdpr-v3__tab {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    padding: 14px 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--gdpr-v3-text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    cursor: pointer;
}
.gdpr-v3__tab[aria-selected="true"] {
    color: var(--gdpr-v3-accent-text);
}
.gdpr-v3__tab[aria-selected="true"]::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    background: var(--gdpr-v3-accent);
}
.gdpr-v3 .gdpr-v3__tab:focus-visible {
    outline: 2px solid var(--gdpr-v3-accent-text);
    outline-offset: -4px;
}

/* Body: the panels scroll, the head, tabs and buttons stay. */
.gdpr-v3__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 20px 24px;
}
.gdpr-v3__title {
    margin: 0 0 8px;
    color: inherit;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: none;
}
.gdpr-v3__text {
    margin: 0 0 10px;
}
.gdpr-v3__text p:last-child {
    margin-bottom: 0;
}
.gdpr-v3__fine {
    color: var(--gdpr-v3-muted);
    font-size: 14px;
}
.gdpr-v3__age {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 0;
    color: var(--gdpr-v3-text);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}
.gdpr-v3__age input {
    width: 18px;
    height: 18px;
    margin: 0;
}
.gdpr-v3__age-button {
    padding: 6px 12px;
    border: 2px solid var(--gdpr-v3-deny);
    border-radius: 8px;
    background: var(--gdpr-v3-bg);
    color: var(--gdpr-v3-deny-text);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.gdpr-v3__about p {
    margin-bottom: 14px;
}

/* Details: a category per row. */
.gdpr-v3-cat {
    padding: 14px 0;
    border-bottom: 1px solid var(--gdpr-v3-line);
}
.gdpr-v3-cat:first-of-type {
    padding-top: 0;
}
.gdpr-v3-cat:last-of-type {
    border-bottom: 0;
    padding-bottom: 0;
}
.gdpr-v3-cat__head {
    display: flex;
    align-items: center;
    gap: 12px;
}
.gdpr-v3-cat__toggle {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: var(--gdpr-v3-text);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
}
.gdpr-v3-cat__toggle::before {
    content: "";
    flex: none;
    width: 9px;
    height: 9px;
    margin: 0 7px 0 5px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform .15s ease;
}
.gdpr-v3-cat__toggle[aria-expanded="true"]::before {
    transform: rotate(45deg);
}
.gdpr-v3-count {
    flex: none;
    padding: 1px 9px;
    border: 1px solid var(--gdpr-v3-line);
    border-radius: 999px;
    background: var(--gdpr-v3-soft);
    color: var(--gdpr-v3-muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}
.gdpr-v3-switch {
    position: relative;
    flex: none;
    width: 54px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--gdpr-v3-off);
    cursor: pointer;
    transition: background-color .15s ease;
}
.gdpr-v3-switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
    transition: left .15s ease;
}
.gdpr-v3-switch[aria-checked="true"] {
    background: var(--gdpr-v3-accent);
}
.gdpr-v3-switch[aria-checked="true"]::after {
    left: 27px;
}
.gdpr-v3-switch[disabled] {
    opacity: .55;
    cursor: not-allowed;
}
.gdpr-v3-cat__desc {
    margin: 6px 0 0 31px;
    color: var(--gdpr-v3-muted);
    font-size: 14px;
}
.gdpr-v3-cat__desc p {
    margin: 0;
}
.gdpr-v3-cat__body {
    margin: 12px 0 0 31px;
}

/* A provider card, its services and their cookies. */
.gdpr-v3-provider {
    margin: 0 0 10px;
    padding: 14px 16px;
    border: 1px solid var(--gdpr-v3-line);
    border-radius: 12px;
    background: var(--gdpr-v3-bg);
}
.gdpr-v3-provider:last-child {
    margin-bottom: 0;
}
.gdpr-v3-provider__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    font-weight: 700;
}
.gdpr-v3-provider__more {
    margin-left: auto;
    font-size: 13px;
    text-decoration: none !important;
}
.gdpr-v3-provider__more:hover {
    text-decoration: underline !important;
}
.gdpr-v3-entry + .gdpr-v3-entry {
    margin-top: 12px;
}
.gdpr-v3-entry__name {
    margin-top: 10px;
    font-weight: 600;
}
.gdpr-v3-entry__desc {
    margin: 4px 0 0 !important;
    color: var(--gdpr-v3-muted);
    font-size: 14px !important;
}
.gdpr-v3-cookie {
    margin: 10px 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--gdpr-v3-soft);
}
.gdpr-v3-cookie__name {
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.gdpr-v3-cookie__desc {
    margin: 4px 0 0 !important;
    color: var(--gdpr-v3-muted);
    font-size: 14px !important;
}
.gdpr-v3-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 24px;
    margin-top: 6px;
    color: var(--gdpr-v3-muted);
    font-size: 13px;
}
.gdpr-v3-meta b {
    color: var(--gdpr-v3-text);
    font-weight: 600;
}
.gdpr-v3-consent-id {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Buttons: three equal ones (two with "show reject all" off). The ids are
   the other styles' ones, which front.css styles by id: reset here. */
.gdpr-v3__foot {
    flex: none;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 14px 24px 18px;
    border-top: 1px solid var(--gdpr-v3-line);
    background: var(--gdpr-v3-bg);
}
.gdpr-v3 .gdpr-v3-btn,
.gdpr-v3 #reject-all-gdpr,
.gdpr-v3 #close-gdpr-consent,
.gdpr-v3 #accept-all-gdpr {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: auto;
    min-height: 50px;
    margin: 0;
    padding: 12px;
    border: 2px solid var(--gdpr-v3-accent);
    border-radius: 10px;
    background: var(--gdpr-v3-bg);
    color: var(--gdpr-v3-accent-text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    vertical-align: middle;
    cursor: pointer;
    transition: filter .15s ease;
}
.gdpr-v3 .gdpr-v3-btn:hover {
    filter: brightness(.94);
}
.gdpr-v3 #accept-all-gdpr {
    border-color: var(--gdpr-v3-accent);
    background: var(--gdpr-v3-accent);
    color: var(--gdpr-v3-accent-ink);
}
.gdpr-v3 #close-gdpr-consent {
    border-color: var(--gdpr-v3-save);
    background: var(--gdpr-v3-save);
    color: var(--gdpr-v3-save-ink);
}
.gdpr-v3 #reject-all-gdpr {
    border-color: var(--gdpr-v3-deny);
    background: var(--gdpr-v3-bg);
    color: var(--gdpr-v3-deny-text);
}
.gdpr-v3 [hidden].gdpr-v3-btn {
    display: none !important;
}

/* Phones: a bottom sheet whatever the position, the buttons stacked. */
@media only screen and (max-width: 649px) {
    .gdprModal.gdprModal--v3 .gdprModal__placeholder {
        align-items: flex-end !important;
        padding: 0;
    }
    .gdpr-v3 {
        max-width: none;
        max-height: 92vh;
        max-height: 92dvh;
        border-radius: 16px 16px 0 0;
    }
    .gdpr-v3__head {
        min-height: 48px;
        padding: 10px 16px;
    }
    .gdpr-v3__tab {
        padding: 12px 4px;
        font-size: 15px;
    }
    .gdpr-v3__body {
        padding: 16px;
    }
    .gdpr-v3-cat__desc,
    .gdpr-v3-cat__body {
        margin-left: 0;
    }
    .gdpr-v3__foot {
        grid-auto-flow: row;
        gap: 8px;
        padding: 12px 16px 16px;
    }
    .gdpr-v3 .gdpr-v3-btn,
    .gdpr-v3 #reject-all-gdpr,
    .gdpr-v3 #close-gdpr-consent,
    .gdpr-v3 #accept-all-gdpr {
        min-height: 46px;
    }
}
