/**
 * Bundle page — Shopify look. Pairs with content-single-product-bundle.php
 * and shares the .td-sp base styles from single-product-shopify.css.
 *
 * v1.2.0 (2026-08-14): "in your cart" flags on absorbed member cards and
 * the .td-bundle-of banner that member PDPs print above their related
 * grid (that page enqueues this stylesheet only when the banner shows).
 */

/* top column additions */
.td-bundle__short { font-size: 17px; line-height: 1.5; color: #222; margin: 18px 0 6px; }
.td-bundle__short p { margin: 0 0 10px; }
.td-bundle__cta {
	display: inline-block;
	background: #000;
	color: #fff !important;
	font-weight: 700;
	font-size: 19px;
	border-radius: 30px;
	padding: 16px 44px;
	margin-top: 18px;
	text-decoration: none !important;
	transition: background .12s ease, color .12s ease;
}
.td-bundle__cta:hover { background: #fee100; color: #000 !important; }

/* ==================== bundle section ==================== */
.td-bundle__section { margin: 56px 0 40px; scroll-margin-top: 90px; }
.td-bundle__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-bottom: 26px; }
@media (max-width: 900px) { .td-bundle__head { grid-template-columns: 1fr; gap: 20px; } }
.td-bundle__intro h2 { font-family: 'Anton', sans-serif; font-weight: 400; font-size: 30px; margin: 0 0 12px; color: #000; }
.td-bundle__intro p { font-size: 17px; line-height: 1.55; color: #444; margin: 0; }

.td-bundle__table-wrap { border: 1px solid #ffe102; border-radius: 10px; overflow: hidden; }
.td-bundle__table { width: 100%; border-collapse: collapse; font-size: 17px; margin: 0; }
.td-bundle__table th {
	text-align: left;
	font-weight: 700;
	font-size: 17px;
	padding: 10px 18px;
	background: rgba(255, 225, 2, .2);
	border: 0;
}
.td-bundle__table td { padding: 9px 18px; border: 0; border-top: 1px solid #f1f1f1; transition: background .15s ease; }
.td-bundle__tier.upcoming td { background: rgba(255, 225, 2, .12); }
.td-bundle__tier.active td { background: #ffe102; font-weight: 700; }
.td-bundle__note { font-size: 13px; color: #777; margin: 0; padding: 8px 18px 10px; }

/* "already in your cart" hint — revealed by bundle-shopify.js once the
 * cart-state endpoint confirms this bundle has a line in the cart */
.td-bundle__cart-note {
	background: rgba(255, 225, 2, .18);
	border: 1px solid #ffe102;
	border-radius: 10px;
	padding: 10px 16px;
	margin: 0 0 16px;
	font-size: 15px;
	line-height: 1.5;
	color: #222;
}
.td-bundle__cart-note[hidden],
.td-bundle__cart-note > span[hidden] { display: none !important; }
.td-bundle__cart-link { color: #000; text-decoration: underline; }

/* toolbar */
.td-bundle__bar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 18px 26px;
	margin: 0 0 22px;
}
.td-bundle__select-all {
	background: #ffe102;
	color: #000;
	border: 0;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	padding: 10px 26px;
	cursor: pointer;
	transition: filter .12s ease;
}
.td-bundle__select-all:hover { filter: brightness(.95); }
.td-bundle__counter { font-size: 16px; color: #333; }
.td-bundle__total { font-size: 18px; display: inline-flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.td-bundle__total-label { font-weight: 700; }
.td-bundle__total-now { text-decoration: none; font-weight: 700; font-size: 20px; }
.td-bundle__total-was { color: #999; }
.td-bundle__saving { font-style: normal; color: #1a7f37; font-weight: 600; font-size: 15px; }
.td-bundle__atc {
	margin-left: auto;
	background: #000;
	color: #fff;
	border: 0;
	border-radius: 8px;
	font-size: 17px;
	font-weight: 600;
	padding: 12px 34px;
	cursor: pointer;
	transition: background .12s ease, color .12s ease;
}
.td-bundle__atc:hover:not(:disabled) { background: #fee100; color: #000; }
.td-bundle__atc:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 700px) {
	.td-bundle__bar { gap: 12px 18px; }
	.td-bundle__atc { margin-left: 0; width: 100%; }
}

/* ==================== item grid ==================== */
/* minmax(0,1fr) + min-width:0 + absolutely positioned images: broken or
 * oversized images can never blow the grid tracks out */
.td-bundle__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1280px) { .td-bundle__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 900px)  { .td-bundle__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px)  { .td-bundle__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.td-bundle__item { cursor: pointer; border-radius: 10px; padding: 6px; transition: background .12s ease; min-width: 0; }
.td-bundle__item:hover { background: #f6f6f6; }
.td-bundle__item.selected { background: #f3f3f3; }

.td-bundle__media { position: relative; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #f1f1f1; }
.td-bundle__media img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: 100%; object-fit: cover; display: block; border-radius: 8px; }
.td-bundle__toggle {
	position: absolute;
	top: 10px; right: 10px;
	width: 32px; height: 32px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 5px rgba(0,0,0,.25);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 3;
	transition: background .12s ease;
}
.td-bundle__toggle i { font-style: normal; font-size: 19px; line-height: 1; position: absolute; transition: opacity .12s ease; }
.td-bundle__plus { opacity: 1; }
.td-bundle__check { opacity: 0; }
.td-bundle__item.selected .td-bundle__toggle { background: #ffe102; }
.td-bundle__item.selected .td-bundle__plus { opacity: 0; }
.td-bundle__item.selected .td-bundle__check { opacity: 1; }

/* member the customer already has as a loose cart line — it is preselected
 * and will be absorbed into the bundle line on submit */
.td-bundle__incart {
	position: absolute;
	left: 10px;
	bottom: 10px;
	background: #010002;
	color: #ffe102;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
	border-radius: 5px;
	padding: 3px 8px;
	z-index: 3;
}
.td-bundle__item.in-cart .td-bundle__media { box-shadow: 0 0 0 2px #ffe102; border-radius: 8px; }

.td-bundle__free {
	position: absolute;
	top: 10px; left: 10px;
	background: #fff;
	color: #010002;
	font-size: 12px;
	font-weight: 600;
	border-radius: 5px;
	padding: 3px 8px;
	z-index: 3;
}

.td-bundle__item-info { padding: 10px 4px 6px; display: flex; flex-direction: column; gap: 6px; }
.td-bundle__item-title {
	font-size: 16px;
	font-weight: 500;
	line-height: 1.35;
	color: #000 !important;
	text-decoration: none !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.7em;
}
.td-bundle__item-title:hover { text-decoration: underline !important; }
.td-bundle__item-icons { display: flex; gap: 5px; flex-wrap: wrap; }
.td-bundle__item-icons img { width: 26px !important; height: 26px !important; position: static; }
.td-bundle__item-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.td-bundle__item-price { font-size: 16px; font-weight: 600; color: #000; }
.td-bundle__pick {
	background: #ffe102;
	color: #000;
	border: 1px solid #ffe102;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	padding: 7px 16px;
	cursor: pointer;
	transition: background .12s ease, border-color .12s ease;
}
.td-bundle__pick:hover { filter: brightness(.95); }
.td-bundle__item.selected .td-bundle__pick { background: #fff; border-color: #ccc; }

/* description below the bundle section */
.td-bundle__description { max-width: 900px; margin: 30px 0 10px; }

/* ==================== "part of a bundle" banner ====================
 * Printed by td_bundle_render_member_cards() on member product pages,
 * directly above the "You may also like" grid. */
.td-bundle-of { margin: 56px 0 0; }
.td-bundle-of__head {
	font-family: 'Anton', sans-serif;
	font-weight: 400;
	font-size: 30px;
	margin: 0 0 16px;
	color: #000;
}
.td-bundle-of__list { display: grid; grid-template-columns: 1fr; gap: 14px; }
.td-bundle-of__list.is-multi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .td-bundle-of__list.is-multi { grid-template-columns: 1fr; } }

.td-bundle-of__card {
	display: flex;
	align-items: stretch;
	gap: 18px;
	min-width: 0;
	background: rgba(255, 225, 2, .18);
	border: 1px solid #ffe102;
	border-radius: 12px;
	padding: 14px;
	text-decoration: none !important;
	color: #000 !important;
	transition: background .12s ease, transform .12s ease, box-shadow .12s ease;
}
.td-bundle-of__card:hover { background: rgba(255, 225, 2, .34); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgba(0, 0, 0, .08); }

.td-bundle-of__media {
	flex: 0 0 140px;
	width: 140px;
	aspect-ratio: 4 / 3;
	border-radius: 8px;
	overflow: hidden;
	background: #f1f1f1;
	display: block;
}
.td-bundle-of__media img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; }

.td-bundle-of__body { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; }
.td-bundle-of__title { font-weight: 700; font-size: 20px; line-height: 1.25; overflow-wrap: anywhere; }
.td-bundle-of__copy { font-size: 16px; line-height: 1.5; color: #222; }
.td-bundle-of__cta { font-size: 15px; font-weight: 700; text-decoration: underline; }
.td-bundle-of__hint { font-size: 14px; color: #666; margin: 10px 0 0; }

@media (max-width: 600px) {
	.td-bundle-of { margin-top: 40px; }
	.td-bundle-of__head { font-size: 24px; }
	.td-bundle-of__card { gap: 12px; padding: 10px; }
	.td-bundle-of__media { flex-basis: 96px; width: 96px; }
	.td-bundle-of__title { font-size: 17px; }
	.td-bundle-of__copy { font-size: 14px; }
	.td-bundle-of__cta { font-size: 14px; }
}

/* ==================== phones ====================
 * Nothing in the bundle section may push the page sideways: every block is
 * width-capped and the tier table is allowed to scroll inside its own frame
 * instead of stretching the page (Claude 2026-08-12). */
.td-bundle__section,
.td-bundle__head,
.td-bundle__bar,
.td-bundle__grid,
.td-bundle__form { min-width: 0; max-width: 100%; }
.td-bundle__table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.td-bundle__item-title { overflow-wrap: anywhere; }

@media (max-width: 480px) {
	.td-bundle__intro h2 { font-size: 26px; }
	.td-bundle__intro p,
	.td-bundle__short { font-size: 16px; }
	.td-bundle__cta { font-size: 17px; padding: 14px 26px; width: 100%; text-align: center; }
	.td-bundle__table,
	.td-bundle__table th { font-size: 15px; }
	.td-bundle__table th { padding: 9px 12px; }
	.td-bundle__table td { padding: 8px 12px; }
	.td-bundle__note { padding: 8px 12px 10px; }
	.td-bundle__bar { gap: 10px 14px; }
	.td-bundle__select-all { width: 100%; }
	.td-bundle__counter,
	.td-bundle__total { font-size: 15px; }
	.td-bundle__total-now { font-size: 18px; }
	.td-bundle__grid { gap: 12px; }
	.td-bundle__item { padding: 4px; }
	.td-bundle__item-title { font-size: 14px; }
	.td-bundle__item-price { font-size: 14px; }
	.td-bundle__item-bottom { flex-wrap: wrap; gap: 6px; }
	.td-bundle__pick { font-size: 13px; padding: 6px 10px; flex: 1 1 auto; }
}
