/*
 * KDR Group cookie consent banner.
 * Block: kdr-cookie
 * Keep selectors BEM-only. IDs are reserved for JS/a11y compatibility.
 */

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

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

.kdr-cookie__banner {
    position: fixed;
    right: 16px;
    bottom: 16px;
    left: 16px;
    z-index: 9999;
    font-family: "Rubik", sans-serif;
}

.kdr-cookie__banner-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px;
    color: #ffffff;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.kdr-cookie__title {
    margin: 0 0 8px;
    padding: 0;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
}

.kdr-cookie__text {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    line-height: 1.6;
}

.kdr-cookie__link {
    color: #93c5fd;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.kdr-cookie__link:hover,
.kdr-cookie__link:focus-visible {
    color: #bfdbfe;
}

.kdr-cookie__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.kdr-cookie__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 16px;
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.kdr-cookie__button:hover {
    transform: translateY(-1px);
}

.kdr-cookie__button:focus-visible,
.kdr-cookie__modal-close:focus-visible,
.kdr-cookie-option__control:focus-visible {
    outline: 3px solid rgba(147, 197, 253, 0.95);
    outline-offset: 3px;
}

.kdr-cookie__button--primary {
    color: #ffffff;
    background: #2563eb;
}

.kdr-cookie__button--primary:hover {
    background: #1d4ed8;
}

.kdr-cookie__button--secondary {
    color: #ffffff;
    background: #374151;
}

.kdr-cookie__button--secondary:hover {
    background: #4b5563;
}

.kdr-cookie__button--ghost {
    color: #ffffff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.26);
}

.kdr-cookie__button--ghost:hover {
    border-color: rgba(255, 255, 255, 0.58);
}

.kdr-cookie__modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    font-family: "Rubik", sans-serif;
}

.kdr-cookie__modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.56);
}

.kdr-cookie__modal-dialog {
    position: relative;
    z-index: 1;
    width: min(700px, calc(100% - 32px));
    max-height: calc(100vh - 32px);
    margin: 6vh auto 0;
    overflow: auto;
    color: #111827;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
}

.kdr-cookie__modal-header,
.kdr-cookie__modal-footer {
    padding: 18px 20px;
}

.kdr-cookie__modal-header {
    position: relative;
    border-bottom: 1px solid #e5e7eb;
}

.kdr-cookie__modal-title {
    margin: 0;
    padding: 0 42px 0 0;
    color: #111827;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
}

.kdr-cookie__modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    color: #111827;
    background: transparent;
    border-radius: 10px;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.kdr-cookie__modal-close:hover {
    background: #f3f4f6;
}

.kdr-cookie__modal-body {
    display: grid;
    gap: 14px;
    padding: 20px;
}

.kdr-cookie__modal-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    border-top: 1px solid #e5e7eb;
}

.kdr-cookie-option {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.kdr-cookie-option__main {
    display: block;
    padding-right: 12px;
}

.kdr-cookie-option__title {
    display: block;
    margin-bottom: 6px;
    color: #111827;
    font-weight: 700;
}

.kdr-cookie-option__description {
    display: block;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
}

.kdr-cookie-option__control {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    cursor: pointer;
}

@media (max-width: 900px) {
    .kdr-cookie__banner-inner {
        grid-template-columns: 1fr;
    }

    .kdr-cookie__actions {
        justify-content: stretch;
    }

    .kdr-cookie__actions .kdr-cookie__button,
    .kdr-cookie__modal-footer .kdr-cookie__button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .kdr-cookie__banner {
        right: 10px;
        bottom: 10px;
        left: 10px;
    }

    .kdr-cookie__banner-inner,
    .kdr-cookie__modal-body,
    .kdr-cookie__modal-header,
    .kdr-cookie__modal-footer {
        padding: 16px;
    }

    .kdr-cookie__title {
        font-size: 18px;
    }

    .kdr-cookie__modal-title {
        font-size: 20px;
    }

    .kdr-cookie-option {
        align-items: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kdr-cookie__button {
        transition: none;
    }

    .kdr-cookie__button:hover {
        transform: none;
    }
}
