/* Cookie Consent – Modern Style */
.js-lcc-active {
    overflow: hidden;
}

[class^="lcc-"] {
    box-sizing: border-box !important;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
}

[class^="lcc-"][inert] {
    cursor: default;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

/* Backdrop */
.lcc-backdrop {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    bottom: 0;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    transition: opacity 0.3s ease;
    z-index: 10000;
}

/* Modal Base */
.lcc-modal {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    left: 50%;
    max-height: 90vh;
    max-width: 92%;
    overflow: auto;
    padding: 2rem;
    position: fixed;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 480px;
    z-index: 10001;
}

.lcc-modal.lcc-modal--settings {
    width: 540px;
    z-index: 10002;
}

/* Modal Icon */
.lcc-modal__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(41, 64, 143, 0.08);
    color: #29408f;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Modal Header (Settings) */
.lcc-modal__header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    position: relative;
}

.lcc-modal__header .lcc-modal__icon {
    margin-bottom: 0;
    flex-shrink: 0;
}

.lcc-modal__header .lcc-modal__title {
    margin-bottom: 0;
    padding-right: 2rem;
}

/* Close Button */
.lcc-modal__close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.25rem;
    position: absolute;
    right: 0;
    top: 0;
    transition: color 0.2s ease;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.lcc-modal__close:hover,
.lcc-modal__close:focus {
    color: #333;
    background: #f5f5f5;
}

/* Title */
.lcc-modal__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

/* Text */
.lcc-text {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 1rem;
    line-height: 1.6;
}

.lcc-text a {
    color: #29408f;
    text-decoration: underline;
}

.lcc-text a:hover {
    text-decoration: none;
}

/* Buttons */
.lcc-button {
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    transition: all 0.2s ease;
    text-align: center;
    line-height: 1.4;
}

.lcc-button--primary {
    background: #29408f;
    color: #fff;
}

.lcc-button--primary:hover,
.lcc-button--primary:focus {
    background: #1e3070;
}

.lcc-button--outline {
    background: #fff;
    border: 1px solid #d0d5dd;
    color: #344054;
}

.lcc-button--outline:hover,
.lcc-button--outline:focus {
    background: #f9fafb;
    border-color: #98a2b3;
}

.lcc-button--ghost {
    background: transparent;
    border: none;
    color: #667085;
    padding: 0.65rem 0.5rem;
}

.lcc-button--ghost:hover,
.lcc-button--ghost:focus {
    color: #29408f;
}

/* Actions */
.lcc-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.lcc-modal__actions > * {
    width: 100%;
}

.lcc-modal__actions-center {
    justify-content: center;
}

/* Accept All in Settings */
.lcc-modal__accept-all {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #eaecf0;
}

.lcc-modal__accept-all .lcc-button {
    width: 100%;
}

/* Sections */
.lcc-modal__section {
    padding: 0.875rem 0;
    border-bottom: 1px solid #f2f4f7;
}

.lcc-modal__section:last-child {
    border-bottom: none;
}

.lcc-modal__section .lcc-text {
    margin: 0.375rem 0 0 3.25rem;
    font-size: 0.8rem;
}

/* Toggle Switch */
.lcc-toggle {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

.lcc-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.lcc-toggle__slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #d0d5dd;
    border-radius: 22px;
    transition: background 0.2s ease;
}

.lcc-toggle__slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.lcc-toggle input:checked + .lcc-toggle__slider {
    background: #29408f;
}

.lcc-toggle input:checked + .lcc-toggle__slider::before {
    transform: translateX(18px);
}

.lcc-toggle input:disabled + .lcc-toggle__slider {
    opacity: 0.6;
    cursor: default;
}

.lcc-toggle input:disabled:checked + .lcc-toggle__slider {
    background: #29408f;
    opacity: 0.5;
}

/* Label */
.lcc-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    cursor: pointer;
}

.lcc-label[for] {
    cursor: pointer;
}

.lcc-label__text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lcc-label__title {
    font-weight: 600;
    font-size: 0.875rem;
    color: #344054;
}

/* Badge */
.lcc-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.lcc-badge--always {
    background: #f0f4ff;
    color: #29408f;
}

/* Utility */
.lcc-u-sr-only {
    clip: rect(0, 0, 0, 0);
    border: 0;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/* Responsive */
@media (max-width: 575px) {
    .lcc-modal {
        padding: 1.5rem;
        border-radius: 1rem 1rem 0 0;
        bottom: 0;
        top: auto;
        left: 0;
        right: 0;
        max-width: 100%;
        width: 100%;
        transform: none;
        max-height: 85vh;
    }

    .lcc-modal.lcc-modal--settings {
        width: 100%;
    }

    .lcc-modal__icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}
