/* Zivaro visual theme for CookieYes. Consent behavior remains owned by CookieYes. */
:root {
    --zsm-cookie-navy: #17365f;
    --zsm-cookie-blue: #245886;
    --zsm-cookie-violet: #6653df;
    --zsm-cookie-violet-dark: #4e3fc4;
    --zsm-cookie-mint: #31aa99;
    --zsm-cookie-coral: #ed6b61;
    --zsm-cookie-yellow: #f2c84b;
    --zsm-cookie-text: #53657a;
    --zsm-cookie-line: rgba(83, 101, 122, 0.16);
}

.cky-consent-container,
.cky-modal {
    font-family: "Rubik", "Heebo", Arial, sans-serif !important;
    direction: rtl !important;
}

/* Keep third-party branding out of the Zivaro experience.
 * The data attributes are CookieYes' semantic hooks and survive DOM reshuffles.
 */
[data-cky-tag="powered-by"],
[data-cky-tag="detail-powered-by"],
.cky-consent-container [aria-label="Visit CookieYes website"],
.cky-preference-center [aria-label="Visit CookieYes website"] {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.cky-consent-bar > div:has(> [data-cky-tag="powered-by"]),
.cky-footer-wrapper > div:has(> [data-cky-tag="detail-powered-by"]) {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.cky-consent-container {
    right: auto !important;
    left: 50% !important;
    bottom: 22px !important;
    width: min(680px, calc(100vw - 32px)) !important;
    max-width: 680px !important;
    transform: translateX(-50%) !important;
}

.cky-consent-container .cky-consent-bar {
    position: relative !important;
    overflow: hidden !important;
    padding: 28px !important;
    border: 2px solid rgba(102, 83, 223, 0.2) !important;
    border-radius: 28px !important;
    background:
        radial-gradient(circle at 7% 8%, rgba(49, 170, 153, 0.18), transparent 28%),
        radial-gradient(circle at 93% 92%, rgba(102, 83, 223, 0.16), transparent 31%),
        linear-gradient(145deg, #ffffff 0%, #fbfaff 52%, #f2fbf9 100%) !important;
    box-shadow:
        0 24px 60px rgba(23, 54, 95, 0.2),
        0 7px 18px rgba(23, 54, 95, 0.09) !important;
}

.cky-consent-container .cky-consent-bar::before,
.cky-preference-center::before {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    left: 0;
    height: 6px;
    content: "";
    background: linear-gradient(90deg, #31aa99, #f2c84b 38%, #ed6b61 68%, #7657e8);
}

.cky-consent-container .cky-notice-content-wrapper,
.cky-consent-container .cky-notice {
    position: relative !important;
    z-index: 3 !important;
}

.cky-consent-container .cky-title,
.cky-preference-center .cky-preference-title {
    color: var(--zsm-cookie-navy) !important;
    font-weight: 900 !important;
    letter-spacing: -0.02em !important;
}

.cky-consent-container .cky-title {
    margin-bottom: 12px !important;
    font-size: clamp(24px, 3.4vw, 31px) !important;
    line-height: 1.22 !important;
    text-align: center !important;
}

.cky-consent-container .cky-notice-des,
.cky-consent-container .cky-notice-des p,
.cky-preference-center .cky-preference-content-wrapper,
.cky-preference-center .cky-accordion-header-des {
    color: var(--zsm-cookie-text) !important;
    font-size: 16px !important;
    line-height: 1.75 !important;
    text-align: center !important;
}

.cky-consent-container .cky-notice-des a,
.cky-preference-center a {
    color: var(--zsm-cookie-violet-dark) !important;
    font-weight: 800 !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 3px !important;
}

.cky-consent-container .cky-notice-btn-wrapper,
.cky-preference-center .cky-prefrence-btn-wrapper {
    display: flex !important;
    gap: 10px !important;
    margin-top: 20px !important;
}

.cky-consent-container .cky-btn,
.cky-preference-center .cky-btn {
    min-height: 50px !important;
    margin: 0 !important;
    border-width: 2px !important;
    border-radius: 16px !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    box-shadow: 0 5px 0 rgba(23, 54, 95, 0.12) !important;
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease !important;
}

.cky-consent-container .cky-btn:hover,
.cky-preference-center .cky-btn:hover {
    filter: brightness(1.03) saturate(1.04) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 7px 0 rgba(23, 54, 95, 0.13) !important;
}

.cky-consent-container .cky-btn:focus-visible,
.cky-preference-center .cky-btn:focus-visible,
.cky-preference-center .cky-btn-close:focus-visible,
.cky-preference-center .cky-accordion-btn:focus-visible {
    outline: 3px solid rgba(36, 88, 134, 0.42) !important;
    outline-offset: 3px !important;
}

.cky-consent-container .cky-btn-accept,
.cky-preference-center .cky-btn-accept {
    color: #ffffff !important;
    border-color: var(--zsm-cookie-violet-dark) !important;
    background: linear-gradient(135deg, #7657e8, var(--zsm-cookie-violet-dark)) !important;
}

.cky-consent-container .cky-btn-reject,
.cky-preference-center .cky-btn-reject {
    color: var(--zsm-cookie-navy) !important;
    border-color: rgba(237, 107, 97, 0.65) !important;
    background: #fff2ee !important;
}

.cky-consent-container .cky-btn-customize,
.cky-preference-center .cky-btn-preferences {
    color: var(--zsm-cookie-navy) !important;
    border-color: rgba(49, 170, 153, 0.62) !important;
    background: #eaf8f5 !important;
}

.cky-modal {
    background: rgba(15, 37, 68, 0.52) !important;
    -webkit-backdrop-filter: blur(7px) !important;
    backdrop-filter: blur(7px) !important;
}

.cky-preference-center {
    position: relative !important;
    overflow: hidden !important;
    width: min(720px, calc(100vw - 32px)) !important;
    max-width: 720px !important;
    max-height: min(760px, calc(100vh - 32px)) !important;
    color: var(--zsm-cookie-navy) !important;
    border: 2px solid rgba(102, 83, 223, 0.2) !important;
    border-radius: 28px !important;
    background: linear-gradient(145deg, #ffffff 0%, #fbfaff 55%, #f2fbf9 100%) !important;
    box-shadow: 0 28px 80px rgba(11, 30, 58, 0.34) !important;
}

.cky-preference-center .cky-preference-header {
    padding: 28px 28px 18px !important;
    border-bottom: 1px solid var(--zsm-cookie-line) !important;
    background: linear-gradient(90deg, rgba(231, 246, 243, 0.86), rgba(242, 238, 255, 0.86)) !important;
}

.cky-preference-center .cky-preference-title {
    font-size: 27px !important;
    line-height: 1.25 !important;
}

.cky-preference-center .cky-btn-close {
    display: grid !important;
    width: 42px !important;
    height: 42px !important;
    padding: 11px !important;
    place-items: center !important;
    border: 1px solid rgba(23, 54, 95, 0.16) !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: 0 4px 12px rgba(23, 54, 95, 0.09) !important;
}

.cky-preference-center .cky-preference-content-wrapper {
    padding: 18px 28px 14px !important;
}

.cky-preference-center .cky-horizontal-separator {
    border-color: var(--zsm-cookie-line) !important;
}

.cky-preference-center .cky-accordion-wrapper {
    padding: 8px 20px 18px !important;
}

.cky-preference-center .cky-accordion {
    overflow: hidden !important;
    margin: 10px 0 !important;
    border: 1px solid rgba(83, 101, 122, 0.15) !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.88) !important;
    box-shadow: 0 7px 18px rgba(23, 54, 95, 0.06) !important;
}

.cky-preference-center .cky-accordion-item {
    padding: 15px 16px !important;
    border-right: 5px solid var(--zsm-cookie-mint) !important;
}

.cky-preference-center .cky-accordion:nth-child(2n) .cky-accordion-item {
    border-right-color: var(--zsm-cookie-violet) !important;
}

.cky-preference-center .cky-accordion:nth-child(3n) .cky-accordion-item {
    border-right-color: var(--zsm-cookie-coral) !important;
}

.cky-preference-center .cky-accordion-btn {
    color: var(--zsm-cookie-navy) !important;
    font-size: 17px !important;
    font-weight: 900 !important;
}

.cky-preference-center .cky-always-active {
    color: #127d6e !important;
    font-weight: 800 !important;
}

.cky-preference-center .cky-audit-table {
    color: var(--zsm-cookie-text) !important;
    border-color: var(--zsm-cookie-line) !important;
    background: #f6f8fc !important;
}

.cky-preference-center .cky-footer-wrapper {
    padding: 10px 22px 18px !important;
    border-top: 1px solid var(--zsm-cookie-line) !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

.cky-preference-center .cky-footer-shadow {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff) !important;
}

@media (max-width: 520px) {
    .cky-consent-container {
        bottom: 10px !important;
        width: calc(100vw - 20px) !important;
    }

    .cky-consent-container .cky-consent-bar {
        padding: 22px 17px 18px !important;
        border-radius: 23px !important;
    }

    .cky-consent-container .cky-title {
        margin-bottom: 8px !important;
        font-size: 23px !important;
    }

    .cky-consent-container .cky-notice-des,
    .cky-consent-container .cky-notice-des p {
        font-size: 14.5px !important;
        line-height: 1.58 !important;
    }

    .cky-consent-container .cky-notice-btn-wrapper,
    .cky-preference-center .cky-prefrence-btn-wrapper {
        flex-direction: column !important;
        gap: 8px !important;
        margin-top: 15px !important;
    }

    .cky-consent-container .cky-btn,
    .cky-preference-center .cky-btn {
        width: 100% !important;
        min-height: 46px !important;
        flex: 0 0 auto !important;
        border-radius: 14px !important;
        font-size: 15px !important;
    }

    .cky-preference-center {
        width: calc(100vw - 20px) !important;
        max-height: calc(100vh - 20px) !important;
        border-radius: 23px !important;
    }

    .cky-preference-center .cky-preference-header {
        padding: 22px 18px 14px !important;
    }

    .cky-preference-center .cky-preference-title {
        font-size: 23px !important;
    }

    .cky-preference-center .cky-preference-content-wrapper {
        padding: 14px 18px 10px !important;
        font-size: 14px !important;
        line-height: 1.55 !important;
    }

    .cky-preference-center .cky-accordion-wrapper {
        padding: 5px 10px 12px !important;
    }

    .cky-preference-center .cky-accordion-item {
        padding: 12px 11px !important;
    }

    .cky-preference-center .cky-accordion-header-des {
        font-size: 13px !important;
        line-height: 1.45 !important;
        text-align: right !important;
    }

    .cky-preference-center .cky-footer-wrapper {
        padding: 8px 12px 12px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cky-consent-container .cky-btn,
    .cky-preference-center .cky-btn {
        transition: none !important;
    }
}
