/* PROVIEW cookie preferences - Child Theme only. */

.pv-cookie-consent,
.pv-cookie-consent *,
.pv-cookie-consent *::before,
.pv-cookie-consent *::after {
    box-sizing: border-box;
}

.pv-cookie-consent[hidden],
.pv-cookie-consent [hidden] {
    display: none !important;
}

.pv-cookie-banner {
    position: fixed;
    right: 18px;
    bottom: 18px;
    left: 18px;
    z-index: 2147483600;
    display: grid;
    width: min(1160px, calc(100% - 36px));
    margin: 0 auto;
    padding: 19px 21px;
    border: 1px solid rgba(190, 214, 233, .95);
    border-radius: 14px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    background: rgba(255, 255, 255, .985);
    box-shadow: 0 20px 60px rgba(8, 43, 77, .2);
    color: #42576b;
}

.pv-cookie-banner__copy {
    min-width: 0;
}

.pv-cookie-banner__copy > span,
.pv-cookie-dialog__header span {
    display: block;
    margin-bottom: 4px;
    color: #0b73e8;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pv-cookie-banner h2,
.pv-cookie-dialog h2 {
    margin: 0 !important;
    color: #082f5d !important;
    font-weight: 650 !important;
}

.pv-cookie-banner h2 {
    font-size: 18px !important;
    line-height: 1.3 !important;
}

.pv-cookie-banner p {
    max-width: 760px;
    margin: 6px 0 0 !important;
    color: #5d7388;
    font-size: 12.5px;
    line-height: 1.55;
}

.pv-cookie-banner a,
.pv-cookie-dialog__policy {
    color: #0874dc !important;
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pv-cookie-banner__actions,
.pv-cookie-dialog__actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.pv-cookie-button {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0b416f;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.pv-cookie-button--primary {
    border-color: #0b73e8;
    background: #0b73e8;
    color: #fff;
}

.pv-cookie-button--primary:hover,
.pv-cookie-button--primary:focus-visible {
    border-color: #075fbe;
    background: #075fbe;
    color: #fff;
}

.pv-cookie-button--outline {
    border-color: #92b7da;
    background: #fff;
    color: #0b5795;
}

.pv-cookie-button--outline:hover,
.pv-cookie-button--outline:focus-visible {
    border-color: #0b73e8;
    background: #f4f9ff;
}

.pv-cookie-button--soft {
    border-color: #d3e2ef;
    background: #eef6fd;
    color: #174c7f;
}

.pv-cookie-button--soft:hover,
.pv-cookie-button--soft:focus-visible {
    border-color: #9abbd8;
    background: #e4f1fc;
}

.pv-cookie-button:focus-visible,
.pv-cookie-dialog__close:focus-visible,
.pv-cookie-reopen:focus-visible,
.pv-cookie-switch input:focus-visible + span {
    outline: 3px solid rgba(11, 115, 232, .28);
    outline-offset: 2px;
}

.pv-cookie-reopen {
    position: fixed;
    bottom: 15px;
    left: 15px;
    z-index: 2147483500;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #bed2e5;
    border-radius: 8px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 8px 26px rgba(8, 43, 77, .13);
    color: #184e7d;
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 700;
    cursor: pointer;
}

.pv-cookie-dialog {
    position: fixed;
    inset: 0;
    z-index: 2147483640;
    display: grid;
    place-items: center;
    padding: 20px;
}

.pv-cookie-dialog__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 23, 43, .64);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.pv-cookie-dialog__panel {
    position: relative;
    z-index: 1;
    width: min(610px, 100%);
    max-height: min(720px, calc(100vh - 40px));
    max-height: min(720px, calc(100dvh - 40px));
    overflow-y: auto;
    padding: 24px;
    border: 1px solid #cbddeb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 28px 90px rgba(1, 22, 42, .35);
    color: #42576b;
}

.pv-cookie-dialog__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e1eaf2;
}

.pv-cookie-dialog h2 {
    font-size: 23px !important;
    line-height: 1.25 !important;
}

.pv-cookie-dialog__close {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    padding: 0;
    border: 1px solid #d2dfeb;
    border-radius: 9px;
    background: #f6f9fc;
    color: #315c82;
    font-family: Arial, sans-serif;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.pv-cookie-dialog__description {
    margin: 15px 0 !important;
    color: #60778d;
    font-size: 12.5px;
    line-height: 1.6;
}

.pv-cookie-category {
    display: grid;
    min-width: 0;
    padding: 15px 16px;
    border: 1px solid #d7e5f0;
    border-radius: 11px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    background: #f9fbfd;
}

.pv-cookie-category + .pv-cookie-category {
    margin-top: 10px;
}

.pv-cookie-category strong {
    display: block;
    color: #123b62;
    font-size: 13px;
    font-weight: 700;
}

.pv-cookie-category p {
    margin: 4px 0 0 !important;
    color: #688097;
    font-size: 11px;
    line-height: 1.5;
}

.pv-cookie-category__required {
    padding: 5px 9px;
    border-radius: 999px;
    background: #e7f6ee;
    color: #257756;
    font-size: 9.5px;
    font-weight: 800;
    white-space: nowrap;
}

.pv-cookie-category--toggle {
    cursor: pointer;
}

.pv-cookie-switch {
    position: relative;
    width: 44px;
    height: 25px;
    flex: 0 0 44px;
}

.pv-cookie-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.pv-cookie-switch span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #b7c8d6;
    transition: background .18s ease;
}

.pv-cookie-switch span::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 7px rgba(10, 49, 87, .25);
    content: "";
    transition: transform .18s ease;
}

