/* =====================================================
   KICKWISE v2 — Cookie Consent
   Compact, modern legal widget with calm mobile behavior.
===================================================== */

.kw-cookie-consent,
.kw-cookie-consent * {
    box-sizing: border-box;
}

.kw-cookie-consent[hidden],
.kw-cookie-floating-trigger[hidden] {
    display: none !important;
}

.kw-cookie-consent {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 9999;
    width: min(470px, calc(100vw - 36px));
    pointer-events: none;
}

.kw-cookie-consent__panel {
    width: 100%;
    padding: 16px;
    border: 1px solid rgba(0, 49, 114, .105);
    border-radius: 17px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.985), rgba(248,251,255,.965));
    box-shadow: 0 18px 42px rgba(0,49,114,.075);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    pointer-events: auto;
}

.kw-cookie-consent__header {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.kw-cookie-consent__mark {
    width: 31px;
    height: 31px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,49,114,.10);
    border-radius: 10px;
    background: rgba(255,255,255,.84);
    color: #003172;
}

.kw-cookie-consent__mark svg,
.kw-cookie-floating-trigger svg {
    width: 15px;
    height: 15px;
    stroke-width: 1.7;
}

.kw-cookie-consent__copy {
    min-width: 0;
}

.kw-cookie-consent__eyebrow,
.kw-cookie-policy-tools__eyebrow {
    display: inline-flex;
    margin: 0 0 4px;
    color: rgba(0,49,114,.54);
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 9px;
    font-weight: 760;
    letter-spacing: .13em;
    line-height: 1;
    text-transform: uppercase;
}

.kw-cookie-consent h2 {
    margin: 0;
    color: #003172;
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 15.2px;
    font-weight: 700;
    letter-spacing: -.026em;
    line-height: 1.18;
}

.kw-cookie-consent__text {
    margin: 10px 0 0;
    color: rgba(0,49,114,.66);
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 12.2px;
    font-weight: 420;
    line-height: 1.55;
}

.kw-cookie-consent__links {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 7px;
    margin-top: 10px;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
}

.kw-cookie-consent__links a,
.kw-cookie-consent__links span {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    color: rgba(0,49,114,.72);
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 11.6px;
    font-weight: 660;
    line-height: 1;
}

.kw-cookie-consent__links a {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.kw-cookie-consent__links a:hover {
    color: #003172;
}

.kw-cookie-consent__links::-webkit-scrollbar {
    display: none;
}

.kw-cookie-consent__actions {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 13px;
    min-width: 0;
}

.kw-cookie-btn,
.kw-footer-cookie-button,
.kw-cookie-policy-tools__button,
.kw-cookie-floating-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 31px;
    padding: 0 10px;
    border: 1px solid rgba(0,49,114,.12);
    border-radius: 9px;
    background: rgba(255,255,255,.78);
    color: #003172;
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 11px;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none;
    transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.kw-cookie-btn {
    flex: 1 1 0;
    min-width: 0;
}

.kw-cookie-btn:hover,
.kw-cookie-policy-tools__button:hover,
.kw-cookie-floating-trigger:hover {
    border-color: rgba(0,49,114,.20);
    background: #fff;
    color: #003172;
}

.kw-cookie-btn--primary,
.kw-cookie-policy-tools__button {
    border-color: #003172;
    background: #003172;
    color: #fff;
}

.kw-cookie-btn--primary:hover,
.kw-cookie-policy-tools__button:hover {
    background: #052a61;
    color: #fff;
}

.kw-cookie-btn--plain {
    flex: .85 1 0;
    border-color: transparent;
    background: transparent;
    color: rgba(0,49,114,.70);
}

.kw-cookie-btn[hidden] {
    display: none !important;
}

.kw-cookie-consent__preferences {
    display: grid;
    gap: 8px;
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px solid rgba(0,49,114,.08);
}

.kw-cookie-consent__preferences[hidden] {
    display: none !important;
}

.kw-cookie-consent__option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    padding: 9px;
    border: 1px solid rgba(0,49,114,.08);
    border-radius: 11px;
    background: rgba(246,249,252,.72);
}

.kw-cookie-consent__option input {
    width: 14px;
    height: 14px;
    margin-top: 1px;
    accent-color: #003172;
}

.kw-cookie-consent__option strong {
    display: block;
    color: #003172;
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 11.8px;
    line-height: 1.25;
}

.kw-cookie-consent__option small {
    display: block;
    margin-top: 3px;
    color: rgba(0,49,114,.56);
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 11px;
    line-height: 1.38;
}

.kw-cookie-floating-trigger {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 9998;
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border-radius: 12px;
    background: rgba(255,255,255,.92);
    color: rgba(0,49,114,.78);
    box-shadow: 0 10px 24px rgba(0,49,114,.08);
}

.kw-cookie-policy-tools {
    width: min(880px, calc(100% - 32px));
    margin: 24px auto 0;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid rgba(0,49,114,.09);
    border-radius: 15px;
    background: rgba(255,255,255,.74);
    box-shadow: 0 10px 28px rgba(0,49,114,.045);
}

.kw-cookie-policy-tools h2 {
    margin: 0;
    color: #003172;
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 17px;
    font-weight: 720;
    letter-spacing: -.025em;
}

.kw-cookie-policy-tools p {
    margin: 5px 0 0;
    color: rgba(0,49,114,.62);
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 12.2px;
    line-height: 1.5;
}

.kw-footer-cookie-button {
    min-height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    box-shadow: none;
}

.kw-footer-cookie-button:hover {
    background: transparent;
    box-shadow: none;
    text-decoration: underline;
    text-underline-offset: 3px;
}

