.laerry-consent-banner,
.laerry-consent-modal,
.laerry-consent-banner *,
.laerry-consent-modal * {
    box-sizing: border-box;
}

.laerry-consent-banner {
    position: fixed;
    left: max(18px, env(safe-area-inset-left));
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 100000;
    width: min(880px, calc(100vw - 36px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(23, 32, 51, .08);
    border-radius: 28px;
    color: #172033;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 24px 80px rgba(23, 32, 51, .16);
    backdrop-filter: blur(24px);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.laerry-consent-copy strong {
    display: block;
    margin: 0 0 5px;
    font-size: 1.02rem;
    line-height: 1.15;
    letter-spacing: -.025em;
    font-weight: 900;
}

.laerry-consent-copy p {
    margin: 0;
    color: #64748b;
    font-size: .92rem;
    line-height: 1.45;
    font-weight: 650;
}

.laerry-consent-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.laerry-consent-button,
.laerry-consent-link {
    min-height: 42px;
    border-radius: 999px;
    padding: 0 16px;
    font: inherit;
    font-size: .9rem;
    font-weight: 850;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.laerry-consent-button:hover,
.laerry-consent-link:hover {
    transform: translateY(-1px);
}

.laerry-consent-button.primary {
    border: 1px solid #5b3ff2;
    color: #fff;
    background: #5b3ff2;
    box-shadow: 0 12px 28px rgba(91, 63, 242, .22);
}

.laerry-consent-button.secondary {
    border: 1px solid rgba(23, 32, 51, .10);
    color: #172033;
    background: #fff;
}

.laerry-consent-link {
    border: 0;
    color: #64748b;
    background: transparent;
    padding: 0 8px;
}

.laerry-consent-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, .38);
    backdrop-filter: blur(14px);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.laerry-consent-modal-backdrop.is-open {
    display: flex;
}

.laerry-consent-modal {
    position: relative;
    width: min(580px, 100%);
    max-height: min(760px, calc(100vh - 40px));
    overflow: auto;
    padding: 26px;
    border-radius: 32px;
    color: #172033;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 34px 100px rgba(15, 23, 42, .28);
}

.laerry-consent-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    color: #172033;
    background: #f4f6fb;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
}

.laerry-consent-modal-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    padding-right: 48px;
    margin-bottom: 18px;
}

.laerry-consent-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #5b3ff2;
    background: #f3f1ff;
    font-size: 1.15rem;
}

.laerry-consent-modal h2 {
    margin: 0 0 5px;
    font-size: clamp(1.45rem, 4vw, 2rem);
    line-height: 1.05;
    letter-spacing: -.04em;
    font-weight: 950;
}

.laerry-consent-modal p {
    margin: 0;
    color: #64748b;
    line-height: 1.45;
    font-weight: 650;
}

.laerry-consent-category {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid rgba(23, 32, 51, .08);
}

.laerry-consent-category strong {
    display: block;
    margin-bottom: 4px;
    font-size: .98rem;
    font-weight: 900;
}

.laerry-consent-category small {
    display: block;
    color: #64748b;
    font-size: .86rem;
    line-height: 1.4;
    font-weight: 650;
}

.laerry-consent-toggle {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
}

.laerry-consent-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.laerry-consent-toggle span {
    width: 48px;
    height: 28px;
    border-radius: 999px;
    background: #dbe3ef;
    cursor: pointer;
    transition: background .18s ease;
}

.laerry-consent-toggle span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(23, 32, 51, .18);
    transition: transform .18s ease;
}

.laerry-consent-toggle input:checked + span {
    background: #5b3ff2;
}

.laerry-consent-toggle input:checked + span::after {
    transform: translateX(20px);
}

.laerry-consent-toggle input:disabled + span {
    opacity: .62;
    cursor: not-allowed;
}

.laerry-consent-modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
    padding-top: 18px;
    border-top: 1px solid rgba(23, 32, 51, .08);
}

@media (max-width: 760px) {
    .laerry-consent-banner {
        grid-template-columns: 1fr;
        width: calc(100vw - 24px);
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 16px;
        border-radius: 24px;
    }

    .laerry-consent-actions {
        justify-content: stretch;
    }

    .laerry-consent-button,
    .laerry-consent-link {
        flex: 1 1 auto;
    }

    .laerry-consent-modal {
        padding: 22px;
        border-radius: 28px;
    }

    .laerry-consent-modal-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}
