/* Cookie consent Kanouga */
.kn-cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 12000;
    max-width: 42rem;
    margin-inline: auto;
    background: #0a0a0a;
    color: #fff;
    border-radius: 1rem;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
    border-top: 3px solid #e30613;
}

.kn-cookie-banner__inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.1rem 1.2rem 1.2rem;
}

.kn-cookie-banner__title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 800;
}

.kn-cookie-banner__text p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.82);
}

.kn-cookie-banner__text a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.kn-cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.kn-cookie-btn {
    border: 0;
    border-radius: 999px;
    padding: 0.55rem 1rem;
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
}

.kn-cookie-btn--primary {
    background: #e30613;
    color: #fff;
}

.kn-cookie-btn--primary:hover {
    background: #b80510;
}

.kn-cookie-btn--ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.kn-cookie-btn--link {
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    padding-inline: 0.5rem;
}

.kn-cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 12010;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.kn-cookie-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.55);
}

.kn-cookie-modal__panel {
    position: relative;
    width: min(32rem, 100%);
    max-height: min(90vh, 40rem);
    overflow: auto;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.kn-cookie-modal__header,
.kn-cookie-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.kn-cookie-modal__footer {
    border-bottom: 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    flex-wrap: wrap;
}

.kn-cookie-modal__header h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
}

.kn-cookie-modal__close {
    border: 0;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
}

.kn-cookie-modal__body {
    padding: 1rem 1.15rem;
}

.kn-cookie-modal__body > p {
    margin: 0 0 1rem;
    color: #475569;
    font-size: 0.9rem;
}

.kn-cookie-cat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.kn-cookie-cat h3 {
    margin: 0 0 0.2rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.kn-cookie-cat p {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
}

.kn-cookie-switch {
    position: relative;
    width: 2.6rem;
    height: 1.45rem;
    flex-shrink: 0;
}

.kn-cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.kn-cookie-switch span {
    position: absolute;
    inset: 0;
    background: #cbd5e1;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.kn-cookie-switch span::before {
    content: '';
    position: absolute;
    width: 1.1rem;
    height: 1.1rem;
    left: 0.18rem;
    top: 0.175rem;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.15s ease;
}

.kn-cookie-switch input:checked + span {
    background: #e30613;
}

.kn-cookie-switch input:checked + span::before {
    transform: translateX(1.15rem);
}

.kn-cookie-switch input:disabled + span {
    opacity: 0.7;
    cursor: not-allowed;
}

.kn-cookie-modal__footer a {
    color: #e30613;
    font-weight: 600;
    font-size: 0.85rem;
}

.kn-cookie-modal__actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.kn-cookie-modal__actions .kn-cookie-btn--ghost {
    background: #f1f5f9;
    color: #0a0a0a;
    border: 1px solid rgba(15, 23, 42, 0.1);
}

@media (min-width: 720px) {
    .kn-cookie-banner__inner {
        flex-direction: row;
        align-items: center;
    }
    .kn-cookie-banner__actions {
        flex-shrink: 0;
        justify-content: flex-end;
    }
}

/* Newsletter popup */
.kn-nl-popup {
    position: fixed;
    inset: 0;
    z-index: 11900;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

body.kn-nl-open {
    overflow: hidden;
}

.kn-nl-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.55);
}

.kn-nl-popup__panel {
    position: relative;
    width: min(26rem, 100%);
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.kn-nl-popup__close {
    position: absolute;
    top: 0.55rem;
    right: 0.65rem;
    z-index: 2;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #0a0a0a;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.kn-nl-popup__media {
    aspect-ratio: 16 / 9;
    background: #0a0a0a;
    overflow: hidden;
}

.kn-nl-popup__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.kn-nl-popup__body {
    padding: 1.15rem 1.2rem 1.35rem;
}

.kn-nl-popup__title {
    margin: 0 0 0.45rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: #0a0a0a;
}

.kn-nl-popup__text {
    margin: 0 0 1rem;
    color: #475569;
    font-size: 0.925rem;
    line-height: 1.5;
}

.kn-nl-popup__form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.kn-nl-popup__input {
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 0.65rem;
    padding: 0.7rem 0.85rem;
    font-size: 0.95rem;
}

.kn-nl-popup__input:focus {
    outline: none;
    border-color: rgba(227, 6, 19, 0.45);
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.12);
}

.kn-nl-popup__submit {
    border: 0;
    border-radius: 999px;
    background: #e30613;
    color: #fff;
    font-weight: 700;
    padding: 0.7rem 1rem;
    cursor: pointer;
}

.kn-nl-popup__submit:hover {
    background: #b80510;
}

.kn-nl-popup__submit:disabled {
    opacity: 0.65;
    cursor: wait;
}

.kn-nl-popup__dont {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    color: #475569;
    cursor: pointer;
    user-select: none;
}

.kn-nl-popup__info {
    margin: 0;
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.4;
}

.kn-nl-popup__message {
    font-size: 0.875rem;
    font-weight: 600;
}

.kn-nl-popup__message--success {
    color: #15803d;
}

.kn-nl-popup__message--error {
    color: #b91c1c;
}
