html.oct-policy-pending,
html.oct-policy-pending body {
    overflow: hidden;
}

html.oct-policy-pending::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 199999;
    background: rgba(28, 28, 40, .68);
}

.oct-policy-overlay[hidden] {
    display: none !important;
}

.oct-policy-overlay {
    position: fixed;
    inset: 0;
    z-index: 200000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 16px;
    background: transparent;
}

.oct-policy-dialog {
    width: min(100%, 600px);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid #e5e7ee;
    border-top: 4px solid #ff0000;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(28, 28, 40, .25);
    color: #1c1c28;
}

.oct-policy-dialog h2 {
    margin: 0 0 20px;
    color: #2a2568;
    font-size: clamp(26px, 4vw, 32px);
    font-weight: 700;
    line-height: 1.2;
}

.oct-policy-copy {
    margin: 0;
    color: #28293d;
    font-size: 15px;
    line-height: 1.7;
}

.oct-policy-document {
    display: inline-block;
    margin-top: 16px;
    color: #2a2568;
    font-size: 15px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.oct-policy-document:hover {
    color: #ff0000;
}

.oct-policy-actions {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.oct-policy-actions button {
    min-height: 50px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}

.oct-policy-actions #oct-policy-accept {
    background: #ff0000;
    color: #fff;
}

.oct-policy-actions #oct-policy-accept:hover {
    background: #d90000;
}

.oct-policy-actions #oct-policy-decline {
    background: #f2f4f8;
    border-color: #e5e7ee;
    color: #1c1c28;
}

.oct-policy-actions #oct-policy-decline:hover {
    background: #e7eaf1;
}

.oct-policy-actions button:focus-visible,
.oct-policy-document:focus-visible,
.oct-policy-settings-link:focus-visible {
    outline: 3px solid #2a2568;
    outline-offset: 3px;
}

.oct-policy-settings-link {
    margin: 0 0 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #c7c9d9;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.oct-policy-settings-link:hover {
    color: #fff;
}

@media (max-width: 575px) {
    .oct-policy-dialog {
        padding: 24px;
    }

    .oct-policy-copy,
    .oct-policy-document {
        font-size: 14px;
    }
}
