/* WEB-065/1. Only campaign cards use these styles. */
.kb-price-pair.kb-bf-price {
    display: block;
    width: 100%;
    margin-top: 22px;
    color: #252d30;
    font-family: Montserrat, sans-serif;
    container-type: inline-size;
}
.kb-bf-price__heading {
    position: relative;
    height: 28px;
    z-index: 1;
}
.kb-bf-price__ribbon {
    position: absolute;
    bottom: -9px;
    left: 8px;
    border-radius: 10px;
    padding: 8px 12px;
    background: #080808;
    color: #ff6600;
    font-size: clamp(15px, 6cqi, 25px);
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    transform: rotate(-4deg);
}
.kb-bf-price__cat {
    position: absolute;
    width: 30%;
    right: 12%;
    bottom: -11px;
    max-width: 130px;
}
.kb-bf-price__card {
    padding: 18px 16px 15px;
    border: 1px solid #ffd7bc;
    border-radius: 20px;
    background: linear-gradient(125deg, #fff4eb, #fff8f2);
}
.kb-bf-price__main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
}
.kb-bf-price__value {
    color: #ff6600;
    font-size: clamp(28px, 12cqi, 56px);
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
    letter-spacing: -0.04em;
}
.kb-bf-price__everyone {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px;
    border-radius: 15px;
    background: #ffe8d7;
    color: #161616;
    font-size: clamp(10px, 3.5cqi, 15px);
    font-weight: 700;
    line-height: 1.1;
}
.kb-bf-price__everyone svg { width: 23px; flex-shrink: 0; stroke: #ff6600; stroke-width: 2; }
.kb-bf-price__previous { margin-top: 13px; padding-top: 12px; border-top: 1px solid #f6ddca; }
.kb-bf-price__previous > div { display: flex; align-items: baseline; gap: 12px; margin-top: 5px; font-size: clamp(10px, 3.5cqi, 15px); line-height: 1.35; }
.kb-bf-price__previous s { flex: 0 0 23%; white-space: nowrap; font-weight: 600; font-size: calc(clamp(10px, 3.5cqi, 15px) + 2px); text-decoration-thickness: 1px; text-decoration-color: #92989b; }
.kb-bf-price__previous span { min-width: 0; }
@container (max-width: 240px) {
    .kb-bf-price__card { padding: 16px 10px 12px; border-radius: 15px; }
    .kb-bf-price__everyone { padding: 7px 5px; gap: 4px; }
    .kb-bf-price__everyone svg { width: 16px; }
    .kb-bf-price__ribbon { padding: 7px 9px; }
    .kb-bf-price__previous > div { gap: 8px; }
}
/* The existing homepage has two mobile columns. Keep its layout and stack the price/badge. */
@container (max-width: 200px) {
    .kb-bf-price__ribbon { font-size: 10px; padding: 7px; left: 6px; }
    .kb-bf-price__cat { right: 3%; }
    .kb-bf-price__main { flex-direction: column; align-items: stretch; gap: 8px; }
    .kb-bf-price__value { font-size: 24px; }
    .kb-bf-price__everyone { justify-content: center; }
    .kb-bf-price__everyone span { word-break: normal; overflow-wrap: normal; }
    .kb-bf-price__previous s { flex-basis: 42px; }
}

/* Match the detail card width in the existing mobile swipe rail.
   The shared footer already centers info/purchase at 88.8% of the inner card. */
@media (max-width: 768px) {
    .kb-bf-price__main { gap: 8px; }
    .kb-bf-price__everyone span { white-space: nowrap; }
    :is(#builder_products\.list, .catalog-1-section) .catalog-section-static-blocks > .standard-1:has(.kb-bf-price) {
        grid-auto-columns: 100%;
    }
    :is(#builder_products\.list, .catalog-1-section) .catalog-section-static-blocks .product-container:has(.kb-bf-price) {
        padding-inline: 8px;
    }
}
