/**
 * Kalistenika Cookie Consent Styles
 * Author: Sensei
 */

.kcc-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999999;
    font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    animation: kcc-slide-up 0.4s ease-out;
}

.kcc-cookie-banner.kcc-position-bottom {
    bottom: 0;
}

.kcc-cookie-banner.kcc-position-top {
    top: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: kcc-slide-down 0.4s ease-out;
}

.kcc-cookie-banner__container {
    max-width: 100%;
    margin: 0 auto;
    padding: clamp(16px, 2vw, 24px) clamp(20px, 4vw, 40px);
    box-sizing: border-box;
}

.kcc-cookie-banner__content {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2vw, 20px);
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.kcc-cookie-banner__message {
    margin: 0;
    font-size: clamp(14px, 1.8vw, 16px);
    line-height: 1.6;
    text-align: center;
    flex: 1;
}

.kcc-cookie-banner__actions {
    display: flex;
    flex-direction: row;
    gap: clamp(12px, 2vw, 20px);
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.kcc-cookie-banner__link {
    color: inherit;
    text-decoration: underline;
    font-size: clamp(14px, 1.8vw, 16px);
    transition: opacity 0.2s ease;
    opacity: 0.9;
}

.kcc-cookie-banner__link:hover {
    opacity: 1;
}

.kcc-cookie-banner__button {
    padding: clamp(10px, 1.5vw, 14px) clamp(24px, 3vw, 32px);
    font-size: clamp(14px, 1.8vw, 16px);
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-transform: none;
    letter-spacing: 0;
    min-width: 120px;
}

.kcc-cookie-banner__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.kcc-cookie-banner__button:active {
    transform: translateY(0);
}

/* Responsive */
@media (min-width: 768px) {
    .kcc-cookie-banner__content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .kcc-cookie-banner__message {
        text-align: left;
        flex: 1;
        margin-right: clamp(20px, 3vw, 40px);
    }

    .kcc-cookie-banner__actions {
        flex-shrink: 0;
    }
}

@media (max-width: 767px) {
    .kcc-cookie-banner__container {
        padding: clamp(14px, 2vw, 20px) clamp(16px, 3vw, 24px);
    }

    .kcc-cookie-banner__button {
        width: 100%;
        min-width: auto;
    }
}

/* Animations */
@keyframes kcc-slide-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes kcc-slide-down {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Hide banner when accepted */
.kcc-cookie-banner.kcc-hidden {
    display: none !important;
}
