.baw-wizard {
    max-width: none;
    margin: 16px 0 22px;
    padding: 14px 16px;
    border: 1px solid #f2d46b;
    border-left: 4px solid #ffd200;
    border-radius: 10px;
    background: linear-gradient(180deg, #fffdf7 0%, #fff9eb 100%);
    box-shadow: 0 12px 30px rgba(31, 27, 23, .08);
    font-family: inherit;
}

.baw-wizard.baw--archive {
    margin-bottom: 22px;
}

.baw-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.baw-icon {
    display: flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #f2d46b;
    border-radius: 8px;
    background: #fff6bf;
    font-size: 1.35rem;
    line-height: 1;
}

.baw-title {
    margin: 0 0 2px;
    color: #111827;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
}

.baw-subtitle {
    margin: 0;
    color: #64748b;
    font-size: .82rem;
    line-height: 1.35;
}

.baw-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
    align-items: end;
    gap: 10px 12px;
}

.baw-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.baw-field label {
    color: #111827;
    font-size: .76rem;
    font-weight: 600;
}

.baw-field select {
    width: 100%;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid #d6dee8;
    border-radius: 7px;
    background: #fff;
    color: #334155;
    font-size: .88rem;
}

.baw-field select:focus {
    border-color: #ffd200;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 210, 0, .22);
}

.baw-connector {
    padding-bottom: 9px;
    color: #d4a900;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

.baw-btn {
    grid-column: 1 / -1;
    justify-self: start;
    width: auto;
    padding: 9px 18px;
    border: 0;
    border-radius: 7px;
    background: #1f1b17;
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.baw-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.baw-btn:not(:disabled):hover {
    background: #ffd200;
    color: #1f1b17;
}

.baw-btn.baw-btn--loading .baw-btn-arrow {
    display: none;
}

.baw-results {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f3d27a;
}

.baw-found-label {
    margin: 0 0 14px;
    color: #1a1a1a;
    font-weight: 600;
}

.baw-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 10px;
}

.baw-card {
    display: flex;
    overflow: hidden;
    flex-direction: column;
    border: 1.5px solid #e8e8e8;
    border-radius: 8px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: box-shadow .2s, transform .2s;
}

.baw-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 22px rgba(0, 0, 0, .12);
}

.baw-card img {
    width: 100%;
    aspect-ratio: 1;
    padding: 8px;
    background: #fafafa;
    object-fit: contain;
}

.baw-card-name {
    padding: 7px 8px 2px;
    color: #222;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.3;
}

.baw-card-price {
    padding: 0 8px 5px;
    color: #1f1b17;
    font-size: .82rem;
    font-weight: 700;
}

.baw-card-cta {
    margin: auto 8px 8px;
    padding: 5px 0;
    border-radius: 5px;
    background: #1f1b17;
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    text-align: center;
}

.baw-card-cta:hover {
    background: #ffd200;
    color: #1f1b17;
}

.baw-msg {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 12px;
    border-radius: 10px;
    font-size: .84rem;
    line-height: 1.5;
}

.baw-msg--warn {
    border: 1.5px solid #ffe082;
    background: #fff8e1;
}

.baw-msg a {
    color: #1f1b17;
    font-weight: 600;
}

.baw-missing-form {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid #f3d27a;
    border-radius: 10px;
    background: #fffdf7;
}

.baw-missing-form label {
    display: block;
    margin: 0 0 4px;
    color: #111827;
    font-size: .92rem;
    font-weight: 700;
}

.baw-missing-form p {
    margin: 0 0 10px;
    color: #64748b;
    font-size: .84rem;
    line-height: 1.35;
}

.baw-missing-note {
    width: 100%;
    min-height: 84px;
    padding: 10px;
    resize: vertical;
    border: 1px solid #d6dee8;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font: inherit;
}

.baw-missing-note:focus {
    border-color: #ffd200;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 210, 0, .22);
}

.baw-missing-submit {
    margin-top: 10px;
    padding: 9px 16px;
    border: 0;
    border-radius: 8px;
    background: #1f1b17;
    color: #fff;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
}

.baw-missing-submit:hover {
    background: #ffd200;
    color: #1f1b17;
}

.baw-missing-submit:disabled {
    opacity: .65;
    cursor: wait;
}

.baw-missing-status {
    display: inline-block;
    margin: 10px 0 0 10px;
    color: #15914b;
    font-size: .84rem;
    font-weight: 600;
}

@media (max-width: 600px) {
    .baw-wizard,
    .baw-wizard.baw--archive {
        margin: 14px 0 18px;
        padding: 12px;
    }

    .baw-header {
        gap: 9px;
    }

    .baw-icon {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
        font-size: 1.15rem;
    }

    .baw-controls {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 9px;
    }

    .baw-connector {
        display: none;
    }

    .baw-btn {
        width: 100%;
    }

    .baw-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
