/* ══════════════════════════════════════════════
   WooCommerce Buy More Save More — Bundle CSS
   ══════════════════════════════════════════════ */

.wbmsm-bundle {
    margin: 1.5em 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}
.wbmsm-bundle *, .wbmsm-bundle *::before, .wbmsm-bundle *::after { box-sizing: border-box; }

/* ── Shared ── */
.wbmsm-bundle-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.wbmsm-bundle-title {
    font-size: 15px;
    font-weight: 700;
    color: #222;
}
.wbmsm-bundle-badge {
    background: #fef3c7;
    color: #92400e;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 4px;
}
.wbmsm-bundle-price-new {
    font-size: 17px;
    font-weight: 700;
    color: #111;
}
.wbmsm-bundle-price-old {
    font-size: 13px;
    color: #aaa;
    text-decoration: line-through;
    margin-left: 4px;
}
.wbmsm-bundle-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    border: none;
    border-radius: 10px;
    background: #222;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.wbmsm-bundle-btn:hover { background: #444; }
.wbmsm-bundle-btn.loading { opacity: 0.6; pointer-events: none; }
.wbmsm-bundle-btn.added { background: #38a169; }

/* ══════════════
   A — CARD
   ══════════════ */
.wbmsm-bundle-card {
    background: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 14px;
    padding: 1.2em;
}
.wbmsm-bundle-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}
.wbmsm-bundle-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid #eee;
    border-radius: 8px;
}
.wbmsm-bundle-item-img {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}
.wbmsm-bundle-item-placeholder {
    background: #f5f5f5;
}
.wbmsm-bundle-item-info { flex: 1; min-width: 0; }
.wbmsm-bundle-item-name {
    font-size: 13px;
    font-weight: 600;
    color: #222;
}
.wbmsm-bundle-item-name a {
    color: inherit;
    text-decoration: none;
}
.wbmsm-bundle-item-name a:hover { text-decoration: underline; }
.wbmsm-bundle-item-price {
    font-size: 13px;
    display: flex;
    align-items: baseline;
    gap: 5px;
}
.wbmsm-bundle-item-price-new {
    font-weight: 600;
    color: #222;
}
.wbmsm-bundle-item-price-old {
    font-size: 12px;
    color: #aaa;
    text-decoration: line-through;
}
.wbmsm-bundle-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #38a169;
    flex-shrink: 0;
    position: relative;
}
.wbmsm-bundle-check::after {
    content: '✓';
    color: #fff;
    font-size: 11px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.wbmsm-bundle-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 10px;
    border-top: 1px solid #eee;
}
.wbmsm-bundle-total-label {
    font-size: 13px;
    color: #666;
}
.wbmsm-bundle-save {
    font-size: 12px;
    color: #38a169;
    font-weight: 600;
}

/* ══════════════
   B — HORIZONTAL
   ══════════════ */
.wbmsm-bundle-horiz {
    background: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 14px;
    padding: 1.2em;
}
.wbmsm-bundle-horiz-row {
    display: flex;
    align-items: stretch;
    gap: 6px;
}
.wbmsm-bundle-horiz-item {
    flex: 1;
    text-align: center;
    padding: 10px 6px;
    border: 1px solid #eee;
    border-radius: 8px;
}
.wbmsm-bundle-horiz-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    margin: 0 auto 6px;
    display: block;
}
.wbmsm-bundle-horiz-name {
    font-size: 11px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    margin-bottom: 2px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.wbmsm-bundle-horiz-price {
    font-size: 11px;
    color: #888;
}
.wbmsm-bundle-horiz-sep {
    display: flex;
    align-items: center;
    font-size: 20px;
    color: #ccc;
    padding: 0 2px;
    flex-shrink: 0;
}
.wbmsm-bundle-horiz-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border: 1px solid #d1fae5;
    border-radius: 8px;
    background: #ecfdf5;
    flex-shrink: 0;
    min-width: 80px;
}

/* ══════════════
   C — BANNER
   ══════════════ */
.wbmsm-bundle-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #ecfdf5;
    border-radius: 12px;
    border: 1px solid #d1fae5;
}
.wbmsm-bundle-banner-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #38a169;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}
.wbmsm-bundle-banner-text { flex: 1; min-width: 0; }
.wbmsm-bundle-banner-title {
    font-size: 13px;
    font-weight: 600;
    color: #065f46;
}
.wbmsm-bundle-banner-sub {
    font-size: 12px;
    color: #059669;
}
.wbmsm-bundle-banner-btn {
    padding: 8px 16px;
    border-radius: 8px;
    background: #38a169;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}
.wbmsm-bundle-banner-btn:hover { background: #2f855a; }
.wbmsm-bundle-banner-btn.loading { opacity: 0.6; pointer-events: none; }
.wbmsm-bundle-banner-btn.added { background: #276749; }

/* ── Responsive ── */
@media (max-width: 480px) {
    .wbmsm-bundle-horiz-row { flex-wrap: wrap; }
    .wbmsm-bundle-horiz-item { min-width: calc(50% - 20px); }
    .wbmsm-bundle-banner { flex-wrap: wrap; }
}
