/* Trillzo Plugin — "Your cart" box at the top of the checkout. */

:root { --tzc-qc-accent: #B84D00; }

.tzc-op {
	box-sizing: border-box;
	margin: 0 0 24px;
	padding: 18px 20px 8px;
	border: 1px solid #e3e3e3;
	border-radius: 8px;
	background: #fff;
	color: #2b2b2b;
	font-size: 15px;
	line-height: 1.35;
}
.tzc-op__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
html body .tzc-op h3.tzc-op__title { margin: 0; padding: 0; font-size: 18px; font-weight: 700; line-height: 1.3; }
.tzc-op__count { margin-left: 6px; color: #777; font-size: 14px; font-weight: 400; }
html body .tzc-op a.tzc-op__more { flex: 0 0 auto; color: var(--tzc-qc-accent); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
html body .tzc-op a.tzc-op__more:hover { text-decoration: underline; }

/* Free delivery progress. */
.tzc-op__free {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 2px 0 12px;
	padding: 10px 14px;
	border-radius: 8px;
	background: #fdf3ec;
	color: #3a3a3a;
	font-size: 15px;
	font-weight: 600;
}
.tzc-op__free > span:first-child { flex: 0 1 auto; }
.tzc-op__track { flex: 1 1 auto; min-width: 80px; max-width: 360px; height: 9px; border-radius: 5px; background: #f1dccd; overflow: hidden; }
.tzc-op__fill { display: block; height: 100%; border-radius: 5px; background: var(--tzc-qc-accent); transition: width .4s ease-out; }
.tzc-op__free.is-reached { background: #eaf7ef; }
.tzc-op__free.is-reached .tzc-op__track { background: #cdeedb; }
.tzc-op__free.is-reached { color: #2E9E5B; font-weight: 600; }
.tzc-op__free.is-reached .tzc-op__fill { background: #2E9E5B; }

.tzc-op__msg { margin: 4px 0 8px; padding: 8px 12px; border-radius: 6px; background: #fff4e5; color: #8a4b00; font-size: 14px; }
.tzc-op__msg[hidden] { display: none; }

/* Rows. */
html body ul.tzc-op__list { margin: 0; padding: 0; list-style: none; }
.tzc-op__item {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) auto 76px;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 12px 0;
	border-top: 1px solid #f0f0f0;
	transition: opacity .2s;
}
.tzc-op__item:first-child { border-top: 0; }
.tzc-op__item.is-removing { opacity: .4; }
.tzc-op__img { display: block; width: 56px; height: 56px; }
html body .tzc-op__img img { display: block; width: 56px !important; height: 56px !important; max-width: none; margin: 0; border-radius: 6px; object-fit: contain; background: #f7f7f7; }
.tzc-op__info { min-width: 0; }
.tzc-op__name { font-weight: 600; overflow-wrap: anywhere; }
html body .tzc-op__name a { color: inherit; text-decoration: none; }
html body .tzc-op__name a:hover { text-decoration: underline; }
.tzc-op__meta { color: #777; font-size: 13px; }
.tzc-op__meta dl { margin: 2px 0 0; }
.tzc-op__meta dt, .tzc-op__meta dd { display: inline; margin: 0; }
.tzc-op__meta dd p { display: inline; margin: 0; }
.tzc-op__price { margin-top: 2px; color: #666; font-size: 14px; }
.tzc-op__price span { color: #999; font-size: 13px; }
.tzc-op__sub { font-weight: 700; text-align: right; white-space: nowrap; }
.tzc-op__qty { display: flex; flex-direction: column; align-items: center; gap: 4px; }

/* − n + (44 px: the smallest comfortable finger target). */
.tzc-op__step {
	display: inline-flex;
	align-items: stretch;
	height: 44px;
	border: 1px solid #ddd;
	border-radius: 999px;
	background: #fff;
	overflow: hidden;
}
html body .tzc-op__step button.tzc-op__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	min-width: 0;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--tzc-qc-accent);
	line-height: 1;
	cursor: pointer;
	touch-action: manipulation;
}
html body .tzc-op__step button.tzc-op__btn:hover,
html body .tzc-op__step button.tzc-op__btn:focus { background: #fbf1e9; color: var(--tzc-qc-accent); }
html body .tzc-op__step button.tzc-op__btn:focus-visible { outline: 2px solid var(--tzc-qc-accent); outline-offset: -2px; }
html body .tzc-op__step button.tzc-op__btn:disabled { opacity: .35; cursor: not-allowed; background: transparent; }
.tzc-op__n { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; font-weight: 700; }
.tzc-op__fixed { color: #666; font-weight: 600; }
html body .tzc-op button.tzc-op__remove { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; color: #888; font-size: 13px; text-decoration: underline; cursor: pointer; }
/* Touch screens: "Remove" gets a full finger-sized target (it sits next to the − / + there). */
@media (max-width: 600px), (pointer: coarse) {
	html body .tzc-op button.tzc-op__remove { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
}

/* Empty checkout. */
.tzc-op--empty { padding: 40px 20px; text-align: center; }
.tzc-op__empty-title { margin: 0 0 16px; font-size: 18px; font-weight: 600; }
html body .tzc-op a.tzc-op__shop { display: inline-block; padding: 12px 26px; border-radius: 6px; background: var(--tzc-qc-accent); color: #fff; font-weight: 700; text-decoration: none; }

/* Optional: no item rows in "Your order" (the box above lists them). */
body.tzc-op-no-review-items .woocommerce-checkout-review-order-table tbody .cart_item,
body.tzc-op-no-review-items .woocommerce-checkout-review-order-table thead { display: none; }

@media (max-width: 600px) {
	.tzc-op { padding: 14px 14px 4px; }
	.tzc-op__free { flex-wrap: wrap; gap: 8px; font-size: 14px; }
	.tzc-op__track { flex-basis: 100%; max-width: none; }
	.tzc-op__item {
		grid-template-columns: 52px minmax(0, 1fr) auto;
		grid-template-areas: "img info sub" "img qty qty";
		gap: 6px 12px;
	}
	.tzc-op__img { grid-area: img; width: 52px; height: 52px; align-self: start; }
	html body .tzc-op__img img { width: 52px !important; height: 52px !important; }
	.tzc-op__info { grid-area: info; }
	.tzc-op__sub { grid-area: sub; align-self: start; }
	.tzc-op__qty { grid-area: qty; flex-direction: row; justify-content: flex-start; gap: 12px; }
	.tzc-op__head { flex-wrap: wrap; }
}

/* Packs: what's inside, folded until opened. */
html body .tzc-op button.tzc-op__pack-toggle,
html body .tzc-op button.tzc-op__all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	height: auto;
	margin: 0;
	padding: 2px 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: var(--tzc-qc-accent);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
}
html body .tzc-op button.tzc-op__pack-toggle:hover,
html body .tzc-op button.tzc-op__all:hover { background: none; color: var(--tzc-qc-accent); text-decoration: underline; }
html body .tzc-op button.tzc-op__pack-toggle:focus-visible,
html body .tzc-op button.tzc-op__all:focus-visible { outline: 2px solid var(--tzc-qc-accent); outline-offset: 2px; }
.tzc-op__chev { flex: 0 0 auto; transition: transform .2s; }
.is-open > .tzc-op__chev { transform: rotate(180deg); }
html body ul.tzc-op__parts {
	margin: 6px 0 0;
	padding: 6px 0 2px 12px;
	border-left: 2px solid #f0e2d6;
	list-style: none;
	color: #555;
	font-size: 13px;
}
ul.tzc-op__parts[hidden] { display: none; }
.tzc-op__parts li { margin: 0; padding: 2px 0; }
.tzc-op__part-q { color: #888; font-weight: 600; }
html body .tzc-op__parts a { color: inherit; text-decoration: none; }
html body .tzc-op__parts a:hover { text-decoration: underline; }
.tzc-op__item[hidden] { display: none; }

/* "See all" / "Show less" under the rows. */
html body .tzc-op button.tzc-op__all {
	display: flex;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 12px 0;
	border-top: 1px solid #f0f0f0;
	font-size: 14px;
}

/* Pack: "Show what's inside" and "Edit pack" side by side. */
.tzc-op__pack-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; margin-top: 0; }
html body .tzc-op__pack-actions button.tzc-op__pack-toggle { margin: 0; }
html body .tzc-op a.tzc-op__edit { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; color: #555; font-size: 13px; font-weight: 600; text-decoration: none; }
html body .tzc-op a.tzc-op__edit:hover { color: var(--tzc-qc-accent); text-decoration: underline; }