html[data-theme="dark"] .kw-cookie-consent__panel {
    border-color: rgba(255,255,255,.105);
    background:
        linear-gradient(180deg, rgba(18,18,20,.96), rgba(9,9,10,.95));
    box-shadow: 0 18px 42px rgba(0,0,0,.30);
}

html[data-theme="dark"] .kw-cookie-consent__mark {
    border-color: rgba(255,255,255,.12);
    background: rgba(255,255,255,.055);
    color: rgba(255,255,255,.88);
}

html[data-theme="dark"] .kw-cookie-consent__eyebrow,
html[data-theme="dark"] .kw-cookie-policy-tools__eyebrow {
    color: rgba(255,255,255,.52);
}

html[data-theme="dark"] .kw-cookie-consent h2,
html[data-theme="dark"] .kw-cookie-consent__option strong,
html[data-theme="dark"] .kw-cookie-policy-tools h2 {
    color: #f7f4ed;
}

html[data-theme="dark"] .kw-cookie-consent__text,
html[data-theme="dark"] .kw-cookie-consent__option small,
html[data-theme="dark"] .kw-cookie-policy-tools p {
    color: rgba(232,235,241,.66);
}

html[data-theme="dark"] .kw-cookie-consent__links a,
html[data-theme="dark"] .kw-cookie-consent__links span {
    color: rgba(255,255,255,.72);
}

html[data-theme="dark"] .kw-cookie-consent__links a:hover {
    color: #fff;
}

html[data-theme="dark"] .kw-cookie-btn,
html[data-theme="dark"] .kw-cookie-policy-tools__button,
html[data-theme="dark"] .kw-cookie-floating-trigger {
    border-color: rgba(255,255,255,.13);
    background: rgba(255,255,255,.055);
    color: rgba(255,255,255,.84);
}

html[data-theme="dark"] .kw-cookie-btn:hover,
html[data-theme="dark"] .kw-cookie-policy-tools__button:hover,
html[data-theme="dark"] .kw-cookie-floating-trigger:hover {
    border-color: rgba(255,255,255,.22);
    background: rgba(255,255,255,.09);
    color: #fff;
}

html[data-theme="dark"] .kw-cookie-btn--primary,
html[data-theme="dark"] .kw-cookie-policy-tools__button {
    border-color: #fff;
    background: #fff;
    color: #111827;
}

html[data-theme="dark"] .kw-cookie-btn--primary:hover,
html[data-theme="dark"] .kw-cookie-policy-tools__button:hover {
    background: rgba(255,255,255,.90);
    color: #111827;
}

html[data-theme="dark"] .kw-cookie-btn--plain {
    border-color: transparent;
    background: transparent;
    color: rgba(255,255,255,.68);
}

html[data-theme="dark"] .kw-cookie-consent__preferences {
    border-top-color: rgba(255,255,255,.09);
}

html[data-theme="dark"] .kw-cookie-consent__option,
html[data-theme="dark"] .kw-cookie-policy-tools {
    border-color: rgba(255,255,255,.10);
    background: rgba(255,255,255,.045);
}

@media (max-width: 640px) {
    .kw-cookie-consent {
        left: 10px;
        right: 10px;
        bottom: 10px;
        width: auto;
    }

    .kw-cookie-consent__panel {
        padding: 12px;
        border-radius: 14px;
    }

    .kw-cookie-consent__header {
        gap: 8px;
    }

    .kw-cookie-consent__mark {
        width: 27px;
        height: 27px;
        border-radius: 9px;
    }

    .kw-cookie-consent__mark svg {
        width: 13px;
        height: 13px;
    }

    .kw-cookie-consent h2 {
        font-size: 14px;
        line-height: 1.14;
    }

    .kw-cookie-consent__text {
        margin-top: 8px;
        font-size: 11.1px;
        line-height: 1.45;
    }

    .kw-cookie-consent__links {
        gap: 5px;
        margin-top: 8px;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .kw-cookie-consent__links a,
    .kw-cookie-consent__links span {
        font-size: 10.8px;
        letter-spacing: -.015em;
    }

    .kw-cookie-consent__actions {
        gap: 5px;
        margin-top: 10px;
        flex-wrap: nowrap;
    }

    .kw-cookie-btn {
        min-height: 29px;
        padding: 0 6px;
        border-radius: 8px;
        font-size: 9.9px;
        letter-spacing: -.01em;
    }

    .kw-cookie-btn--plain {
        flex: .76 1 0;
    }

    .kw-cookie-consent__preferences {
        gap: 6px;
        margin-top: 10px;
        padding-top: 10px;
    }

    .kw-cookie-consent__option {
        padding: 8px;
    }

    .kw-cookie-consent__option strong {
        font-size: 11px;
    }

    .kw-cookie-consent__option small {
        font-size: 10.3px;
    }

    .kw-cookie-floating-trigger {
        left: 12px;
        right: auto;
        bottom: 12px;
        width: 33px;
        height: 33px;
        min-height: 33px;
        border-radius: 11px;
    }

    .kw-cookie-policy-tools {
        width: min(100% - 24px, 880px);
        display: grid;
        padding: 14px;
    }
}

@media (max-width: 360px) {
    .kw-cookie-consent__text {
        font-size: 10.8px;
    }

    .kw-cookie-consent__links a,
    .kw-cookie-consent__links span {
        font-size: 9.4px;
    }

    .kw-cookie-btn {
        min-height: 27px;
        padding: 0 5px;
        font-size: 9.1px;
    }
}

.kw-footer-cookie-button svg {
    width: 14px;
    height: 14px;
    stroke-width: 1.7;
}
