/* Тосты и модалка подтверждения для пользовательских экранов вишлистов.
   Палитра и радиусы намеренно повторяют main-css.css (--accent-color,
   --text-secondary и т.д.), чтобы не создавать второй визуальный язык. */

.wc-toast-stack {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    pointer-events: none;
    width: min(320px, calc(100vw - 32px));
}

.wc-toast {
    pointer-events: auto;
    max-width: 100%;
    padding: 12px 18px;
    border-radius: 100px;
    font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.3;
    text-align: center;
    color: #0d0d0d;
    background: var(--accent-color, #e2ff01);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(8px) scale(0.98);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.wc-toast--visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.wc-toast--error {
    color: #ffffff;
    background: #ff5c5c;
}

/* ---------- Confirm dialog ---------- */

.wc-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease;
}

.wc-confirm-overlay--open {
    opacity: 1;
    visibility: visible;
}

.wc-confirm-dialog {
    width: 100%;
    max-width: 280px;
    border-radius: 24px;
    padding: 24px 20px 20px;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: translateY(10px) scale(0.97);
    transition: transform 0.18s ease;
    font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    text-align: center;
}

.wc-confirm-overlay--open .wc-confirm-dialog {
    transform: translateY(0) scale(1);
}

.wc-confirm-dialog__title {
    font-weight: 700;
    font-size: 18px;
    line-height: 115%;
    color: #ffffff;
    margin-bottom: 8px;
}

.wc-confirm-dialog__text {
    font-weight: 700;
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-secondary, #818181);
    min-height: 1px;
}

.wc-confirm-dialog__actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.wc-btn {
    flex: 1;
    height: 40px;
    border: none;
    border-radius: 100px;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.wc-btn:active {
    transform: scale(0.96);
}

.wc-btn--ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.wc-btn--primary {
    background: var(--accent-color, #e2ff01);
    color: #0d0d0d;
}

.wc-btn--danger {
    background: #ff5c5c;
    color: #ffffff;
}

.wc-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .wc-toast,
    .wc-confirm-overlay,
    .wc-confirm-dialog,
    .wc-btn {
        transition: none;
    }
}
