/* TGP side cart drawer (2026-11-24). Tokens as in rims.css (Figma "Veljed/Rehvid UX"). */
.tgp-cd{
	--y: #fdb813; --dk: #1e1e1e; --mu: #5b5b5b; --mu2: #8a8a8a; --ln: #ececec; --soft: #f6f6f6; --gr: #29994d; --grbg: #e8f6eb; --rd: #c0352b;
	--M: 'Montserrat', sans-serif; --O: 'Open Sans', sans-serif;
	position: fixed; inset: 0; z-index: 2147483000; /* above theme and cookie buttons */ font-family: var(--O); color: var(--dk); line-height: 1.35; letter-spacing: 0;
}
.tgp-cd[hidden]{ display: none; }
.tgp-cd *, .tgp-cd *::before, .tgp-cd *::after{ box-sizing: border-box; }
.tgp-cd p, .tgp-cd h2, .tgp-cd ul{ margin: 0; padding: 0; letter-spacing: 0; text-transform: none; }
.tgp-cd a{ color: inherit; text-decoration: none; }
body .tgp-cd button{ font: inherit; letter-spacing: 0; text-transform: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; cursor: pointer; box-shadow: none; min-height: 0; line-height: inherit; }
body .tgp-cd button:disabled{ cursor: default; opacity: .35; }
.tgp-cd :focus-visible{ outline: 2px solid var(--dk); outline-offset: 2px; }
html.tgp-cd-lock{ overflow: hidden; }
html.tgp-cd-lock body{ padding-right: var(--tgp-cd-sw, 0); }

.tgp-cd__veil{ position: absolute; inset: 0; background: rgba(12, 12, 12, .5); opacity: 0; transition: opacity .25s ease; }
.tgp-cd__panel{ position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #fff; display: flex; flex-direction: column;
	box-shadow: -12px 0 40px rgba(0, 0, 0, .18); transform: translateX(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); outline: none; }
.tgp-cd.is-open .tgp-cd__veil{ opacity: 1; }
.tgp-cd.is-open .tgp-cd__panel{ transform: none; }
@media (prefers-reduced-motion: reduce){ .tgp-cd__veil, .tgp-cd__panel{ transition: none; } }

.tgp-cd__head{ display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 16px 24px; border-bottom: 1px solid var(--ln); }
.tgp-cd__title{ font: 800 20px/1.2 var(--M) !important; color: var(--dk) !important; text-transform: uppercase; letter-spacing: .3px !important; margin: 0 !important; }
.tgp-cd__count{ font-weight: 600; color: var(--mu2); }
body .tgp-cd .tgp-cd__x{ width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background .15s; }
body .tgp-cd .tgp-cd__x:hover{ background: var(--soft); }

