/*
 * Ibeka Consent 0.4.0
 * Administrator-only frontend preview.
 */

.ibeka-consent-preview-root,
.ibeka-consent-preview-root * {
    box-sizing: border-box;
}


.ibeka-consent-preview-label {
    background: #171717;
    border-radius: 5px;
    bottom: 18px;
    color: #d6b764;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    left: 18px;
    letter-spacing: .04em;
    padding: 5px 8px;
    position: fixed;
    text-transform: uppercase;
    transform: translateY(-380px);
    z-index: 1000001;
}

.ibeka-consent-banner {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .09);
    border-radius: 7px;
    bottom: 22px;
    box-shadow:
        0 12px 35px rgba(0, 0, 0, .16),
        0 2px 7px rgba(0, 0, 0, .08);
    color: #222;
    font-family:
        Arial,
        Helvetica,
        sans-serif;
    left: 22px;
    max-width: calc(100vw - 44px);
    padding: 22px;
    position: fixed;
    width: 430px;
    z-index: 1000000;
}

.ibeka-consent-banner h2 {
    color: #171717;
    font-family:
        Arial,
        Helvetica,
        sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 12px;
    padding: 0;
}

.ibeka-consent-banner p {
    color: #4b4b4b;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 18px;
}

.ibeka-consent-banner-actions {
    display: grid;
    gap: 8px;
    grid-template-columns:
        repeat(3, 1fr);
}

.ibeka-consent-button {
    align-items: center;
    border-radius: 3px;
    cursor: pointer;
    display: inline-flex;
    font-family:
        Arial,
        Helvetica,
        sans-serif;
    font-size: 13px;
    font-weight: 700;
    justify-content: center;
    line-height: 1.2;
    min-height: 43px;
    padding: 10px 12px;
    text-align: center;
    transition:
        background .15s ease,
        border-color .15s ease,
        color .15s ease,
        transform .15s ease;
}

.ibeka-consent-button:hover {
    transform: translateY(-1px);
}

.ibeka-consent-button:focus-visible,
.ibeka-consent-close:focus-visible,
.ibeka-consent-category-expand:focus-visible,
.ibeka-consent-reopen:focus-visible {
    outline: 3px solid rgba(198, 161, 91, .35);
    outline-offset: 2px;
}

.ibeka-consent-button-outline {
    background: #fff;
    border: 1px solid #b49350;
    color: #765d29;
}

.ibeka-consent-button-outline:hover {
    background: #faf7f0;
    border-color: #9c7a39;
    color: #5d481f;
}

.ibeka-consent-button-primary {
    background: #c6a15b;
    border: 1px solid #c6a15b;
    color: #171717;
}

.ibeka-consent-button-primary:hover {
    background: #b6904a;
    border-color: #b6904a;
    color: #111;
}

.ibeka-consent-modal-overlay {
    align-items: center;
    background: rgba(0, 0, 0, .64);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 30px 18px;
    position: fixed;
    z-index: 1000010;
}

.ibeka-consent-modal-overlay[hidden] {
    display: none !important;
}

.ibeka-consent-modal {
    background: #fff;
    border-radius: 8px;
    box-shadow:
        0 20px 70px rgba(0, 0, 0, .35);
    color: #222;
    display: flex;
    flex-direction: column;
    font-family:
        Arial,
        Helvetica,
        sans-serif;
    max-height: min(820px, calc(100vh - 60px));
    max-width: 780px;
    overflow: hidden;
    width: 100%;
}

.ibeka-consent-modal-header {
    align-items: center;
    border-bottom: 1px solid #e6e6e6;
    display: flex;
    justify-content: space-between;
    min-height: 68px;
    padding: 18px 22px;
}

.ibeka-consent-modal-header h2 {
    color: #171717;
    font-family:
        Arial,
        Helvetica,
        sans-serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    padding: 0;
}

.ibeka-consent-close {
    align-items: center;
    background: transparent;
    border: 0;
    color: #777;
    cursor: pointer;
    display: inline-flex;
    font-size: 28px;
    height: 34px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 34px;
}

.ibeka-consent-close:hover {
    color: #171717;
}

.ibeka-consent-modal-body {
    overflow-y: auto;
    padding: 20px 22px;
}

.ibeka-consent-preference-intro {
    color: #505050;
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 18px;
}

.ibeka-consent-categories {
    border-top: 1px solid #e7e7e7;
}

