:root {
    --pmcc-primary: #ee2b7b;
    --pmcc-navy: #102f46;
    --pmcc-text: #112b40;
    --pmcc-muted: #5b6e7d;
    --pmcc-border: #d5e0e8;
    --pmcc-panel: #f8fafc;
    --pmcc-white: #ffffff;
}

html.pmcc-modal-open,
html.pmcc-modal-open body {
    overflow: hidden !important;
}

.pmcc-banner,
.pmcc-overlay,
.pmcc-banner *,
.pmcc-overlay * {
    box-sizing: border-box;
}

.pmcc-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2147483000;
    background: var(--pmcc-white);
    color: var(--pmcc-text);
    border-top: 1px solid #edf1f4;
    box-shadow: 0 -8px 28px rgba(14, 43, 65, 0.08);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.pmcc-banner[hidden],
.pmcc-overlay[hidden] {
    display: none !important;
}

.pmcc-banner__inner {
    width: min(1660px, calc(100% - 48px));
    margin: 0 auto;
    min-height: 142px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 24px 0;
}

.pmcc-banner__copy {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    flex: 1 1 auto;
}

.pmcc-banner__mark {
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex: 0 0 auto;
}

.pmcc-banner h2 {
    margin: 0 0 6px;
    color: var(--pmcc-navy);
    font-size: 22px;
    line-height: 1.2;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.pmcc-banner p {
    margin: 0;
    max-width: 1020px;
    font-size: 15px;
    line-height: 1.55;
    color: #324a5d;
}

.pmcc-banner a,
.pmcc-settings-link {
    color: #15a9df;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 650;
}

.pmcc-banner__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
}

.pmcc-btn {
    appearance: none;
    border: 0;
    border-radius: 8px;
    min-height: 58px;
    padding: 0 28px;
    font: inherit;
    font-size: 16px;
    line-height: 1;
    font-weight: 750;
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.pmcc-btn:hover {
    transform: translateY(-1px);
}

.pmcc-btn:focus-visible,
.pmcc-switch input:focus-visible + .pmcc-switch__track,
.pmcc-modal__close:focus-visible,
.pmcc-settings-link:focus-visible {
    outline: 3px solid rgba(238, 43, 123, 0.35);
    outline-offset: 3px;
}

.pmcc-btn--outline {
    color: var(--pmcc-navy);
    background: #fff;
    border: 2px solid #c7d4de;
}

.pmcc-btn--navy {
    background: var(--pmcc-navy);
    color: #fff;
}

.pmcc-btn--primary {
    background: var(--pmcc-primary);
    color: #fff;
}

.pmcc-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(9, 34, 52, 0.82);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.pmcc-modal {
    position: relative;
    width: min(1740px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
    padding: 38px 48px 36px;
    color: var(--pmcc-text);
}

.pmcc-modal__close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #7890a1;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.pmcc-modal__brandline {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 62px;
}

.pmcc-modal__wordmark {
    width: auto;
    height: 52px;
    max-width: 330px;
    object-fit: contain;
    object-position: left center;
}

.pmcc-modal h2 {
    margin: 0;
    font-size: 32px;
    line-height: 1.15;
    letter-spacing: -0.025em;
    font-weight: 800;
    color: var(--pmcc-navy);
}

.pmcc-modal__header > p {
    margin: 18px 0 26px;
    font-size: 17px;
    line-height: 1.55;
    color: #42596a;
}

.pmcc-category-list {
    display: grid;
    gap: 16px;
}

.pmcc-category {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    min-height: 140px;
    padding: 28px 28px 26px;
    border: 1px solid var(--pmcc-border);
    border-radius: 17px;
    background: var(--pmcc-panel);
}

.pmcc-category h3 {
    margin: 0 0 14px;
    color: var(--pmcc-navy);
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
}

.pmcc-category p {
    margin: 0;
    max-width: 1260px;
    color: #42596a;
    font-size: 16px;
    line-height: 1.55;
}

.pmcc-category__control {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    min-width: 118px;
}

.pmcc-category__always span {
    color: #768999;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.pmcc-switch {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.pmcc-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pmcc-switch__track {
    position: relative;
    display: inline-block;
    width: 66px;
    height: 38px;
    border-radius: 999px;
    background: #c8d5de;
    box-shadow: inset 0 0 0 1px rgba(16, 47, 70, 0.08);
    transition: background 160ms ease;
}

.pmcc-switch__track::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(16, 47, 70, 0.18);
    transition: transform 160ms ease;
}

.pmcc-switch input:checked + .pmcc-switch__track {
    background: var(--pmcc-primary);
}

.pmcc-switch input:checked + .pmcc-switch__track::after {
    transform: translateX(28px);
}

.pmcc-switch--locked {
    cursor: default;
}

.pmcc-switch--locked .pmcc-switch__track {
    opacity: 0.55;
    background: #d7e0e6;
}

.pmcc-expiry {
    margin: 22px 0 20px;
    color: #688093;
    font-size: 15px;
    line-height: 1.4;
}

.pmcc-modal__actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.pmcc-modal__actions .pmcc-btn {
    width: 100%;
}

.pmcc-btn--save {
    margin-top: 16px;
    min-height: 64px;
    font-size: 18px;
}

.pmcc-auto-footer-link {
    position: relative;
    z-index: 3;
    padding: 10px 20px;
    text-align: center;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 13px;
    background: #fff;
}

@media (max-width: 1180px) {
    .pmcc-banner__inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .pmcc-banner__actions {
        width: 100%;
    }

    .pmcc-banner__actions .pmcc-btn {
        flex: 1 1 0;
    }

    .pmcc-modal {
        padding: 32px;
    }
}

@media (max-width: 760px) {
    .pmcc-banner__inner {
        width: calc(100% - 28px);
        min-height: 0;
        padding: 18px 0;
        gap: 18px;
    }

    .pmcc-banner__copy {
        gap: 12px;
    }

    .pmcc-banner__mark {
        width: 42px;
        height: 42px;
    }

    .pmcc-banner h2 {
        font-size: 18px;
    }

    .pmcc-banner p {
        font-size: 13px;
    }

    .pmcc-banner__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .pmcc-banner__actions .pmcc-btn:first-child {
        grid-column: 1 / -1;
    }

    .pmcc-btn {
        min-height: 48px;
        padding: 0 15px;
        font-size: 14px;
    }

    .pmcc-overlay {
        padding: 10px;
        align-items: flex-end;
    }

    .pmcc-modal {
        width: 100%;
        max-height: calc(100vh - 20px);
        border-radius: 18px 18px 0 0;
        padding: 24px 18px 20px;
    }

    .pmcc-modal__brandline {
        display: block;
        padding-right: 40px;
    }

    .pmcc-modal__wordmark {
        height: 40px;
        max-width: 250px;
        margin-bottom: 10px;
    }

    .pmcc-modal h2 {
        font-size: 25px;
    }

    .pmcc-modal__header > p {
        margin: 12px 0 18px;
        font-size: 14px;
    }

    .pmcc-category {
        grid-template-columns: 1fr;
        gap: 18px;
        min-height: 0;
        padding: 20px;
    }

    .pmcc-category h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .pmcc-category p {
        font-size: 14px;
    }

    .pmcc-category__control {
        justify-content: space-between;
        min-width: 0;
    }

    .pmcc-category:not(:first-child) .pmcc-category__control {
        justify-content: flex-end;
    }

    .pmcc-modal__actions-row {
        gap: 10px;
    }
}
