/*
 * WindVanilla – confirmation dialog (used by the storefront and the admin area).
 * Colours come from the theme variables of whichever stylesheet is loaded next to it.
 */
.wvdlg-lock { overflow: hidden; }

.wvdlg {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.74);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    animation: wvdlg-fade 0.16s ease-out;
}

.wvdlg__box {
    --dlg-accent: var(--color-primary, var(--primary, #00d8ff));
    --dlg-accent-text: var(--color-primary-text, var(--primary-text, #031a20));
    position: relative;
    width: 460px;
    max-width: 100%;
    max-height: 100%;
    overflow-y: auto;
    padding: 30px 28px 26px;
    text-align: center;
    color: #e6e6e6;
    background: var(--surface, #161616);
    border: 2px solid var(--border, #262626);
    box-shadow: inset 0 3px 0 var(--dlg-accent);
    clip-path: polygon(0 4px, 4px 4px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px));
    animation: wvdlg-pop 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.wvdlg--danger .wvdlg__box {
    --dlg-accent: #ef4444;
    --dlg-accent-text: #fff;
}

.wvdlg__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin: 0 auto 16px;
    color: var(--dlg-accent);
    background: transparent;
    background: color-mix(in srgb, var(--dlg-accent) 14%, transparent);
    border: 2px solid var(--dlg-accent);
    clip-path: polygon(0 3px, 3px 3px, 3px 0, calc(100% - 3px) 0, calc(100% - 3px) 3px, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 3px calc(100% - 3px), 0 calc(100% - 3px));
}

.wvdlg__title {
    margin: 0;
    font-size: 19px;
    font-weight: 650;
    line-height: 1.35;
    color: #fff;
    overflow-wrap: anywhere;
}

.wvdlg__text {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.55;
    color: #a9a9a9;
    overflow-wrap: anywhere;
}
.wvdlg__text p { margin: 0; }
.wvdlg__text p + p { margin-top: 6px; }

.wvdlg__actions {
    display: flex;
    gap: 10px;
    margin-top: 26px;
}

.wvdlg__btn {
    flex: 1 1 auto;
    min-width: 0;
    height: 44px;
    padding: 0 20px;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 2px solid transparent;
    clip-path: polygon(0 3px, 3px 3px, 3px 0, calc(100% - 3px) 0, calc(100% - 3px) 3px, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 3px calc(100% - 3px), 0 calc(100% - 3px));
    transition: background-color 0.15s ease, filter 0.15s ease, border-color 0.15s ease;
}
.wvdlg__btn:focus-visible { outline: 2px solid #fff; outline-offset: -5px; }

.wvdlg__btn--cancel {
    color: #e6e6e6;
    background: transparent;
    border-color: #3a3a3a;
}
.wvdlg__btn--cancel:hover { background: rgba(255, 255, 255, 0.08); border-color: #555; }

.wvdlg__btn--ok {
    color: var(--dlg-accent-text);
    background: var(--dlg-accent);
    border-color: var(--dlg-accent);
}
.wvdlg__btn--ok:hover { filter: brightness(1.12); }

@media (max-width: 420px) {
    .wvdlg__box { padding: 26px 20px 22px; }
    .wvdlg__actions { flex-direction: column-reverse; }
    .wvdlg__btn { flex: none; width: 100%; }
}

@keyframes wvdlg-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wvdlg-pop { from { opacity: 0; transform: translateY(8px) scale(0.97); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    .wvdlg, .wvdlg__box { animation: none; }
    .wvdlg__btn { transition: none; }
}
