#prc-root [hidden], .prc-footer [hidden], .prc-embed [hidden] {
    display: none !important;
}

#prc-root, .prc-footer, .prc-embed {
    color: #142331;
    font: normal 1rem/1.5 system-ui, sans-serif;
}

.prc-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding: 1rem clamp(1rem, 4vw, 3rem);
    border-block-start: 0.3rem solid var(--prc-accent, #21364d);
    border-block-end: 1px solid #c0c9d5;
    background: #f5f7fa;
}

#prc-root h2 {
    color: inherit;
    font: 700 1.25rem/1.3 system-ui, sans-serif;
    margin: 0 0 0.4rem;
}

#prc-root p {
    font: inherit;
    margin: 0 0 0.65rem;
}

#prc-root .prc-copy {
    flex: 1 1 20rem;
}

.prc-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

#prc-root button, .prc-footer button, .prc-embed button {
    min-height: 44px;
    margin: 0;
    border: 1px solid #21364d;
    border-radius: 0.25rem;
    background: #fff;
    color: #142331;
    font: 650 0.95rem/1.25 system-ui, sans-serif;
    text-align: center;
    text-transform: none;
    padding: 0.56rem 0.8rem;
    cursor: pointer;
}

#prc-root button:hover, .prc-footer button:hover, .prc-embed button:hover {
    background: #e4e9ef;
    color: #142331;
}

#prc-root button:disabled {
    background: #e4e9ef;
    color: #414d5a;
    cursor: default;
}

#prc-root :focus-visible, .prc-footer :focus-visible, .prc-embed :focus-visible {
    outline: 3px solid #0864ac;
    outline-offset: 3px;
}

#prc-root .prc-policy, .prc-embed a {
    color: #134d78;
    text-decoration: underline;
}

#prc-root .prc-policy + .prc-policy {
    margin-inline-start: 0.7rem;
}

#prc-dialog {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    width: min(36rem, calc(100% - 1.5rem));
    max-height: calc(100% - 1.5rem);
    max-height: calc(100dvh - 1.5rem);
    margin: auto;
    padding: clamp(1rem, 4vw, 1.5rem);
    border: 1px solid #a7b2bf;
    border-block-start: 0.3rem solid var(--prc-accent, #21364d);
    border-radius: 0.45rem;
    background: #fff;
    color: #142331;
    overflow: auto;
    overscroll-behavior: contain;
}

#prc-dialog:not([open]) { display: none; }
#prc-dialog::backdrop { background: rgb(15 28 41 / 65%); }
#prc-dialog .prc-actions { margin-top: 1rem; }
#prc-dialog fieldset { margin: 0 0 0.8rem; padding: 0.65rem; border: 1px solid #8494a5; }
#prc-dialog legend { padding-inline: 0.3rem; font-weight: 700; }
#prc-dialog label { min-height: 44px; display: flex; align-items: center; gap: 0.5rem; font-weight: 700; cursor: pointer; }
#prc-dialog input[type="checkbox"] { width: 1.2rem; height: 1.2rem; accent-color: #21364d; }
#prc-reload-note { margin-top: 0.75rem !important; }

.prc-footer { padding: 0.75rem 1rem; background: #f5f7fa; text-align: center; }
.prc-embed iframe { display: block; width: 100%; min-height: 19rem; border: 0; }

.prc-sr {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    white-space: nowrap;
}

#prc-banner {
    position: fixed;
    inset: auto auto calc(1rem + env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
    z-index: 2147483000;
    box-sizing: border-box;
    width: min(66rem, calc(100% - 2rem));
    max-height: calc(100vh - 7rem);
    max-height: calc(100dvh - 7rem);
    overflow: auto;
    padding: 0.95rem 1.1rem;
    border: 1px solid #315574;
    border-block-start: 4px solid var(--prc-accent, #debb5b);
    border-radius: 0.85rem;
    background: #35223b;
    color: #fff;
    box-shadow: 0 6px 24px rgb(13 37 57 / 32%);
    gap: 0.8rem 1.25rem;
}

#prc-root #prc-banner h2,
#prc-root #prc-dialog h2 {
    font-size: 1.1rem;
}

#prc-root #prc-banner p {
    margin-bottom: 0.3rem;
}

#prc-root #prc-banner .prc-policy {
    color: #eef5ff;
}

#prc-root #prc-banner button {
    border: 1px solid #b8dba6;
    border-radius: 999px;
    background: transparent;
    color: #fff;
}

#prc-root #prc-banner button:hover {
    background: #eef5ff;
    color: #35223b;
}

#prc-root #prc-banner button:disabled {
    background: #324f65;
    color: #d5e0e8;
}

#prc-root #prc-banner :focus-visible {
    outline-color: #f0ca77;
}

#prc-root #prc-dialog {
    border-block-start-color: var(--prc-accent, #debb5b);
    border-radius: 0.85rem;
    color: #35223b;
}

#prc-root #prc-dialog fieldset {
    border-color: #a4b99b;
    border-radius: 0.55rem;
    background: #f4f8f1;
}

#prc-root #prc-dialog button {
    border-radius: 999px;
}

@media (max-width: 767px) {
    #prc-banner {
        inset: auto auto calc(4.5rem + env(safe-area-inset-bottom, 0px)) max(0.75rem, env(safe-area-inset-left, 0px));
        width: calc(100% - 1.5rem);
        max-height: calc(100vh - 5.5rem);
        max-height: calc(100dvh - 5.5rem);
        gap: 0.65rem;
        padding: 0.75rem;
    }
}
