/* 2BG Checkout – add-ons: "Бърза доставка" bar (product page) and "До безплатна доставка" message (order summary). */

.tbg-fast-bar {
	display: flex; align-items: center; gap: 10px; box-sizing: border-box; max-width: 100%;
	margin: 12px 0; padding: 10px 14px;
	background: var(--tbg-fb-bg, #e6f4ea); color: var(--tbg-fb-color, #1e4620);
	border-radius: var(--tbg-ar, 8px); font-size: .95em; line-height: 1.4;
}
.tbg-fast-bar[hidden] { display: none !important; }
.tbg-fast-bar__icon { flex: 0 0 auto; width: 20px; height: 20px; }
.tbg-fast-bar__text { min-width: 0; overflow-wrap: anywhere; }

.tbg-ar-none { --tbg-ar: 0; }
.tbg-ar-medium { --tbg-ar: 8px; }
.tbg-ar-large { --tbg-ar: 16px; }

tr.tbg-free-ship-row > td { padding-top: 0 !important; text-align: left !important; }
tr.tbg-free-ship-row > td::before { display: none !important; }
.tbg-free-ship {
	display: block; box-sizing: border-box; padding: 8px 12px;
	background: var(--tbg-fs-bg, #f3f6f9); color: var(--tbg-fs-color, #1d2327);
	border-radius: var(--tbg-ar, 8px); font-size: .92em; line-height: 1.4; text-align: left; font-weight: 500;
}
.tbg-free-ship .woocommerce-Price-amount { font-weight: 700; color: inherit; white-space: nowrap; }
.tbg-free-ship__bar {
	display: block; height: 6px; margin-top: 6px; overflow: hidden;
	background: rgba(0, 0, 0, .1); border-radius: 999px;
}
.tbg-free-ship__bar > span { display: block; height: 100%; max-width: 100%; background: var(--tbg-fs-progress, #2e7d32); border-radius: inherit; transition: width .3s ease; }

/* Countdown: digits do not jump while the time changes. */
.tbg-fast-bar.is-countdown .tbg-fast-bar__text { font-variant-numeric: tabular-nums; }

/* "Взимане още днес" – under the add-to-cart button; right after the fast-delivery bar both stay compact. */
.tbg-pickup-bar {
	box-sizing: border-box; max-width: 100%; margin: 12px 0; padding: 10px 14px;
	background: var(--tbg-pb-bg, #e8f1fb); color: var(--tbg-pb-color, #0b3d6b);
	border-radius: var(--tbg-ar, 8px); font-size: .95em; line-height: 1.4;
}
.tbg-pickup-bar[hidden], .tbg-pickup-bar [hidden] { display: none !important; }
.tbg-fast-bar:not([hidden]) + .tbg-pickup-bar { margin-top: -6px; }
.tbg-pickup-bar__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.tbg-pickup-bar__icon { flex: 0 0 auto; width: 20px; height: 20px; }
.tbg-pickup-bar__text { flex: 1 1 12em; min-width: 0; overflow-wrap: anywhere; }
.tbg-pickup-bar .tbg-pickup-bar__toggle {
	flex: 0 0 auto; margin: 0; padding: 4px 10px; min-height: 32px; border: 1px solid currentColor; border-radius: 999px;
	background: transparent; color: inherit; font: inherit; font-size: .9em; font-weight: 600; line-height: 1.2; cursor: pointer; box-shadow: none; text-transform: none; letter-spacing: 0;
}
.tbg-pickup-bar .tbg-pickup-bar__toggle::after { content: ""; display: inline-block; width: .45em; height: .45em; margin-left: .45em; border-right: 2px solid; border-bottom: 2px solid; transform: translateY(-.15em) rotate(45deg); transition: transform .2s; }
.tbg-pickup-bar .tbg-pickup-bar__toggle[aria-expanded="true"]::after { transform: translateY(.05em) rotate(-135deg); }
.tbg-pickup-bar .tbg-pickup-bar__toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.tbg-pickup-bar__list { list-style: none; margin: 8px 0 0 30px; padding: 0; font-size: .92em; }
.tbg-pickup-bar__loc { display: flex; flex-direction: column; gap: 1px; margin: 0; padding: 6px 0; border-top: 1px solid rgba(0, 0, 0, .1); }
.tbg-pickup-bar__loc:first-child { border-top: 0; padding-top: 0; }
.tbg-pickup-bar.is-single .tbg-pickup-bar__list { margin-top: 2px; }
.tbg-pickup-bar.is-single .tbg-pickup-bar__name { display: none; }
.tbg-pickup-bar.is-single .tbg-pickup-bar__loc { border-top: 0; padding: 0; }
.tbg-pickup-bar__addr, .tbg-pickup-bar__hours { opacity: .85; }
.tbg-pickup-bar__until { font-weight: 600; }
@media (max-width: 480px) { .tbg-pickup-bar__list { margin-left: 0; } }
/* 2.0.0 – suggestions under "Още … до безплатна доставка" (cart). */
.tbg-free-sug{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:8px}
.tbg-free-sug__item{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:6px 10px;padding:8px;background:rgba(255,255,255,.7);border-radius:6px}
.tbg-free-sug__link{display:flex;align-items:center;gap:8px;color:inherit;text-decoration:none;min-width:0}
.tbg-free-sug__img{width:40px;height:40px;object-fit:cover;border-radius:4px;flex:none}
.tbg-free-sug__name{font-weight:600;overflow:hidden;text-overflow:ellipsis}
.tbg-free-sug__price{white-space:nowrap}
.tbg-free-sug .tbg-free-sug__add{margin:0;padding:.4em .9em;font-size:.9em;white-space:nowrap}
.tbg-free-sug__error{color:#b32d2e;font-size:.9em}
@media (max-width:480px){.tbg-free-sug__item{grid-template-columns:1fr auto}.tbg-free-sug__price{grid-column:1}.tbg-free-sug .tbg-free-sug__add{grid-column:2;grid-row:1 / span 2}}
/* 2.0.0 – "Очаквани срокове" on the product page. */
.tbg-eta{box-sizing:border-box;max-width:100%;border-radius:var(--tbg-ar,8px);margin:12px 0;padding:10px 14px;background:var(--tbg-eta-bg,#f6f7f7);color:var(--tbg-eta-color,#1d2327);font-size:.92em;line-height:1.45}
.tbg-eta__head{display:flex;align-items:center;gap:8px;margin-bottom:4px}
.tbg-eta__head .tbg-fast-bar__icon{flex:none}
.tbg-eta__list{list-style:none;margin:0;padding:0}
.tbg-eta__row{display:flex;flex-wrap:wrap;gap:0 6px;padding:1px 0}
.tbg-eta__label{min-width:7.5em;opacity:.8}
.tbg-eta__date,.tbg-eta__express{font-weight:600}
.tbg-eta__note{margin:6px 0 0;font-size:.88em;opacity:.75}
.tbg-eta[hidden],.tbg-eta__row[hidden]{display:none!important}

/* "Спестявате" – full-width bar in the cart totals (under "Общо") and in the checkout summary (above "Общо"). */
tr.tbg-savings-row > td { padding-top: 6px !important; padding-bottom: 6px !important; text-align: left !important; }
tr.tbg-savings-row > td::before { display: none !important; }
.tbg-savings {
	display: block; box-sizing: border-box; width: 100%; padding: 10px 14px;
	background: var(--tbg-sv-bg, #e6f4ea); color: var(--tbg-sv-color, #1e4620);
	border-radius: 8px; font-size: .95em; line-height: 1.45; text-align: left; font-weight: 500; overflow-wrap: anywhere;
}
.tbg-savings__amount, .tbg-savings__amount .woocommerce-Price-amount { font-weight: 700; color: var(--tbg-sv-amount, #0b6b2e); white-space: nowrap; }
.tbg-savings__details { margin-top: 6px; }
.tbg-savings__details > summary { cursor: pointer; font-size: .92em; text-decoration: underline; text-underline-offset: 2px; width: max-content; max-width: 100%; }
.tbg-savings__details > summary:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.tbg-savings__lines { list-style: none; margin: 6px 0 0 !important; padding: 0 !important; font-size: .92em; }
.tbg-savings__lines > li { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 3px 0; border-top: 1px solid rgba(0, 0, 0, .08); }
.tbg-savings__lines > li::before { display: none; }
