:root {
    --pm-consent-primary: #2d4b5e;
    --pm-consent-primary-hover: #213947;
    --pm-consent-bg: #ffffff;
    --pm-consent-text: #25343d;
    --pm-consent-muted: #667680;
    --pm-consent-border: #dce3e7;
    --pm-consent-soft: #f4f7f8;
    --pm-consent-shadow: 0 16px 50px rgba(20, 39, 50, 0.18);
}

.pm-consent-lock {
    overflow: hidden;
}

.pm-consent-banner,
.pm-consent-modal {
    box-sizing: border-box;
    font-family: "Manrope", Arial, sans-serif;
}

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

.pm-consent-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 2147483000;
}

.pm-consent-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 20px 22px;
    background: var(--pm-consent-bg);
    color: var(--pm-consent-text);
    border: 1px solid var(--pm-consent-border);
    border-radius: 14px;
    box-shadow: var(--pm-consent-shadow);
}

.pm-consent-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.pm-consent-title,
.pm-consent-modal-title {
    margin: 0 0 6px;
    color: var(--pm-consent-primary);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
}

.pm-consent-text,
.pm-consent-modal-intro,
.pm-consent-option-desc {
    color: var(--pm-consent-muted);
    font-size: 14px;
    line-height: 1.55;
}

.pm-consent-actions,
.pm-consent-modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.pm-consent-btn {
    appearance: none;
    border: 0;
    border-radius: 9px;
    padding: 11px 16px;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}

.pm-consent-btn:active {
    transform: translateY(1px);
}

.pm-consent-btn-primary {
    background: var(--pm-consent-primary);
    color: #ffffff;
    border: 1px solid var(--pm-consent-primary);
}

.pm-consent-btn-primary:hover {
    background: var(--pm-consent-primary-hover);
    border-color: var(--pm-consent-primary-hover);
}

.pm-consent-btn-secondary {
    background: #ffffff;
    color: var(--pm-consent-primary);
    border: 1px solid var(--pm-consent-border);
}

.pm-consent-btn-secondary:hover {
    background: var(--pm-consent-soft);
}

.pm-consent-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2147483100;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(20, 35, 44, 0.50);
}

.pm-consent-modal-open {
    display: flex;
}

.pm-consent-modal-box {
    position: relative;
    width: 100%;
    max-width: 670px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 26px;
    background: var(--pm-consent-bg);
    color: var(--pm-consent-text);
    border-radius: 16px;
    box-shadow: var(--pm-consent-shadow);
}

.pm-consent-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--pm-consent-muted);
    font-family: Arial, sans-serif;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.pm-consent-close:hover {
    background: var(--pm-consent-soft);
    color: var(--pm-consent-primary);
}

.pm-consent-modal-intro {
    margin: 0 40px 20px 0;
}

.pm-consent-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
    border-top: 1px solid var(--pm-consent-border);
}

.pm-consent-option-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.pm-consent-option-title {
    margin-bottom: 4px;
    color: var(--pm-consent-text);
    font-size: 15px;
    font-weight: 800;
}

.pm-consent-modal-actions {
    padding-top: 20px;
    border-top: 1px solid var(--pm-consent-border);
}

.pm-consent-switch {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    width: 48px;
    height: 27px;
}

.pm-consent-switch input {
    width: 0;
    height: 0;
    opacity: 0;
}

.pm-consent-slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    border-radius: 999px;
    background: #bcc7cd;
    transition: 0.18s ease;
}

.pm-consent-slider::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 4px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.20);
    transition: 0.18s ease;
}

.pm-consent-switch input:checked + .pm-consent-slider {
    background: var(--pm-consent-primary);
}

.pm-consent-switch input:checked + .pm-consent-slider::before {
    transform: translateX(21px);
}

.pm-consent-switch-disabled {
    opacity: 0.70;
}

.pm-consent-switch-disabled .pm-consent-slider {
    cursor: default;
}

[data-pm-consent-settings] {
    cursor: pointer;
}

@media (max-width: 820px) {
    .pm-consent-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .pm-consent-inner {
        display: block;
        padding: 18px;
        border-radius: 12px;
    }

    .pm-consent-actions {
        justify-content: stretch;
        margin-top: 16px;
    }

    .pm-consent-btn {
        flex: 1 1 150px;
    }
}

@media (max-width: 560px) {
    .pm-consent-modal {
        align-items: flex-end;
        padding: 0;
    }

    .pm-consent-modal-box {
        max-width: none;
        max-height: 92vh;
        padding: 22px 18px;
        border-radius: 18px 18px 0 0;
    }

    .pm-consent-option {
        gap: 14px;
    }

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

    .pm-consent-modal-actions .pm-consent-btn {
        width: 100%;
    }
}