/* Лентата „Остават ви X €“ (BC_Goal_Bar). Файлът се зарежда на всяка
   страница, защото мини количката е на всяка; цветовете са от child темата, със същите стойности за резерва. */

.bc-goal {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.4;
}

.bc-goal__msg {
    margin: 0 0 8px;
    color: var(--vr-green-deep, #255F40);
    font-weight: 600;
}

.bc-goal__track {
    position: relative;
    height: 8px;
    margin-bottom: 34px;
    border-radius: 4px;
    background: var(--vr-sand, #E8DECE);
}

.bc-goal__fill {
    display: block;
    height: 100%;
    max-width: 100%;
    border-radius: 4px;
    background: var(--vr-green-price, #009C43);
    transition: width 0.3s ease;
}

.bc-goal__mark {
    position: absolute;
    top: 12px;
    transform: translateX(-50%);
    font-size: 11px;
    line-height: 1.2;
    color: var(--vr-meta, #6E6660);
    text-align: center;
    white-space: nowrap;
}

.bc-goal__mark::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 50%;
    width: 2px;
    height: 8px;
    background: #fff;
}

.bc-goal__mark:last-child {
    transform: translateX(-100%);
    text-align: right;
}

.bc-goal__mark:last-child::before {
    display: none;
}

.bc-goal__mark b {
    display: block;
    color: var(--vr-green-deep, #255F40);
}

.bc-goal__mark.is-reached b {
    color: var(--vr-green-price, #009C43);
}

.widget_shopping_cart .bc-goal {
    margin: 12px 0;
}

/* Предложенията под лентата: до 4 карти в количката, до 3 в мини количката. */
.bc-goal-picks {
    margin: 0 0 16px;
}

.bc-goal-picks__title {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--vr-green-deep, #255F40);
}

.bc-goal-picks__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bc-pick {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    margin: 0;
    padding: 8px;
    border: 1px solid var(--vr-sand, #E8DECE);
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    line-height: 1.3;
}

.bc-pick__img img {
    display: block;
    width: 100%;
    height: 72px;
    object-fit: contain;
}

.bc-pick__title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: inherit;
    text-decoration: none;
}

.bc-pick__price {
    font-weight: 700;
    color: var(--vr-green-price, #009C43);
}

.bc-pick__price del {
    font-weight: 400;
    color: var(--vr-meta, #6E6660);
}

.bc-pick__btn {
    margin-top: auto;
    text-align: center;
}

/* В страницата на количката предложенията са след таблицата с продуктите, не над нея. */
.woocommerce-cart-form .bc-goal-picks {
    margin: 8px 0 0;
}

@media (max-width: 767px) {
    .bc-goal-picks__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.widget_shopping_cart .bc-goal-picks__list {
    grid-template-columns: 1fr;
}

.widget_shopping_cart .bc-pick {
    flex-direction: row;
    align-items: center;
}

.widget_shopping_cart .bc-pick__img {
    flex: 0 0 48px;
}

.widget_shopping_cart .bc-pick__img img {
    height: 48px;
}

.widget_shopping_cart .bc-pick__title {
    flex: 1 1 auto;
}

.widget_shopping_cart .bc-pick__btn {
    margin-top: 0;
}

.widget_shopping_cart .bc-pick:nth-child(n+4) {
    display: none;
}

/* На телефон малката количка показва два продукта, за да се вижда какво има в нея (Петър, 08.10.2026). */
@media (max-width: 767px) {
    .widget_shopping_cart .bc-pick:nth-child(n+3) {
        display: none;
    }
}

/* В мини количката предложенията са ред от списъка с продуктите, под тях, и се превъртат заедно с тях. */
.woocommerce-mini-cart > li.bc-goal-picks-row {
    display: block;
    padding: 15px;
    border: 0;
    list-style: none;
}

.woocommerce-mini-cart > li.bc-goal-picks-row .bc-goal-picks {
    margin: 0;
}
