/* =============================================================
   Back Market-style Refurbished Pricing — picker + sticky bar
   ============================================================= */

/* Picker container */
.bm-rx-picker {
    margin: 8px 0 24px;
    padding: 0;
}

/* Section (Storage / Condition) */
.bm-rx-section { margin-bottom: 20px; }
.bm-rx-section-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}
.bm-rx-section-label {
    font-size: 13px;
    font-weight: 700;
    color: #5b6471;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.bm-rx-section-value {
    font-size: 14px;
    font-weight: 700;
    color: #0f1320;
}

/* Storage chips */
.bm-rx-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.bm-rx-chip {
    appearance: none;
    border: 1.5px solid #d2d6df;
    background: #ffffff;
    color: #0f1320;
    border-radius: 999px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, color .15s ease, transform .1s ease;
}
.bm-rx-chip:hover:not([disabled]) { border-color: #0f1320; }
.bm-rx-chip.is-active {
    border-color: #0f1320;
    background: #0f1320;
    color: #ffffff;
}
.bm-rx-chip.is-disabled,
.bm-rx-chip[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Condition cards */
.bm-rx-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}
.bm-rx-card {
    appearance: none;
    border: 1.5px solid #d2d6df;
    background: #ffffff;
    border-radius: 12px;
    padding: 14px 12px;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: border-color .15s ease, background .15s ease, transform .1s ease, box-shadow .15s ease;
    color: #0f1320;
}
.bm-rx-card:hover:not([disabled]):not(.is-unavailable) {
    border-color: #0f1320;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}
.bm-rx-card.is-active {
    border-color: #0f1320;
    background: #0f1320;
    color: #ffffff;
}
.bm-rx-card-name {
    font-size: 14px;
    font-weight: 700;
}
.bm-rx-card-price {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.92;
}
.bm-rx-card.is-active .bm-rx-card-price { opacity: 1; }
.bm-rx-card.is-sold-out,
.bm-rx-card.is-unavailable {
    cursor: not-allowed;
    background: #f4f5f8;
    color: #8b95a6;
    border-color: #e8eaf0;
}
.bm-rx-card.is-sold-out .bm-rx-card-name,
.bm-rx-card.is-unavailable .bm-rx-card-name {
    text-decoration: line-through;
}
.bm-rx-sold {
    font-size: 12px;
    font-weight: 700;
    color: #c33;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Sticky app bar */
.bm-sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    background: #ffffff;
    border-top: 1px solid #e8eaf0;
    box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.08);
    transform: translateY(110%);
    transition: transform .25s ease;
    padding: 10px 0;
}
.bm-sticky-bar.is-visible {
    transform: translateY(0);
}
.bm-sticky-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.bm-sticky-bar-product {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
}
.bm-sticky-bar-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background: #f4f5f8;
    flex-shrink: 0;
}
.bm-sticky-bar-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.bm-sticky-bar-name {
    font-size: 14px;
    font-weight: 700;
    color: #0f1320;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}
.bm-sticky-bar-config {
    font-size: 12px;
    color: #5b6471;
}
.bm-sticky-dot { margin: 0 4px; }
.bm-sticky-bar-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}
.bm-sticky-bar-price {
    font-size: 18px;
    font-weight: 800;
    color: #0f1320;
}
.bm-sticky-bar-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    background: #0f1320;
    color: #ffffff;
    border: 0;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease, transform .1s ease;
}
.bm-sticky-bar-add:hover {
    background: #1f2530;
    color: #ffffff;
}

@media (max-width: 575px) {
    .bm-rx-cards { grid-template-columns: 1fr 1fr; }
    .bm-sticky-bar-name { max-width: 140px; font-size: 13px; }
    .bm-sticky-bar-config { font-size: 11px; }
    .bm-sticky-bar-thumb { width: 40px; height: 40px; }
    .bm-sticky-bar-add { padding: 9px 14px; font-size: 13px; }
    .bm-sticky-bar-price { font-size: 16px; }
}
