html body.scc-p013-active .scc-cookie2-settings,
html body.scc-p013-active .scc-cookie2-banner,
html body.scc-p013-active .scc-cookie2-modal {
    display: none !important;
}

.scc-p013 [hidden] {
    display: none !important;
}

.scc-p013,
.scc-p013 button,
.scc-p013 input {
    box-sizing: border-box;
    font-family: inherit;
    letter-spacing: 0;
}

.scc-p013-settings {
    position: fixed;
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 999981;
    min-height: 40px;
    border: 1px solid #cbd4cd;
    border-radius: 8px;
    background: #fff;
    color: #142c24;
    box-shadow: 0 10px 28px rgba(16, 31, 25, .14);
    padding: 0 14px;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}

.scc-p013-banner {
    position: fixed;
    right: max(10px, env(safe-area-inset-right));
    bottom: calc(max(10px, env(safe-area-inset-bottom)) + 50px);
    z-index: 999991;
    width: min(560px, calc(100vw - 20px));
    border: 1px solid #d6ded8;
    border-radius: 8px;
    background: #fff;
    color: #111713;
    box-shadow: 0 24px 70px rgba(16, 31, 25, .22);
    padding: 18px;
}

.scc-p013 h2 {
    margin: 0;
    color: #111713;
    font-size: 21px;
    line-height: 1.2;
    letter-spacing: 0;
}

.scc-p013 p {
    margin: 9px 0 0;
    color: #4f5d55;
    font-size: 14px;
    line-height: 1.55;
}

.scc-p013-policy a {
    color: #1f5f49;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.scc-p013-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}

.scc-p013-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    min-height: 44px;
    border: 1px solid #142c24;
    border-radius: 8px;
    background: #142c24;
    color: #fff;
    padding: 0 15px;
    font-size: 14px;
    font-weight: 760;
    line-height: 1.2;
    cursor: pointer;
}

.scc-p013-button.is-secondary {
    background: #fff;
    color: #142c24;
}

.scc-p013-settings:focus-visible,
.scc-p013-button:focus-visible,
.scc-p013-close:focus-visible,
.scc-p013-category input:focus-visible,
.scc-p013-policy a:focus-visible {
    outline: 3px solid #b94f32;
    outline-offset: 3px;
}

.scc-p013-modal {
    position: fixed;
    inset: 0;
    z-index: 999996;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(9, 18, 14, .58);
}

.scc-p013-panel {
    width: min(680px, 100%);
    max-height: calc(100vh - 36px);
    overflow: auto;
    border: 1px solid #d6ded8;
    border-radius: 8px;
    background: #fff;
    color: #111713;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .28);
    padding: 20px;
}

.scc-p013-panel-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px;
    gap: 16px;
    align-items: start;
}

.scc-p013-close {
    width: 40px;
    height: 40px;
    border: 1px solid #cbd4cd;
    border-radius: 8px;
    background: #fff;
    color: #142c24;
    padding: 0;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.scc-p013-category-list {
    margin-top: 16px;
    border-top: 1px solid #d6ded8;
}

.scc-p013-category {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    min-height: 78px;
    border-bottom: 1px solid #d6ded8;
    padding: 13px 2px;
}

.scc-p013-category strong,
.scc-p013-category small {
    display: block;
    letter-spacing: 0;
}

.scc-p013-category strong {
    color: #142c24;
    font-size: 15px;
}

.scc-p013-category small {
    margin-top: 4px;
    color: #59645d;
    font-size: 13px;
    line-height: 1.45;
}

.scc-p013-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.scc-p013-category input {
    width: 24px;
    height: 24px;
    margin: 0;
    accent-color: #1f5f49;
}

.scc-p013-status {
    color: #59645d;
    font-size: 12px;
    white-space: nowrap;
}

html.scc-p013-modal-open {
    overflow: hidden;
}

@media (max-width: 560px) {
    .scc-p013-banner {
        left: 10px;
        right: 10px;
        width: auto;
        padding: 16px;
    }

    .scc-p013-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .scc-p013-button {
        width: 100%;
    }

    .scc-p013-modal {
        align-items: end;
        padding: 10px;
    }

    .scc-p013-panel {
        max-height: calc(100vh - 20px);
        padding: 16px;
    }

    .scc-p013-category {
        min-height: 86px;
    }

    .scc-p013-status {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scc-p013 * {
        scroll-behavior: auto !important;
    }
}
