@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&display=swap');

/* ── Tax summary row (above TOTAL) ────────────────────────── */
.bq-tax-summary-row th,
.bq-tax-summary-row td {
    font-family: 'DM Sans', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #64748b;
    padding: 6px 0 4px !important;
    background: transparent !important;
}
.bq-tax-summary-row td {
    text-align: right;
    color: #1a1a1a;
    font-weight: 500;
}
.bq-tax-formula {
    font-size: 11px;
    color: #185FA5;
    font-weight: 500;
    margin-right: 6px;
    white-space: nowrap;
}
.bq-tax-formula .woocommerce-Price-amount {
    color: #185FA5;
}

/* ── Toggle button ─────────────────────────────────────────── */
.bq-tax-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 7px 12px;
    margin-top: 4px;
    background: #f6f8fa;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'DM Sans', -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .07em;
    outline: none;
    transition: background .15s, color .15s;
    box-sizing: border-box;
}
.bq-tax-toggle:hover { background: #edf0f4; color: #1a1a1a; }
.bq-tax-chevron {
    font-size: 9px;
    display: inline-block;
    transition: transform .25s ease;
}

/* ── Breakdown panel ───────────────────────────────────────── */
.bq-tax-block {
    font-family: 'DM Sans', -apple-system, sans-serif;
    background: #f6f8fa;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 6px 6px;
    padding: 6px 13px 10px;
    animation: bqFadeIn .2s ease;
}
@keyframes bqFadeIn {
    from { opacity: 0; transform: translateY(-3px); }
    to   { opacity: 1; transform: translateY(0); }
}
.bq-tax-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 0.5px solid #e8ecf0;
}
.bq-tax-item:last-of-type { border-bottom: none; }
.bq-tax-item-left {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    flex: 1;
}
.bq-tax-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}
.bq-tax-product-name {
    font-size: 12px;
    color: #475569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}
.bq-tax-rate-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}
.bq-tax-item-amount {
    font-size: 12px;
    font-weight: 500;
    color: #1a1a1a;
    white-space: nowrap;
    margin-left: 8px;
    flex-shrink: 0;
}
.bq-tax-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 6px 0 5px;
}
.bq-tax-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0 2px;
}
.bq-tax-total-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.bq-tax-total-val {
    font-size: 12px;
    font-weight: 700;
    color: #1a1a1a;
}
.bq-tax-note {
    font-size: 10px;
    color: #94a3b8;
    font-style: italic;
    margin-top: 7px;
    display: block;
    text-align: right;
}
@media (max-width: 480px) {
    .bq-tax-product-name { max-width: 110px; }
    .bq-tax-block { padding: 6px 11px 10px; }
}
