/* Toast from shop.pen (Epsl5 / VNt2H / sOOGZ / wHqM1). Do not set * / body font-family. */

.pen-toast-stack {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 400100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: calc(100% - 48px);
    max-width: 700px;
    pointer-events: none;
}

.pen-toast {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 20px;
    border-radius: 18px;
    background: var(--pen-bg);
    font-family: var(--pen-font-body);
    color: var(--pen-text);
    box-shadow: 0 16px 40px rgba(31, 143, 192, 0.15);
    pointer-events: auto;
}

.pen-toast--success {
    border: 1.5px solid rgba(70, 172, 51, 0.25);
}

.pen-toast--error {
    border: 1.5px solid rgba(201, 37, 60, 0.25);
}

.pen-toast__icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pen-toast--success .pen-toast__icon {
    background: var(--pen-leaf-soft);
    color: var(--pen-leaf);
}

.pen-toast--error .pen-toast__icon {
    background: var(--pen-sale-soft);
    color: var(--pen-sale);
}

.pen-toast__icon svg {
    display: block;
    width: 22px;
    height: 22px;
}

.pen-toast__text {
    flex: 1 1 auto;
    margin: 0;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--pen-text);
}

.pen-toast__close {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 9999px;
    background: var(--pen-bg-soft);
    color: var(--pen-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.pen-toast__close:hover,
.pen-toast__close:focus {
    color: var(--pen-text);
    outline: none;
}

.pen-toast__close svg {
    display: block;
    width: 16px;
    height: 16px;
}

@media (max-width: 991px) {
    .pen-toast-stack {
        top: 88px;
    }
}

@media (max-width: 767px) {
    .pen-toast-stack {
        top: 88px;
        width: calc(100% - 32px);
        max-width: 390px;
        gap: 8px;
    }

    .pen-toast {
        gap: 12px;
        padding: 16px;
        border-radius: 16px;
        box-shadow: 0 12px 28px rgba(31, 143, 192, 0.15);
    }

    .pen-toast__icon {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }

    .pen-toast__icon svg {
        width: 18px;
        height: 18px;
    }

    .pen-toast__text {
        font-size: 13px;
    }

    .pen-toast__close {
        flex-basis: 26px;
        width: 26px;
        height: 26px;
    }

    .pen-toast__close svg {
        width: 13px;
        height: 13px;
    }
}
