.wcmqs-v2-toast {
    position: fixed;
    z-index: 100000;
    top: 50%;
    left: 50%;
    display: flex;
    width: min(460px, calc(100vw - 32px));
    align-items: center;
    gap: 15px;
    box-sizing: border-box;
    padding: 20px 18px 20px 20px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    backdrop-filter: blur(18px) saturate(145%);
    box-shadow: 0 24px 70px rgba(31, 41, 55, 0.22), 0 4px 18px rgba(31, 41, 55, 0.08);
    color: #1f2937;
    font-size: 14px;
    line-height: 1.45;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(-50%, calc(-50% - 12px), 0) scale(0.96);
    transition: opacity 200ms ease, transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.wcmqs-v2-toast.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(-50%, -50%, 0) scale(1);
}

.wcmqs-v2-toast.is-pulse .wcmqs-v2-toast__icon {
    animation: wcmqs-v2-icon-pulse 420ms ease;
}

.wcmqs-v2-toast__icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #f5a623, #dc7a12);
    box-shadow: 0 9px 22px rgba(220, 122, 18, 0.28);
    color: #fff;
    font-size: 21px;
    font-weight: 800;
}

.wcmqs-v2-toast__content {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 3px;
}

.wcmqs-v2-toast__title {
    color: #111827;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.3;
}

.wcmqs-v2-toast__text {
    color: #4b5563;
    font-weight: 500;
}

.wcmqs-v2-toast__close {
    display: inline-flex;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    font: inherit;
    font-size: 22px;
    line-height: 1;
}

.wcmqs-v2-toast__close:hover,
.wcmqs-v2-toast__close:focus-visible {
    background: rgba(17, 24, 39, 0.07);
    color: #111827;
    outline: none;
}

.quantity.wcmqs-v2-limit-hit {
    animation: wcmqs-v2-quantity-shake 420ms ease;
}

@keyframes wcmqs-v2-icon-pulse {
    0%, 100% { transform: scale(1); }
    45% { transform: scale(1.16); }
}

@keyframes wcmqs-v2-quantity-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-2px); }
}

.wcmqs-v2-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    margin: 10px 0 14px;
    padding: 10px 14px;
    border: 1px solid #b8d9ed;
    border-left: 3px solid #2d7dc3;
    border-radius: 4px;
    background: #eaf4fb;
    color: #1a4a70;
    font-size: 14px;
    line-height: 1.4;
}

.wcmqs-v2-notice__icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    color: #2d7dc3;
}

.wcmqs-v2-notice__text {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.wcmqs-v2-notice__label,
.wcmqs-v2-notice__qty {
    font-weight: 700;
}

.wcmqs-v2-notice__max,
.wcmqs-v2-notice__step {
    color: #4a7a9b;
    font-size: 12px;
}

@media (max-width: 600px) {
    .wcmqs-v2-toast {
        top: 50%;
        left: 16px;
        right: 16px;
        width: auto;
        padding: 17px 15px 17px 17px;
        transform: translate3d(0, calc(-50% - 10px), 0) scale(0.97);
    }

    .wcmqs-v2-toast.is-visible {
        transform: translate3d(0, -50%, 0) scale(1);
    }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .wcmqs-v2-toast {
        background: rgba(255, 255, 255, 0.98);
    }
}

@media (prefers-reduced-motion: reduce) {
    .wcmqs-v2-toast,
    .wcmqs-v2-toast.is-pulse .wcmqs-v2-toast__icon,
    .quantity.wcmqs-v2-limit-hit {
        animation: none;
        transition: none;
    }
}
