body.mc-consent-scroll-lock {
    overflow: hidden;
}

.mc-cookie-banner,
.mc-cookie-overlay,
.mc-cookie-modal {
    box-sizing: border-box;
    font-family: inherit;
}

.mc-cookie-banner *,
.mc-cookie-overlay *,
.mc-cookie-modal * {
    box-sizing: border-box;
}

.mc-cookie-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.55);
}

.mc-cookie-overlay .mc-cookie-dialog {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 40px);
    overflow: hidden;
    padding: 22px;
    background: #fff;
    color: #222;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
    pointer-events: auto;
}

.mc-cookie-banner {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 16px;
    right: 16px;
    z-index: 999999;
    max-width: 980px;
    max-height: calc(100vh - 32px);
    margin: 0 auto;
    padding: 18px;
    overflow: hidden;
    background: #fff;
    color: #222;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
    pointer-events: auto;
}

.mc-cookie-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.mc-cookie-footer {
    flex: 0 0 auto;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
}

.mc-cookie-footer .mc-cookie-actions {
    margin-top: 0;
}

.mc-cookie-banner.mc-position-bottom {
    bottom: 16px;
}

.mc-cookie-banner.mc-position-top {
    top: 16px;
}

.mc-cookie-text {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.45;
}

.mc-cookie-text p {
    margin: 0 0 8px;
}

.mc-cookie-text p:last-child {
    margin-bottom: 0;
}

.mc-cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mc-cookie-button,
.mc-open-settings-shortcode {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 16px;
    border: 1px solid #222;
    border-radius: 6px;
    background: #222;
    color: #fff;
    font: inherit;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
}

.mc-cookie-button:hover,
.mc-open-settings-shortcode:hover {
    opacity: 0.9;
}

.mc-cookie-button-secondary {
    background: #fff;
    color: #222;
}

.mc-cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.45);
}

.mc-cookie-modal.is-open {
    display: flex;
}

.mc-cookie-modal-box {
    width: 100%;
    max-width: 560px;
    padding: 22px;
    background: #fff;
    color: #222;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
}

.mc-cookie-modal-title {
    margin: 0 0 14px;
    font-size: 20px;
    line-height: 1.3;
}

.mc-cookie-option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.4;
}

.mc-cookie-option input {
    margin-top: 3px;
}

.mc-cookie-link {
    margin-top: 10px;
    font-size: 14px;
}

.mc-cookie-policy-toggle,
.mc-cookie-policy-back {
    border: 0;
    padding: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.mc-cookie-policy-panel {
    margin: 10px 0 12px;
    padding: 12px 14px;
    overflow-x: auto;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: #fafafa;
}

.mc-cookie-banner.is-policy-open .mc-cookie-body,
.mc-cookie-overlay .mc-cookie-dialog.is-policy-open .mc-cookie-body {
    max-height: var(--mc-policy-max-height);
}

.mc-cookie-policy-body {
    font-size: var(--mc-policy-font-size);
    line-height: 1.45;
}

.mc-cookie-policy-body :where(h1, h2, h3, h4, h5, h6) {
    margin: 0.6em 0 0.35em;
    line-height: 1.25;
    font-weight: 600;
}

.mc-cookie-policy-body h1 {
    font-size: var(--mc-policy-h1-size);
}

.mc-cookie-policy-body h2 {
    font-size: var(--mc-policy-h2-size);
}

.mc-cookie-policy-body h3 {
    font-size: var(--mc-policy-h3-size);
}

.mc-cookie-policy-body h4,
.mc-cookie-policy-body h5,
.mc-cookie-policy-body h6 {
    font-size: var(--mc-policy-font-size);
}

.mc-cookie-policy-body :where(p, ul, ol) {
    margin: 0 0 0.6em;
}

.mc-cookie-policy-body :where(img, video, iframe) {
    max-width: 100%;
    height: auto;
}

.mc-cookie-policy-body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.mc-cookie-main-view[hidden],
.mc-cookie-policy-view[hidden],
.mc-cookie-policy-panel[hidden] {
    display: none !important;
}

@media (max-width: 600px) {
    .mc-cookie-banner {
        left: 10px;
        right: 10px;
        padding: 14px;
    }

    .mc-cookie-overlay {
        padding: 12px;
    }

    .mc-cookie-overlay .mc-cookie-dialog {
        padding: 18px;
    }

    .mc-cookie-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .mc-cookie-button {
        width: 100%;
    }
}
