/* Toast + banner checkout — frete grátis 1ª compra */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ========== Toast ========== */
.wfgpc-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 1000001;
    width: calc(100% - 2rem);
    max-width: 420px;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
    font-family: 'Inter', sans-serif;
}

.wfgpc-toast.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.wfgpc-toast[hidden]:not(.is-visible) {
    display: none !important;
}

.wfgpc-toast.is-visible[hidden] {
    display: block !important;
}

.wfgpc-toast__inner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    background: #111;
    color: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.wfgpc-toast__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #22c55e;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
}

.wfgpc-toast__body {
    flex: 1;
    min-width: 0;
}

.wfgpc-toast__title {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.wfgpc-toast__message {
    display: block;
    font-size: 0.85rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.85);
}

.wfgpc-toast__close {
    flex-shrink: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.15rem;
}

.wfgpc-toast__close:hover {
    color: #fff;
}

/* ========== Banner abaixo do botão ========== */
.wfgpc-place-order-banner {
    display: none;
    width: 100%;
    max-width: 100%;
    margin: 1rem 0 0;
    clear: both;
    float: none;
    flex: 0 0 100%;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

.wfgpc-place-order-banner.is-visible {
    display: block;
}

/* Garante quebra de linha se ainda estiver dentro de um flex (CartFlows) */
.form-row.place-order .wfgpc-place-order-banner,
#payment .wfgpc-place-order-banner,
.wcf-order-wrap .wfgpc-place-order-banner {
    width: 100% !important;
    max-width: 100% !important;
    flex-basis: 100% !important;
    order: 99;
}

.wfgpc-place-order-banner__inner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    border-radius: 10px;
    border: 2px solid #16a34a;
    background: #ecfdf5;
    color: #14532d;
}

.wfgpc-place-order-banner__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
}

.wfgpc-place-order-banner__content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.wfgpc-place-order-banner__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #166534;
}

.wfgpc-place-order-banner__text {
    font-size: 0.875rem;
    line-height: 1.45;
    color: #15803d;
}

@media (max-width: 480px) {
    .wfgpc-toast {
        bottom: 16px;
    }

    .wfgpc-place-order-banner__inner {
        padding: 0.85rem 0.9rem;
    }
}
