/* Jotter Core module UI. Tokens come from the child theme (with fallbacks). */

/* ---------- Booster: one line, one bar, one hint ---------- */
.jb-booster { margin: 0 0 14px; padding: 0; background: none; border: 0; color: var(--jb-ink, #151213); font-size: 14px; line-height: 1.45; }
.jb-booster p { margin: 0; color: inherit; }
.jb-booster__line b { font-weight: 600; }
.jb-booster__bar { height: 6px; margin: 8px 0 0; border-radius: 6px; background: rgba(21, 18, 19, .08); overflow: hidden; }
.jb-booster__bar span { display: block; height: 100%; border-radius: inherit; background: var(--jb-pink, #f29bb5); transition: width .6s cubic-bezier(.2, .7, .2, 1); }
.jb-booster--free .jb-booster__bar span { background: var(--jb-frog, #9fd37b); }
.jb-booster--min .jb-booster__bar span, .jb-booster--sp_only .jb-booster__bar span { background: var(--jb-duck, #ffd84d); }
.jb-booster__hint { margin-top: 6px !important; font-size: 13px; color: var(--jb-muted, #665d61) !important; }
.jb-booster__hint a { color: var(--jb-ink, #151213); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.jb-booster .added_to_cart, .jb-deliv .added_to_cart, .jb-offer .added_to_cart { display: none !important; }
.jb-booster--cart, .jb-booster--checkout { padding: 14px 16px; border-radius: var(--jb-r, 12px); background: #fff; border: 1px solid rgba(21, 18, 19, .1); margin-bottom: 20px; }
.cart-widget-side .jb-booster { margin: 0; padding: 14px 20px; border-bottom: 1px solid rgba(21, 18, 19, .1); }

/* ---------- Checkout extras: tips + gift, compact ---------- */
.jb-extras { margin: 4px 0 16px; border-top: 1px solid rgba(21, 18, 19, .1); padding-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.jb-tips__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.jb-tips__title { font-weight: 500; font-size: 15px; color: var(--jb-ink, #151213); }
.jb-tips__note { font-size: 13px; color: var(--jb-muted, #665d61); }
.jb-tips__row { display: flex; gap: 6px; flex-wrap: wrap; }
.jb-tip { flex: 1 1 0; min-width: 52px; height: 38px; padding: 0 8px; border-radius: 8px; border: 1px solid rgba(21, 18, 19, .2); background: #fff; color: var(--jb-ink, #151213); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; display: inline-grid; place-items: center; box-shadow: none; text-transform: none; letter-spacing: 0; transition: border-color .2s, background .2s, color .2s; }
.jb-tip:hover { border-color: var(--jb-ink, #151213); background: #fff; color: var(--jb-ink, #151213); }
.jb-tip.is-active { background: var(--jb-ink, #151213); border-color: var(--jb-ink, #151213); color: #fff; }
.jb-tip--custom { padding: 0; flex: 1.4 1 0; }
.jb-tip--custom input { width: 100%; height: 36px !important; border: 0 !important; background: transparent !important; text-align: center; font-weight: 500; padding: 0 6px !important; box-shadow: none !important; }
.jb-tip--custom.is-active input { color: #fff; }
.jb-tips.is-loading { opacity: .55; pointer-events: none; }
.jb-bump { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; }
.jb-bump input { position: absolute; opacity: 0; pointer-events: none; }
.jb-bump__box { flex: 0 0 20px; height: 20px; margin-top: 1px; border-radius: 5px; border: 1.5px solid var(--jb-ink, #151213); background: #fff; display: grid; place-items: center; }
.jb-bump.is-active .jb-bump__box { background: var(--jb-ink, #151213); }
.jb-bump.is-active .jb-bump__box:after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.jb-bump__text { color: var(--jb-ink-2, #3d3639); line-height: 1.45; }
.jb-bump__text b { font-weight: 500; color: var(--jb-ink, #151213); }
.jb-bump__text span { color: var(--jb-muted, #665d61); }
.jb-coupon { margin: 0 0 6px; font-size: 14px; }
.jb-coupon summary { cursor: pointer; color: var(--jb-ink, #151213); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; list-style: none; width: max-content; }
.jb-coupon summary::-webkit-details-marker { display: none; }
.jb-coupon__row { display: flex; gap: 8px; margin-top: 10px; }
.jb-coupon__row input { flex: 1; height: 42px; }
.jb-coupon__row .button { height: 42px; padding: 0 16px; }
.jb-coupon.is-loading { opacity: .6; }

/* ---------- Checkout ---------- */
.jb-nocall { margin: 0 0 18px; padding: 10px 14px; border-radius: var(--jb-r-sm, 8px); background: #eef6ec; color: var(--jb-ink, #151213); font-size: 14px; }

/* ---------- Product page ---------- */
.jb-stock { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 6px 0 20px; font-size: 14px; color: var(--jb-ink-2, #3d3639); }
.jb-stock b { color: var(--jb-ok, #2f7d3a); font-weight: 500; }
.jb-stock__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--jb-ok, #2f7d3a); }
.jb-stock__low { padding: 2px 8px; border-radius: 4px; background: #fff3d6; color: var(--jb-ink, #151213); font-weight: 500; font-size: 12px; }

.jb-print { margin: 0 0 20px; }
.jb-print__title { display: block; font-weight: 500; font-size: 14px; color: var(--jb-ink, #151213); margin-bottom: 8px; }
.jb-print__row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.jb-print__row::-webkit-scrollbar { display: none; }
.jb-print__item { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: var(--jb-r-sm, 8px); background: #fff; border: 1px solid rgba(21, 18, 19, .12); color: var(--jb-ink, #151213); text-decoration: none; transition: border-color .2s, transform .2s; }
.jb-print__item:hover { border-color: var(--jb-ink, #151213); transform: translateY(-2px); color: var(--jb-ink, #151213); }
.jb-print__item img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.jb-print__item > span { display: flex; flex-direction: column; line-height: 1.25; font-size: 13px; }
.jb-print__item em { font-style: normal; color: var(--jb-muted, #665d61); }

.jb-deliv { list-style: none; margin: 20px 0 4px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.jb-deliv li { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 14px; line-height: 1.4; color: var(--jb-ink-2, #3d3639); list-style: none; }
.jb-deliv__ic { flex: 0 0 20px; color: var(--jb-ink, #151213); margin-top: -1px; }
.jb-deliv__sp { color: var(--jb-ink, #151213); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.jb-seconds-note { margin: 0 0 16px; padding: 12px 14px; border-radius: var(--jb-r-sm, 8px); background: #fff3d6; font-size: 14px; color: var(--jb-ink, #151213); }
.jb-seconds-note b { font-weight: 500; }

.jb-faq { display: flex; flex-direction: column; max-width: 820px; border-top: 1px solid rgba(21, 18, 19, .14); }
.jb-faq__item { border-bottom: 1px solid rgba(21, 18, 19, .14); }
.jb-faq__item summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 500; color: var(--jb-ink, #151213); position: relative; }
.jb-faq__item summary::-webkit-details-marker { display: none; }
.jb-faq__item summary:after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 20px; transition: transform .2s; }
.jb-faq__item[open] summary:after { transform: translateY(-50%) rotate(45deg); }
.jb-faq__item p { margin: 0 0 16px; color: var(--jb-ink-2, #3d3639); line-height: 1.6; }

/* ---------- Offer band (home, delivery page) ---------- */
.jb-offer { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: center; padding: clamp(16px, 3vw, 32px); border-radius: var(--jb-r-lg, 20px); background: var(--jb-surface, #f6d9e2); }
.jb-offer__art { display: block; border-radius: var(--jb-r, 12px); overflow: hidden; }
.jb-offer__img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.jb-offer__art:hover .jb-offer__img { transform: scale(1.03); }
.jb-offer__body { padding: 8px 8px 8px 0; }
.jb-offer__title { margin: 0 0 16px; font-size: clamp(28px, 3.4vw, 44px); font-weight: 400; line-height: 1.05; letter-spacing: -0.035em; color: var(--jb-ink, #151213); max-width: 16ch; }
.jb-offer__text { margin: 0 0 10px; max-width: 50ch; color: var(--jb-ink, #151213); font-size: 17px; line-height: 1.55; }
.jb-offer__note { margin: 0 0 24px; color: var(--jb-ink-2, #3d3639); font-size: 15px; }
.jb-offer__actions { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.jb-offer .jb-offer__btn { height: 52px; padding: 0 24px; display: inline-flex; align-items: center; background: var(--jb-ink, #151213) !important; color: #fff !important; font-size: 16px; font-weight: 500; }
@media (max-width: 767px) {
	.jb-offer { grid-template-columns: 1fr; padding: 12px; border-radius: var(--jb-r, 12px); }
	.jb-offer__body { padding: 8px 8px 12px; }
	.jb-offer .jb-offer__btn { width: 100%; justify-content: center; }
}

/* Checkout specifics that beat theme button styles */
.jb-tips .jb-tip { background: #fff !important; color: var(--jb-ink, #151213) !important; white-space: nowrap; font-size: 14px; min-height: 0; line-height: 1; }
.jb-tips .jb-tip.is-active { background: var(--jb-ink, #151213) !important; color: #fff !important; }
.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals { display: flex; flex-direction: column; }
.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals th,
.woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td { width: 100%; text-align: left !important; padding-bottom: 4px !important; border: 0 !important; }
.woocommerce-checkout-review-order-table #shipping_method { margin: 0; padding: 0; }
.woocommerce-checkout-review-order-table #shipping_method li { display: flex; align-items: center; gap: 8px; justify-content: flex-start; text-align: left; }
.woocommerce-checkout-review-order-table #shipping_method li input { margin: 0; order: -1; }
.woocommerce-checkout-review-order-table .cart_item td { vertical-align: top; }
.woocommerce-checkout-review-order-table .cart_item .product-total { white-space: nowrap; font-weight: 500; color: var(--jb-ink, #151213); }
