/**
 * File Path: assets/css/front/mbs-front-buy-links.css
 * Buy Links — Retailer Buttons (.mbs-buy-links)
 * Component of mbs-front.css — extracted Session 94.
 * Enqueued by MBS_Front_Assets with dep: mbs-front.
 */
/* ==========================================================================
   Buy Links — Retailer Buttons (.mbs-buy-links)
   Flat selectors (CSS-002 compliance). No accordion — always visible.
   These rules are intentionally outside .mbs-wrapper{} nesting because
   nested &.active / &:hover selectors are ignored in the test browser (CSS-NEST-001).
   ========================================================================== */

.mbs-buy-links {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    align-items: center;
}

.mbs-buy-links .mbs-retailer-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none !important;
    color: var(--mbs-navy) !important;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.mbs-buy-links .mbs-retailer-btn:hover {
    background: var(--mbs-teal) !important;
    color: #ffffff !important;
    border-color: var(--mbs-teal) !important;
    text-decoration: none !important;
}

.mbs-buy-links .mbs-retailer-btn:focus-visible,
.mbs-buy-links .mbs-retailer-btn:focus {
    outline: 3px solid var(--mbs-teal);
    outline-offset: 2px;
}

.mbs-buy-links .mbs-retailer-logo {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain;
    display: block !important;
    flex-shrink: 0;
}

.mbs-buy-links .mbs-retailer-label {
    display: inline;
}

.mbs-buy-links .mbs-retailer-cta {
    display: none !important; /* UX-007: removed from output; safety net for cached JS */
}

/* Dark-mode overrides for buy link buttons */
@media (prefers-color-scheme: dark) {
    .mbs-buy-links .mbs-retailer-btn {
        background: #1e2a3a !important;
        border-color: #3a4a5a !important;
        color: #e0e8f0 !important;
    }
    .mbs-buy-links .mbs-retailer-btn:hover {
        background: var(--mbs-teal) !important;
        color: #ffffff !important;
        border-color: var(--mbs-teal) !important;
    }
}
