/* Küpsisepaneel. Kujundus on mooduli enda failis (mitte teemas). */

/* ---------------------------------------------------------------------
   Küpsisepaneel (akt-core cookie-consent). Moodul annab märgistuse (#akt-cookie-banner,
   peidetud inline display:none, JS näitab) ja loogika; välimus on siin.
   --------------------------------------------------------------------- */

#akt-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
    background: #ffffff;
    color: var(--color-text);
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    font-size: 0.95rem;
}

.akt-cookie-content {
    flex: 1;
    min-width: 0;
}

.akt-cookie-text {
    margin: 0;
    line-height: 1.5;
    color: var(--color-text);
}

.akt-cookie-link,
.akt-cookie-link:visited {
    color: var(--color-text);
    font-weight: 600;
    text-decoration: none;
    margin-left: 5px;
}

.akt-cookie-link:hover {
    color: var(--color-text);
    text-decoration: underline;
}

.akt-cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.akt-btn {
    flex: 1 1 100%;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.akt-btn-accept {
    background: var(--color-accent);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.akt-btn-accept:hover {
    background: var(--color-accent-hover);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
    transform: translateY(-1px);
}

.akt-btn-necessary {
    background: #ffffff;
    color: var(--color-text);
    border-color: #e5e7eb;
}

.akt-btn-necessary:hover {
    background: #f3f4f6;
}

.akt-btn:focus-visible,
.akt-cookie-link:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

@media (min-width: 768px) {
    #akt-cookie-banner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        padding: 16px 40px;
    }

    .akt-cookie-buttons {
        flex-wrap: nowrap;
        flex-shrink: 0;
    }

    .akt-btn {
        flex: 0 0 auto;
    }
}

