/* KP Consent Mode — küpsiste bänner */
.kp-consent {
    --kp-c-navy:   #032e68;
    --kp-c-orange: #e95e23;
    position: fixed;
    z-index: 999999;
    font-family: 'Nunito', 'Dosis', -apple-system, sans-serif;
    box-sizing: border-box;
}
.kp-consent * { box-sizing: border-box; }

/* Asukohad */
.kp-consent[data-position="bottom"] {
    left: 0; right: 0; bottom: 0;
}
.kp-consent[data-position="bottom-left"] {
    left: 20px; bottom: 20px; max-width: 440px;
}
.kp-consent[data-position="bottom-right"] {
    right: 20px; bottom: 20px; max-width: 440px;
}
.kp-consent[data-position="center"] {
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(3,46,104,.4);
    backdrop-filter: blur(3px);
}

/* Kast */
.kp-consent-box {
    background: #fff;
    box-shadow: 0 8px 40px rgba(3,46,104,.2);
    border-top: 3px solid var(--kp-c-orange);
}
.kp-consent[data-position="bottom"] .kp-consent-box {
    padding: 20px 32px;
}
.kp-consent[data-position="bottom-left"] .kp-consent-box,
.kp-consent[data-position="bottom-right"] .kp-consent-box {
    border-radius: 10px;
    border-top: none;
    border-left: 3px solid var(--kp-c-orange);
    padding: 22px 24px;
}
.kp-consent[data-position="center"] .kp-consent-box {
    border-radius: 12px;
    border-top: none;
    border-top: 4px solid var(--kp-c-orange);
    max-width: 480px;
    width: calc(100% - 40px);
    padding: 28px;
}

/* Põhivaade */
.kp-consent[data-position="bottom"] .kp-consent-main {
    display: flex;
    align-items: center;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}
.kp-consent-text { flex: 1; }
.kp-consent-text p {
    margin: 0;
    font-size: 23px;
    line-height: 1.55;
    color: #444;
}
.kp-consent-link {
    color: var(--kp-c-orange);
    text-decoration: underline;
    font-weight: 600;
    white-space: nowrap;
}
.kp-consent-link:hover { color: var(--kp-c-navy); }

/* Nupud */
.kp-consent-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.kp-consent[data-position="bottom-left"] .kp-consent-actions,
.kp-consent[data-position="bottom-right"] .kp-consent-actions,
.kp-consent[data-position="center"] .kp-consent-actions {
    margin-top: 20px;
    flex-wrap: wrap;
}
.kp-consent-btn {
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .03em;
    padding: 10px 22px;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .15s;
    white-space: nowrap;
}
.kp-consent-btn--primary {
    background: var(--kp-c-orange);
    color: #fff;
    border-color: var(--kp-c-orange);
}
.kp-consent-btn--primary:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}
.kp-consent-btn--ghost {
    background: transparent;
    color: var(--kp-c-navy);
    border-color: rgba(3,46,104,.2);
}
.kp-consent-btn--ghost:hover {
    border-color: var(--kp-c-navy);
    background: rgba(3,46,104,.04);
}

/* Kohanda vaade */
.kp-consent-title {
    margin: 0 0 18px;
    font-size: 18px;
    font-weight: 800;
    color: var(--kp-c-navy);
}
.kp-consent[data-position="bottom"] .kp-consent-custom {
    max-width: 1200px;
    margin: 0 auto;
}
.kp-consent-categories {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 20px;
}
.kp-consent[data-position="bottom"] .kp-consent-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 32px;
}
.kp-consent-cat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}
.kp-consent-cat-info { display: flex; flex-direction: column; gap: 2px; }
.kp-consent-cat-info strong { font-size: 14px; color: var(--kp-c-navy); font-weight: 700; }
.kp-consent-cat-info small  { font-size: 12px; color: #888; line-height: 1.4; }
.kp-consent-cat input[type="checkbox"] {
    width: 42px; height: 24px;
    appearance: none; -webkit-appearance: none;
    background: #ccc;
    border-radius: 12px;
    position: relative;
    cursor: pointer;
    transition: background .2s;
    flex-shrink: 0;
}
.kp-consent-cat input[type="checkbox"]::after {
    content: '';
    position: absolute;
    top: 2px; left: 2px;
    width: 20px; height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
}
.kp-consent-cat input[type="checkbox"]:checked { background: var(--kp-c-orange); }
.kp-consent-cat input[type="checkbox"]:checked::after { transform: translateX(18px); }
.kp-consent-cat--locked input[type="checkbox"] { background: var(--kp-c-navy); opacity: .5; cursor: not-allowed; }

/* Reopen nupp */
.kp-consent-reopen {
    position: fixed;
    left: 16px; bottom: 16px;
    z-index: 999998;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #032e68;
    color: #fff;
    border: 3px solid #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(3,46,104,.3);
    transition: transform .2s, background .2s;
    opacity: 1;
}
.kp-consent-reopen:hover {
    background: #e95e23;
    border-color: #fff;
    transform: scale(1.08);
}

/* Mobiil */
@media (max-width: 768px) {
    .kp-consent[data-position="bottom"] .kp-consent-main { flex-direction: column; align-items: stretch; gap: 16px; }
    .kp-consent[data-position="bottom"] .kp-consent-categories { grid-template-columns: 1fr; }
    .kp-consent-actions { flex-wrap: wrap; }
    .kp-consent-btn { flex: 1; min-width: 100px; }
    .kp-consent[data-position="bottom"] .kp-consent-box { padding: 16px 20px; }
}
