html.fraud-notice-open,
html.fraud-notice-open body {
    overflow: hidden !important;
    overscroll-behavior: none;
}

/* The theme hides the body until its own scripts finish loading. */
html.fraud-notice-open body,
body:has(> dialog.fraud-notice[open]) {
    display: block;
}

dialog.fraud-notice {
    position: fixed;
    inset: 0;
    width: min(860px, calc(100% - 32px));
    max-width: none;
    height: auto;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    border: 1px solid #dacaba;
    border-top: 5px solid #ac8c6c;
    border-radius: 12px;
    background: #fff;
    color: #293039;
    font: 16px/1.65 Arial, sans-serif;
    text-align: left;
    z-index: 2147483647;
    box-shadow: 0 24px 80px #0005;
}

dialog.fraud-notice[open] {
    display: flex;
    flex-direction: column;
}

.fraud-notice::backdrop {
    background: rgba(12, 19, 29, .85);
}

/* Keep the notice blocking even if JavaScript or the dialog API is unavailable. */
dialog.fraud-notice[open]:not(:modal) {
    box-shadow: 0 0 0 100vmax rgba(12, 19, 29, .95);
}

.fraud-notice__header,
.fraud-notice__footer {
    flex: 0 0 auto;
    padding: 20px 28px;
    background: #faf7f3;
}

.fraud-notice__label {
    color: #806244;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.fraud-notice h2 {
    margin: 8px 0 0;
    color: #222b36;
    font: 700 24px/1.3 Arial, sans-serif;
    letter-spacing: normal;
    text-transform: none;
}

.fraud-notice__content {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 22px 28px;
    scrollbar-gutter: stable;
}

.fraud-notice p { margin: 0 0 16px; }
.fraud-notice p:last-child { margin-bottom: 0; }
.fraud-notice h3 {
    margin: 0 0 12px;
    color: #843022;
    font: 700 18px/1.4 Arial, sans-serif;
    letter-spacing: normal;
}
.fraud-notice__warning {
    margin: 22px 0;
    padding: 20px;
    border-left: 4px solid #b7492e;
    border-radius: 4px;
    background: #fff4ee;
}
.fraud-notice ul { margin: 0; padding-left: 20px; list-style: disc; }
.fraud-notice li { margin-bottom: 12px; }
.fraud-notice li:last-child { margin-bottom: 0; }
.fraud-notice__footer { border-top: 1px solid #e6ded5; }
.fraud-notice__acknowledgement {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 14px;
    color: #293039;
    font-weight: 600;
    cursor: pointer;
}
.fraud-notice__acknowledgement input {
    -webkit-appearance: checkbox;
    appearance: auto;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin: 3px 0 0;
    accent-color: #806244;
}
.fraud-notice button {
    width: 100%;
    min-height: 46px;
    padding: 12px 20px;
    border: 0;
    border-radius: 6px;
    background: #806244;
    color: #fff;
    font: 700 16px/1.4 Arial, sans-serif;
    cursor: pointer;
}
.fraud-notice button:hover:not(:disabled) { background: #62492f; }
.fraud-notice button:disabled { background: #e1dcd6; color: #686058; cursor: not-allowed; }
.fraud-notice :focus-visible { outline: 3px solid #806244; outline-offset: 3px; }

@media (max-width: 575px) {
    dialog.fraud-notice {
        width: calc(100% - 16px);
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
        font-size: 14px;
    }
    .fraud-notice__header, .fraud-notice__footer { padding: 14px 16px; }
    .fraud-notice__content { padding: 18px 16px; }
    .fraud-notice h2 { font-size: 19px; }
    .fraud-notice__label { font-size: 10px; letter-spacing: .5px; }
    .fraud-notice__warning { padding: 14px; }
}
