#lektivoCookieModal {
    --bs-modal-width: 430px;
}

#lektivoCookieModal .modal-dialog {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: calc(100% - 2rem);
    max-width: 430px;
    margin: 0;
}

#lektivoCookieModal .modal-content {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.25rem;
    background:
        linear-gradient(
        145deg,
        rgba(22, 31, 49, 0.98),
        rgba(12, 19, 32, 0.98)
        );
    color: #fff;
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.48),
        0 0 0 1px rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(18px);
}

#lektivoCookieModal .modal-header {
    align-items: flex-start;
    padding: 1.35rem 1.35rem 0.75rem;
    border-bottom: 0;
}

#lektivoCookieModal .modal-body {
    padding: 0.5rem 1.35rem 1rem;
}

#lektivoCookieModal .modal-footer {
    display: block;
    padding: 0 1.35rem 1.35rem;
    border-top: 0;
}

#lektivoCookieModal .cookie-logo {
    display: block;
    width: auto;
    max-width: 145px;
    max-height: 42px;
    margin-bottom: 1rem;
    object-fit: contain;
}

#lektivoCookieModal .cookie-title {
    margin: 0 0 0.45rem;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

#lektivoCookieModal .cookie-description {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.93rem;
    line-height: 1.55;
}

#lektivoCookieModal .cookie-settings {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#lektivoCookieModal .cookie-settings.is-visible {
    display: block;
}

#lektivoCookieModal .cookie-category {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#lektivoCookieModal .cookie-category:last-child {
    border-bottom: 0;
}

#lektivoCookieModal .cookie-category-title {
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
    font-weight: 600;
}

#lektivoCookieModal .cookie-category-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.8rem;
    line-height: 1.4;
}

#lektivoCookieModal .form-check-input {
    width: 2.5rem;
    height: 1.3rem;
    cursor: pointer;
    border-color: rgba(255, 255, 255, 0.28);
    background-color: rgba(255, 255, 255, 0.14);
}

#lektivoCookieModal .form-check-input:checked {
    border-color: #4ea8ff;
    background-color: #4ea8ff;
}

#lektivoCookieModal .form-check-input:disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

#lektivoCookieModal .cookie-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

#lektivoCookieModal .cookie-buttons .btn {
    min-height: 44px;
    border-radius: 0.75rem;
    font-size: 0.88rem;
    font-weight: 600;
}

#lektivoCookieModal .btn-cookie-primary {
    border-color: #3e9af3;
    background: linear-gradient(135deg, #3193f2, #54b1ff);
    color: #fff;
}

#lektivoCookieModal .btn-cookie-primary:hover {
    border-color: #55b2ff;
    background: linear-gradient(135deg, #2588e6, #49a8f8);
    color: #fff;
}

#lektivoCookieModal .btn-cookie-secondary {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.9);
}

#lektivoCookieModal .btn-cookie-secondary:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

#lektivoCookieModal .btn-cookie-settings {
    width: 100%;
    margin-top: 0.65rem;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.83rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#lektivoCookieModal .btn-cookie-settings:hover {
    color: #fff;
}

#lektivoCookieModal .cookie-legal {
    margin-top: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    line-height: 1.4;
}

#lektivoCookieModal .cookie-legal a {
    color: rgba(255, 255, 255, 0.78);
}

#lektivoCookieModal .cookie-save-row {
    display: none;
    margin-top: 0.75rem;
}

#lektivoCookieModal .cookie-save-row.is-visible {
    display: block;
}

#lektivoCookieModal .modal-backdrop {
    background-color: transparent;
}

.lektivo-cookie-settings-button {
    position: fixed;
    right: 1rem;
    bottom: -10px;
    z-index: 1030;
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0.65rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 15px 15px 0px 0px;
    background: rgba(17, 26, 42, 0.94);
    color: #fff;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.32);
    font-size: 0.82rem;
    font-weight: 600;
    backdrop-filter: blur(14px);
}

.lektivo-cookie-settings-button:hover {
    background: rgba(27, 40, 63, 0.98);
}

@media (max-width: 575.98px) {
    #lektivoCookieModal .modal-dialog {
        right: 0.75rem;
        bottom: 0.75rem;
        width: calc(100% - 1.5rem);
    }

    #lektivoCookieModal .cookie-buttons {
        grid-template-columns: 1fr;
    }
}