.tgp-cd__banner{ display: flex; align-items: center; gap: 8px; margin: 12px 20px 0; padding: 10px 14px; border-radius: 10px; background: var(--soft); font-size: 13.5px; font-weight: 600; }
.tgp-cd__banner[hidden]{ display: none; }
.tgp-cd__banner.is-ok{ background: var(--grbg); color: #1a592e; }
.tgp-cd__banner > span{ flex: 1; min-width: 0; }
body .tgp-cd .tgp-cd__undo{ font-weight: 700; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }

.tgp-cd__body{ flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px 20px; }
.tgp-cd__list{ list-style: none; }
.tgp-cd__item{ position: relative; display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--ln); transition: opacity .2s; }
.tgp-cd__item.is-busy{ opacity: .45; pointer-events: none; }
.tgp-cd__img{ flex: none; width: 76px; height: 76px; border-radius: 10px; border: 1px solid var(--ln); background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tgp-cd__img img{ width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.tgp-cd__info{ flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding-right: 30px; }
.tgp-cd__name{ font: 700 14px/1.3 var(--M); color: var(--dk); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
a.tgp-cd__name:hover{ text-decoration: underline; text-underline-offset: 2px; }
.tgp-cd__meta, .tgp-cd__unit{ font-size: 12.5px; color: var(--mu); }
.tgp-cd__low{ align-self: flex-start; font-size: 11.5px; font-weight: 600; color: #6b5200; background: #fff6d9; border-radius: 6px; padding: 2px 7px; }
.tgp-cd__row{ display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.tgp-cd__qty{ display: inline-flex; align-items: center; height: 36px; border: 1px solid #dcdcdc; border-radius: 18px; }
body .tgp-cd .tgp-cd__qb{ width: 36px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 18px; }
body .tgp-cd .tgp-cd__qb:not(:disabled):hover{ background: var(--soft); }
/* off at min / stock limit: just a pale icon — beats the theme's grey .scheme_default button[disabled] fill */
body .tgp-cd .tgp-cd__qb:disabled{ background: none !important; opacity: .3; cursor: not-allowed !important; }
.tgp-cd .tgp-cd__max{ margin-top: 2px; font-size: 12px; color: var(--mu); }
.tgp-cd .tgp-cd__max[hidden]{ display: none; }
.tgp-cd__qv{ min-width: 26px; text-align: center; font: 700 14px var(--M); }
.tgp-cd__line{ font: 800 16px var(--M); white-space: nowrap; }
body .tgp-cd .tgp-cd__rm{ position: absolute; top: 14px; right: -6px; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--mu2); transition: color .15s, background .15s; }
body .tgp-cd .tgp-cd__rm:hover{ color: var(--rd); background: #fdeceb; }

.tgp-cd__service{ display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: #fff6d9; transition: background .15s; }
.tgp-cd__service:hover{ background: #ffefbd; }
.tgp-cd__service-i{ flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--y); display: flex; align-items: center; justify-content: center; color: var(--dk); }
.tgp-cd__service-t{ display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: #4d3c00; }
.tgp-cd__service-t b{ font: 700 14px var(--M); color: var(--dk); }

.tgp-cd__foot{ padding: 16px 24px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--ln); background: #fff; display: flex; flex-direction: column; gap: 10px; }
.tgp-cd__foot:empty{ display: none; }
.tgp-cd__sum{ display: flex; align-items: baseline; justify-content: space-between; font: 700 15px var(--M); }
.tgp-cd__sum b{ font: 800 24px var(--M); }
.tgp-cd__tax{ font-size: 12.5px; color: var(--mu); margin-top: -6px !important; }
.tgp-cd .tgp-cd__eta, p.tgp-cd__eta{ display: flex; align-items: flex-start; gap: 8px; font: 600 13px/1.4 var(--O, inherit); color: #1f4a99; background: #eaf0fb; border-radius: 12px !important; padding: 10px 14px !important; margin: 0 !important; } /* EU items: whole order here (2026-11-30), as the EU pill on the cart page */
.tgp-cd__eta svg{ flex: none; margin-top: 1px; }
.tgp-cd__btn{ display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 22px; border-radius: 26px; background: var(--dk); color: #fff !important;
	font: 700 14px var(--M); letter-spacing: .6px; text-transform: uppercase; transition: background .15s, transform .1s; }
.tgp-cd__btn:hover{ background: #000; }
.tgp-cd__btn:active{ transform: scale(.99); }
.tgp-cd__btn--go{ background: var(--y); color: var(--dk) !important; margin-top: 4px; }
.tgp-cd__btn--go:hover{ background: #f2ab00; }
.tgp-cd__btn--ghost{ background: #fff; color: var(--dk) !important; border: 1.5px solid var(--dk); }
.tgp-cd__btn--ghost:hover{ background: var(--soft); }
body .tgp-cd .tgp-cd__link{ align-self: center; font-size: 13.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; padding: 6px; }

.tgp-cd__empty{ display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 56px 12px 24px; }
.tgp-cd__empty-i{ width: 76px; height: 76px; border-radius: 50%; background: var(--soft); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.tgp-cd__empty-t{ font: 800 18px var(--M); }
.tgp-cd__empty-s{ font-size: 14px; color: var(--mu); max-width: 280px; }
.tgp-cd__empty-a{ display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 300px; margin-top: 12px; }

.tgp-cd__skel{ display: grid; grid-template-columns: 76px 1fr; grid-template-rows: 16px 12px 30px; gap: 8px 14px; padding: 18px 0; border-bottom: 1px solid var(--ln); }
.tgp-cd__skel span{ border-radius: 8px; background: linear-gradient(90deg, #f1f1f1 25%, #e6e6e6 50%, #f1f1f1 75%); background-size: 200% 100%; animation: tgp-cd-sh 1.2s infinite linear; }
.tgp-cd__skel span:first-child{ grid-row: 1 / 4; height: 76px; border-radius: 10px; }
.tgp-cd__skel span:nth-child(2){ width: 80%; }
.tgp-cd__skel span:nth-child(3){ width: 45%; }
@keyframes tgp-cd-sh{ to{ background-position: -200% 0; } }
.tgp-cd__sr{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Inbank (via Paysera) under "Vormista tellimus" — small version of the cart / checkout card (class-inbank-note.php, 2026-12-01) */
.tgp-cd__inb{ display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid #e8e8e8; border-radius: 12px; background: #fff; font: 400 12px/1.35 var(--O, inherit); color: var(--mu); }
.tgp-cd__inb-logo{ flex: none; box-sizing: content-box; width: 38px; height: 14px; padding: 6px 6px; border-radius: 8px; background: #f4f0fd; margin: 0; }
.tgp-cd__inb-t{ min-width: 0; }
.tgp-cd__inb-t b{ display: block; font-weight: 700; font-size: 12.5px; color: var(--dk); }
@media (max-width: 480px){
	.tgp-cd__panel{ width: 100%; }
	.tgp-cd__head{ padding: 14px 12px 12px 18px; }
	.tgp-cd__body{ padding: 0 16px 16px; }
	.tgp-cd__foot{ padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); }
	.tgp-cd__img{ width: 68px; height: 68px; }
}

/* Theme mini cart dropdown: replaced by the drawer. */
.sc_layouts_cart .sc_layouts_cart_widget{ display: none !important; }
.sc_layouts_cart{ cursor: pointer; }

/* Theme floating buttons stay under the open drawer. */
html.tgp-cd-lock .trx_addons_scroll_to_top{ display: none !important; }