.ibeka-consent-category {
    border-bottom: 1px solid #e7e7e7;
    padding: 16px 0;
}

.ibeka-consent-category-top {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
}

.ibeka-consent-category-expand {
    align-items: center;
    background: transparent;
    border: 0;
    color: #222;
    cursor: pointer;
    display: inline-flex;
    flex: 1;
    font-family:
        Arial,
        Helvetica,
        sans-serif;
    font-size: 15px;
    gap: 9px;
    justify-content: flex-start;
    padding: 0;
    text-align: left;
}

.ibeka-consent-chevron {
    display: inline-block;
    font-size: 17px;
    transition: transform .15s ease;
}

.ibeka-consent-category-expand[aria-expanded="false"]
.ibeka-consent-chevron {
    transform: rotate(-90deg);
}

.ibeka-consent-category-description {
    color: #595959;
    font-size: 13px;
    line-height: 1.6;
    padding:
        10px 52px
        0 26px;
}

.ibeka-consent-category-description[hidden] {
    display: none;
}

.ibeka-consent-always-active {
    color: #39843e;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.ibeka-consent-switch {
    display: inline-block;
    flex: 0 0 auto;
    height: 24px;
    position: relative;
    width: 44px;
}

.ibeka-consent-switch input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.ibeka-consent-switch-slider {
    background: #aaa;
    border-radius: 999px;
    cursor: pointer;
    inset: 0;
    position: absolute;
    transition: .18s ease;
}

.ibeka-consent-switch-slider::before {
    background: #fff;
    border-radius: 50%;
    bottom: 3px;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, .22);
    content: "";
    height: 18px;
    left: 3px;
    position: absolute;
    transition: .18s ease;
    width: 18px;
}

.ibeka-consent-switch
input:checked
+
.ibeka-consent-switch-slider {
    background: #c6a15b;
}

.ibeka-consent-switch
input:checked
+
.ibeka-consent-switch-slider::before {
    transform: translateX(20px);
}

.ibeka-consent-modal-footer {
    background: #fafafa;
    border-top: 1px solid #e5e5e5;
    display: grid;
    gap: 9px;
    grid-template-columns:
        repeat(3, 1fr);
    padding: 16px 22px;
}

.ibeka-consent-reopen {
    align-items: center;
    background: #171717;
    border: 2px solid #c6a15b;
    border-radius: 50%;
    bottom: 22px;
    box-shadow:
        0 5px 18px rgba(0, 0, 0, .25);
    color: #d8b76a;
    cursor: pointer;
    display: flex;
    font-size: 17px;
    height: 48px;
    justify-content: center;
    left: 22px;
    position: fixed;
    width: 48px;
    z-index: 1000000;
}

.ibeka-consent-reopen[hidden] {
    display: none !important;
}

.ibeka-consent-preview-error {
    background: #b32d2e;
    bottom: 20px;
    color: #fff;
    left: 20px;
    max-width: 500px;
    padding: 14px;
    position: fixed;
    z-index: 1000000;
}

@media (max-width: 640px) {
    .ibeka-consent-banner {
        bottom: 12px;
        left: 12px;
        max-width: calc(100vw - 24px);
        padding: 18px;
        width: calc(100vw - 24px);
    }

    .ibeka-consent-banner-actions {
        grid-template-columns: 1fr;
    }

    .ibeka-consent-preview-label {
        display: none;
    }

    .ibeka-consent-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .ibeka-consent-modal {
        border-radius: 10px 10px 0 0;
        max-height: 92vh;
    }

    .ibeka-consent-modal-header,
    .ibeka-consent-modal-body {
        padding-left: 17px;
        padding-right: 17px;
    }

    .ibeka-consent-modal-footer {
        grid-template-columns: 1fr;
        padding:
            14px 17px
            calc(14px + env(safe-area-inset-bottom));
    }

    .ibeka-consent-category-description {
        padding-right: 10px;
    }
}

/* ==========================================================
   Ibeka Consent 0.5.0 - production state
   ========================================================== */

html.ibeka-consent-modal-open {
    overflow: hidden;
}

.ibeka-consent-root[
    data-ibeka-consent-ready="0"
] {
    visibility: hidden;
}

.ibeka-consent-root[
    data-ibeka-consent-ready="1"
] {
    visibility: visible;
}

/*
 * Preview-only label is never generated by production frontend.
 */
.ibeka-consent-root
.ibeka-consent-preview-label {
    display: none !important;
}
