#wiz-guarantee-dialog {
    box-sizing: border-box;
    width: min(680px, calc(100% - 24px));
    max-width: 100%;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    margin: auto;
    padding: 0;
    border: 0;
    color: #222;
    background: #fff;
}

#wiz-guarantee-dialog:not([open]) { display: none; }
#wiz-guarantee-dialog[open] { display: flex; flex-direction: column; }
#wiz-guarantee-dialog::backdrop { background: rgba(0, 0, 0, .65); }

.wiz-guarantee-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    padding: 12px 16px;
    border-bottom: 1px solid #ddd;
}

.wiz-guarantee-dialog-header h2 { margin: 0; font-size: 18px; line-height: 1.3; }
.wiz-guarantee-dialog-header form { margin: 0; }
.wiz-guarantee-dialog-header button {
    min-height: 44px;
    padding: 6px 14px;
    border: 1px solid #555;
    color: #222;
    background: #fff;
}

.wiz-guarantee-dialog-content { padding: 12px 16px; overflow-y: auto; overscroll-behavior: contain; }
.wiz-guarantee-dialog-content img { display: block; width: 100%; height: auto; }
.wiz-guarantee-dialog-content p { margin: 0 0 12px; }
.wiz-guarantee-dialog-content a { text-decoration: underline; }
#wiz-guarantee-dialog :focus-visible { outline: 2px solid #164e89; outline-offset: 2px; }