.pv-cookie-switch input:checked + span {
    background: #0b73e8;
}

.pv-cookie-switch input:checked + span::after {
    transform: translateX(19px);
}

.pv-cookie-dialog__actions {
    margin-top: 17px;
}

.pv-cookie-dialog__policy {
    display: inline-block;
    margin-top: 15px;
    font-size: 11px;
}

body.pv-cookie-dialog-open {
    overflow: hidden !important;
}

@media (max-width: 920px) {
    .pv-cookie-banner {
        bottom: calc(67px + env(safe-area-inset-bottom));
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .pv-cookie-banner__actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pv-cookie-reopen {
        bottom: calc(72px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 640px) {
    .pv-cookie-banner {
        right: 10px;
        left: 10px;
        width: calc(100% - 20px);
        padding: 16px;
        border-radius: 12px;
    }

    .pv-cookie-banner h2 {
        font-size: 16px !important;
    }

    .pv-cookie-banner p {
        font-size: 11.5px;
    }

    .pv-cookie-banner__actions {
        grid-template-columns: 1fr 1fr;
    }

    .pv-cookie-button--soft {
        grid-column: 1 / -1;
    }

    .pv-cookie-dialog {
        align-items: end;
        padding: 10px;
    }

    .pv-cookie-dialog__panel {
        width: 100%;
        max-height: calc(100vh - 20px);
        max-height: calc(100dvh - 20px);
        padding: 19px 16px;
        border-radius: 14px;
    }

    .pv-cookie-dialog h2 {
        font-size: 20px !important;
    }

    .pv-cookie-category {
        padding: 13px;
        gap: 12px;
    }
}

@media (max-width: 390px) {
    .pv-cookie-banner {
        bottom: calc(65px + env(safe-area-inset-bottom));
    }

    .pv-cookie-banner__actions,
    .pv-cookie-dialog__actions {
        grid-template-columns: 1fr;
    }

    .pv-cookie-dialog__actions {
        display: grid;
    }

    .pv-cookie-button--soft {
        grid-column: auto;
    }

    .pv-cookie-button {
        width: 100%;
        min-height: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pv-cookie-button,
    .pv-cookie-switch span,
    .pv-cookie-switch span::after {
        transition-duration: .01ms !important;
    }
}
