/* ==========================================================================
   TBT Access 0.5.1 — shop screens: product, cart, checkout (+ order pay),
   order received. Loaded only there (body.tbt-shop).

   Same visual language as the 0.4.3 locked screen: the TBT header bar with
   TBT Hub's tree, 1080 px content (1280 / 1440 px on big screens), white cards with a 1 px #D8E3F0 border,
   the featured card with a 2 px blue border, Roboto Slab headings in
   sentence case, pill buttons. No orange anywhere.

   Divi fights back in three places, so those rules carry !important:
     - et-divi-customizer-global.min.css colours .woocommerce-message/-info/
       -error rgb(255,152,0) with !important (Phase 0.5);
     - Divi's global h1–h6 text-transform/letter-spacing;
     - Divi's WooCommerce button styles (arrow icon, padding on hover).
   Everything else is scoped class-on-class under body.tbt-shop.

   0.5.1: one top gap (32 px, 16 px on phones), side gutters that keep the
   content clear of the Theme Builder's left icon menu, and size tokens
   (--tbt-*) that step the width and the text up on big screens. The same
   tokens, with the same values, are in tbt-access-locked.css.

   Header bar: a copy of the 0.4.3 .tbt-locked__bar rules (same classes,
   same values), scoped to .tbt-shop-frame. tbt-access-locked.css is not
   touched, so the locked screen does not change.
   ========================================================================== */

body.tbt-shop {
	--tbt-shop-blue:       var(--tbt-blue, #0856C9);
	--tbt-shop-blue-dark:  var(--tbt-blue-dark, #063F94);
	--tbt-shop-surface:    var(--tbt-surface, #FFFFFF);
	--tbt-shop-input:      var(--tbt-input, #F0F5FE);
	--tbt-shop-border:     var(--tbt-border, #D8E3F0);
	--tbt-shop-ink:        var(--tbt-ink, #1F2937);
	--tbt-shop-muted:      var(--tbt-muted, #667085);
	--tbt-shop-error:      var(--tbt-error, #C62828);
	--tbt-shop-error-bg:   var(--tbt-error-bg, #FFF1F1);
	--tbt-shop-error-line: #F5C2C2;
	--tbt-shop-ok:         var(--tbt-success, #16803C);
	--tbt-shop-ok-bg:      var(--tbt-success-bg, #ECFDF3);
	--tbt-shop-ok-line:    #B7E4C7;
	--tbt-shop-info-bg:    var(--tbt-selected-bg, #EDF4FF);
	--tbt-shop-info-line:  #C9DBF7;
	--tbt-shop-focus:      0 0 0 3px rgba(8, 86, 201, .18);
	--tbt-shop-ui:       var(--tbt-font-ui, "Roboto", sans-serif);
	--tbt-shop-content:  var(--tbt-font-content, "Roboto Slab", Georgia, serif);
	--tbt-shop-identity: var(--tbt-font-identity, "Roboto Mono", ui-monospace, monospace);
	overflow-x: clip;
}

/* --------------------------------------------------------------------------
   0.5.1 — size tokens (same names and values as tbt-access-locked.css)

   Width: 1080 px, 1280 px from 1600 px, 1440 px from 2100 px. Text, card
   padding and gaps one step larger from 1600 px. No zoom/transform: they
   break WooCommerce's select dropdowns and checkout JS positioning.
   -------------------------------------------------------------------------- */

body.tbt-shop {
	--tbt-frame-w: 1080px;
	--tbt-fs-body: 16px;
	--tbt-fs-small: 14px;
	--tbt-fs-lead: 18px;
	--tbt-fs-h3: 24px;
	--tbt-fs-bar-max: 44px;
	--tbt-pad-card: 22px 24px;
	--tbt-pad-card-featured: 24px 26px;
	--tbt-step: 1; /* multiplier for gaps */

	/* Gap above the breadcrumbs, and side gutters (decisions 1, 2, 5). */
	--tbt-gap-top: 16px;
	--tbt-gutter-l: 16px;
	--tbt-gutter-r: 16px;

	/* Side padding of the box that holds the content, as a share of its
	   full-width parent: centred in the viewport while both gutters hold;
	   otherwise at least the left gutter (the icon menu), shifting the
	   content right before it gets narrower. */
	--tbt-pad-l: max(var(--tbt-gutter-l), calc((100% - var(--tbt-frame-w)) / 2));
	--tbt-pad-r: max(var(--tbt-gutter-r), calc(100% - var(--tbt-frame-w) - var(--tbt-pad-l)));
}

@media (min-width: 768px) {
	body.tbt-shop {
		--tbt-gap-top: 32px;
		--tbt-gutter-l: 24px;
		--tbt-gutter-r: 24px;
	}

	/* Theme Builder header: the fixed left icon column (100 px, shown from
	   768 px). Content stays 24 px clear of its right edge. */
	body.tbt-shop.et-tb-has-header {
		--tbt-gutter-l: 124px;
	}
}

@media (min-width: 1600px) {
	body.tbt-shop {
		--tbt-frame-w: 1280px;
		--tbt-fs-body: 17px;
		--tbt-fs-small: 15px;
		--tbt-fs-lead: 20px;
		--tbt-fs-h3: 26px;
		--tbt-fs-bar-max: 52px;
		--tbt-pad-card: 25px 27px;
		--tbt-pad-card-featured: 27px 29px;
		--tbt-step: 1.12;
	}
}

@media (min-width: 2100px) {
	body.tbt-shop {
		--tbt-frame-w: 1440px;
	}
}

/* Icons used by notices (data URIs, no external files). */
body.tbt-shop {
	--tbt-shop-ico-ok:    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316803C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M8 12.5l2.5 2.5L16 9.5'/%3E%3C/svg%3E");
	--tbt-shop-ico-info:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230856C9' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 11v5.5'/%3E%3Cpath d='M12 7.5h.01'/%3E%3C/svg%3E");
	--tbt-shop-ico-error: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C62828' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 7.5v5.5'/%3E%3Cpath d='M12 16.5h.01'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Theme Builder page title (cart, checkout, thank-you): hidden; our bar
   carries the title.
   -------------------------------------------------------------------------- */

body.tbt-shop--cart .et_pb_post_title,
body.tbt-shop--checkout .et_pb_post_title,
body.tbt-shop--thanks .et_pb_post_title,
body.tbt-shop--cart .entry-title,
body.tbt-shop--checkout .entry-title,
body.tbt-shop--thanks .entry-title {
	display: none !important;
}

/* --------------------------------------------------------------------------
   Theme Builder layout (cart, checkout, thank-you): the Theme Builder body
   section/row and the page's own Divi section/row stack about 230 px of
   space above the frame (margin 70 + paddings), and the rows are 80 % wide.
   Only the sections, rows, columns and modules that contain our frame go
   full width with no top or side spacing; the frame sets the one top gap
   and the gutters itself. Other pages are untouched.
   -------------------------------------------------------------------------- */

body.tbt-shop .et_pb_section:has(.tbt-shop-frame),
body.tbt-shop .et_pb_row:has(.tbt-shop-frame),
body.tbt-shop .et_pb_column:has(.tbt-shop-frame),
body.tbt-shop .et_pb_module:has(.tbt-shop-frame) {
	margin-top: 0 !important;
	padding-top: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.tbt-shop .et_pb_row:has(.tbt-shop-frame),
body.tbt-shop .et_pb_column:has(.tbt-shop-frame),
body.tbt-shop .et_pb_module:has(.tbt-shop-frame) {
	box-sizing: border-box;
	width: 100% !important;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	float: none !important;
}

/* The Theme Builder row that only holds the (hidden) page title still has
   its own top and bottom padding (about 35 px, 60 px on phones). */
body.tbt-shop--cart .et_pb_row:has(.et_pb_post_title):not(:has(.tbt-shop-frame)):not(:has(.et_pb_module:not(.et_pb_post_title))),
body.tbt-shop--checkout .et_pb_row:has(.et_pb_post_title):not(:has(.tbt-shop-frame)):not(:has(.et_pb_module:not(.et_pb_post_title))),
body.tbt-shop--thanks .et_pb_row:has(.et_pb_post_title):not(:has(.tbt-shop-frame)):not(:has(.et_pb_module:not(.et_pb_post_title))) {
	display: none !important;
}

/* --------------------------------------------------------------------------
   Frame
   -------------------------------------------------------------------------- */

body.tbt-shop .tbt-shop-frame,
body.tbt-shop.tbt-shop--product div.product {
	color: var(--tbt-shop-ink);
	font-family: var(--tbt-shop-ui);
	font-size: var(--tbt-fs-body);
	line-height: 1.55;
}

/* The frame spans its full-width parent; its side padding is the gutter,
   its content box the frame width (the container queries below see that). */
body.tbt-shop .tbt-shop-frame {
	container: tbtshop / inline-size;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: var(--tbt-gap-top) var(--tbt-pad-r) 64px var(--tbt-pad-l);
}

/* Product page: Divi's .container carries the gutters (the frame and the
   product grid both sit in it), so the frame only sets the top gap. */
body.tbt-shop .tbt-shop-frame--product {
	padding: var(--tbt-gap-top) 0 0;
}

body.tbt-shop .tbt-shop-frame *,
body.tbt-shop .tbt-shop-frame *::before,
body.tbt-shop .tbt-shop-frame *::after,
body.tbt-shop.tbt-shop--product div.product *,
body.tbt-shop.tbt-shop--product div.product *::before,
body.tbt-shop.tbt-shop--product div.product *::after {
	box-sizing: border-box;
}

body.tbt-shop .tbt-shop-frame .woocommerce {
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* Divi pads headings, paragraphs and lists; set our own rhythm. */
body.tbt-shop .tbt-shop-frame h1,
body.tbt-shop .tbt-shop-frame h2,
body.tbt-shop .tbt-shop-frame h3,
body.tbt-shop .tbt-shop-frame h4,
body.tbt-shop .tbt-shop-frame p,
body.tbt-shop .tbt-shop-frame ul,
body.tbt-shop .tbt-shop-frame ol,
body.tbt-shop .tbt-shop-frame dl,
body.tbt-shop .tbt-shop-frame dd,
body.tbt-shop.tbt-shop--product div.product .tbt-shop-buy p,
body.tbt-shop.tbt-shop--product div.product .tbt-shop-buy h2,
body.tbt-shop.tbt-shop--product div.product .tbt-shop-buy ul {
	margin: 0;
	padding: 0;
}

/* Divi's global heading style (uppercase, spaced) must not reach these
   screens: every heading is sentence case. */
body.tbt-shop .tbt-shop-frame h1,
body.tbt-shop .tbt-shop-frame h2,
body.tbt-shop .tbt-shop-frame h3,
body.tbt-shop .tbt-shop-frame h4,
body.tbt-shop.tbt-shop--product div.product h1,
body.tbt-shop.tbt-shop--product div.product h2,
body.tbt-shop.tbt-shop--product div.product h3,
body.tbt-shop.tbt-shop--product div.product h4 {
	text-transform: none !important;
	letter-spacing: normal !important;
}

/* Divi's customizer colours h1–h4 (purple, green, dark red); every heading
   here is ink, the bar title white (rule further down, more specific). */
body.tbt-shop .tbt-shop-frame h1,
body.tbt-shop .tbt-shop-frame h2,
body.tbt-shop .tbt-shop-frame h3,
body.tbt-shop .tbt-shop-frame h4,
body.tbt-shop.tbt-shop--product div.product h1,
body.tbt-shop.tbt-shop--product div.product h2,
body.tbt-shop.tbt-shop--product div.product h3,
body.tbt-shop.tbt-shop--product div.product h4 {
	color: var(--tbt-shop-ink) !important;
}

body.tbt-shop .tbt-shop-frame a,
body.tbt-shop.tbt-shop--product div.product .tbt-shop-buy a,
body.tbt-shop.tbt-shop--product div.product .tbt-shop-try a {
	color: var(--tbt-shop-blue);
}

body.tbt-shop .tbt-shop-frame a:focus-visible,
body.tbt-shop .tbt-shop-frame button:focus-visible,
body.tbt-shop .tbt-shop-frame summary:focus-visible,
body.tbt-shop.tbt-shop--product div.product a:focus-visible,
body.tbt-shop.tbt-shop--product div.product button:focus-visible {
	outline: 3px solid rgba(8, 86, 201, .35);
	outline-offset: 2px;
}

body.tbt-shop .tbt-shop-sr {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Breadcrumbs ------------------------------------------------------------- */

body.tbt-shop .tbt-shop-crumbs {
	padding: 0 0 10px;
	font-size: var(--tbt-fs-small);
	line-height: 1.4;
	color: var(--tbt-shop-muted);
}

body.tbt-shop .tbt-shop-crumbs a {
	text-decoration: none;
}

body.tbt-shop .tbt-shop-crumbs a:hover {
	text-decoration: underline;
}

body.tbt-shop .tbt-shop-crumbs__sep {
	margin: 0 4px;
}

/* Header bar (copy of the 0.4.3 locked-screen bar) ------------------------ */

body.tbt-shop .tbt-shop-frame .tbt-locked__bar {
	display: flex;
	align-items: stretch;
	overflow: hidden;
	min-height: 200px;
	margin: 0 0 32px;
	padding: 30px 42px;
	border-radius: 20px;
	background: linear-gradient(90deg, #0856C9 0%, #0856C9 40%, #6F9EE2 72%, #DCE8F8 88%, #FFFFFF 100%);
}

body.tbt-shop .tbt-shop-frame .tbt-locked__bar-text {
	display: flex;
	flex: 3 1 0;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}

body.tbt-shop .tbt-shop-frame .tbt-locked__eyebrow {
	margin-bottom: 14px;
	font-family: var(--tbt-shop-ui);
	font-size: var(--tbt-fs-small);
	font-weight: 300;
	line-height: 1.2;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: #CECECE;
}

body.tbt-shop .tbt-shop-frame h1.tbt-locked__bar-title {
	margin-bottom: 10px;
	padding: 0;
	font-family: var(--tbt-shop-identity);
	font-size: clamp(30px, 3.6vw, var(--tbt-fs-bar-max));
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .035em !important;
	color: #FFFFFF !important;
	overflow-wrap: anywhere;
}

body.tbt-shop .tbt-shop-frame .tbt-locked__bar-line {
	max-width: 46ch;
	font-family: var(--tbt-shop-content);
	font-size: var(--tbt-fs-lead);
	font-weight: 400;
	line-height: 1.5;
	color: #CECECE;
}

body.tbt-shop .tbt-shop-frame .tbt-locked__bar-tree {
	display: flex;
	flex: 2 1 0;
	flex-direction: column;
	justify-content: flex-end;
	margin: -14px 0 -32px;
}

body.tbt-shop .tbt-shop-frame .tbt-locked__bar-tree .tbt-tree-host {
	display: block;
	max-width: calc(100% - 24px);
	margin-left: auto;
	margin-right: 16px;
}

/* --------------------------------------------------------------------------
   Shared pieces: grid, cards, type, buttons
   -------------------------------------------------------------------------- */

body.tbt-shop .tbt-shop-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: calc(28px * var(--tbt-step)) calc(40px * var(--tbt-step));
	align-items: start;
}

body.tbt-shop .tbt-shop-card {
	padding: var(--tbt-pad-card);
	border: 1px solid var(--tbt-shop-border);
	border-radius: 14px;
	background: var(--tbt-shop-surface);
}

body.tbt-shop .tbt-shop-card--featured {
	padding: var(--tbt-pad-card-featured);
	border: 2px solid var(--tbt-shop-blue);
	box-shadow: 0 6px 20px rgba(24, 56, 96, .07);
}

body.tbt-shop .tbt-shop-kicker {
	font-size: var(--tbt-fs-small);
	color: var(--tbt-shop-muted);
}

body.tbt-shop .tbt-shop-h2,
body.tbt-shop.tbt-shop--product div.product h2.tbt-shop-h2,
body.tbt-shop.tbt-shop--product div.product h1.tbt-shop-h2 {
	margin: 4px 0 10px;
	padding: 0;
	font-family: var(--tbt-shop-content);
	font-size: var(--tbt-fs-h3);
	font-weight: 700;
	line-height: 1.3;
	color: var(--tbt-shop-ink);
}

body.tbt-shop .tbt-shop-h3 {
	padding: 0;
	font-family: var(--tbt-shop-content);
	font-size: var(--tbt-fs-lead);
	font-weight: 700;
	line-height: 1.3;
	color: var(--tbt-shop-ink);
}

body.tbt-shop .tbt-shop-lead {
	margin-top: 8px;
}

body.tbt-shop .tbt-shop-price {
	font-family: var(--tbt-shop-ui);
	font-size: var(--tbt-fs-h3);
	font-weight: 700;
	color: var(--tbt-shop-ink);
	white-space: nowrap;
}

body.tbt-shop .tbt-shop-price del {
	margin-right: 6px;
	font-size: var(--tbt-fs-body);
	font-weight: 400;
	color: var(--tbt-shop-muted);
}

body.tbt-shop .tbt-shop-price ins {
	text-decoration: none;
}

/* Pill buttons: ours, and WooCommerce's buttons inside our areas. */
body.tbt-shop .tbt-shop-frame .tbt-shop-btn,
body.tbt-shop .tbt-shop-frame .button,
body.tbt-shop .tbt-shop-frame button.button,
body.tbt-shop .tbt-shop-frame #place_order,
body.tbt-shop.tbt-shop--product div.product .tbt-shop-btn,
body.tbt-shop.tbt-shop--product div.product .single_add_to_cart_button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	margin: 0;
	padding: 0 26px !important;
	border: 2px solid var(--tbt-shop-blue) !important;
	border-radius: 999px !important;
	background: var(--tbt-shop-blue) !important;
	color: #FFFFFF !important;
	font-family: var(--tbt-shop-ui) !important;
	font-size: calc(var(--tbt-fs-body) - 1px) !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	letter-spacing: .04em !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
	text-align: center;
	cursor: pointer;
	box-shadow: none !important;
	transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}

body.tbt-shop .tbt-shop-frame .tbt-shop-btn:hover,
body.tbt-shop .tbt-shop-frame .button:hover,
body.tbt-shop .tbt-shop-frame #place_order:hover,
body.tbt-shop.tbt-shop--product div.product .tbt-shop-btn:hover,
body.tbt-shop.tbt-shop--product div.product .single_add_to_cart_button:hover {
	background: var(--tbt-shop-blue-dark) !important;
	border-color: var(--tbt-shop-blue-dark) !important;
	color: #FFFFFF !important;
	transform: translateY(-1px);
}

/* Divi's arrow icon on WooCommerce buttons. */
body.tbt-shop .tbt-shop-frame .button::after,
body.tbt-shop .tbt-shop-frame .button::before,
body.tbt-shop .tbt-shop-frame #place_order::after,
body.tbt-shop.tbt-shop--product div.product .single_add_to_cart_button::after,
body.tbt-shop.tbt-shop--product div.product .tbt-shop-btn::after {
	display: none !important;
	content: none !important;
}

body.tbt-shop .tbt-shop-frame .tbt-shop-btn--ghost,
body.tbt-shop .tbt-shop-frame .button.tbt-shop-btn--ghost {
	background: #FFFFFF !important;
	color: var(--tbt-shop-blue) !important;
	border-color: var(--tbt-shop-border) !important;
}

body.tbt-shop .tbt-shop-frame .tbt-shop-btn--ghost:hover,
body.tbt-shop .tbt-shop-frame .button.tbt-shop-btn--ghost:hover {
	background: #FFFFFF !important;
	color: var(--tbt-shop-blue) !important;
	border-color: var(--tbt-shop-blue) !important;
}

body.tbt-shop .tbt-shop-frame .tbt-shop-btn--block,
body.tbt-shop .tbt-shop-frame #place_order {
	display: flex !important;
	width: 100%;
}

body.tbt-shop .tbt-shop-frame .tbt-shop-btn--small {
	min-height: 38px;
	padding: 0 16px !important;
	font-size: calc(var(--tbt-fs-small) - 1px) !important;
}

body.tbt-shop .tbt-shop-frame .button:disabled,
body.tbt-shop .tbt-shop-frame .button.disabled {
	opacity: .55;
	cursor: not-allowed;
	transform: none;
}

body.tbt-shop .tbt-shop-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

@media (prefers-reduced-motion: reduce) {
	body.tbt-shop .tbt-shop-frame .tbt-shop-btn:hover,
	body.tbt-shop .tbt-shop-frame .button:hover,
	body.tbt-shop .tbt-shop-frame #place_order:hover,
	body.tbt-shop.tbt-shop--product div.product .tbt-shop-btn:hover,
	body.tbt-shop.tbt-shop--product div.product .single_add_to_cart_button:hover {
		transform: none;
	}
}

/* --------------------------------------------------------------------------
   Notices (decision 4): success green, info blue, error red, with icons.
   Overrides Divi's !important orange.
   -------------------------------------------------------------------------- */

body.tbt-shop .woocommerce-message,
body.tbt-shop .woocommerce-info,
body.tbt-shop .woocommerce-error,
body.tbt-shop .tbt-shop-notice {
	position: relative;
	display: block;
	margin: 0 0 22px !important;
	padding: 14px 18px 14px 48px !important;
	border: 1px solid var(--tbt-shop-info-line) !important;
	border-radius: 12px !important;
	background: var(--tbt-shop-info-bg) !important;
	background-image: none !important;
	color: var(--tbt-shop-ink) !important;
	font-family: var(--tbt-shop-ui);
	font-size: calc(var(--tbt-fs-body) - 1px) !important;
	font-weight: 400;
	line-height: 1.5;
	list-style: none !important;
	text-align: left;
	box-shadow: none !important;
}

body.tbt-shop .woocommerce-message,
body.tbt-shop .tbt-shop-notice--success {
	border-color: var(--tbt-shop-ok-line) !important;
	background-color: var(--tbt-shop-ok-bg) !important;
}

body.tbt-shop .woocommerce-error,
body.tbt-shop .tbt-shop-notice--error {
	border-color: var(--tbt-shop-error-line) !important;
	background-color: var(--tbt-shop-error-bg) !important;
}

body.tbt-shop .woocommerce-message::before,
body.tbt-shop .woocommerce-info::before,
body.tbt-shop .woocommerce-error::before {
	content: "" !important;
	position: absolute;
	top: 15px !important;
	left: 16px !important;
	width: 20px;
	height: 20px;
	margin: 0 !important;
	background: var(--tbt-shop-ico-info) center / 20px 20px no-repeat;
	font-family: inherit !important;
	color: transparent !important;
}

body.tbt-shop .woocommerce-message::before {
	background-image: var(--tbt-shop-ico-ok);
}

body.tbt-shop .woocommerce-error::before {
	background-image: var(--tbt-shop-ico-error);
}

body.tbt-shop .tbt-shop-notice {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding-left: 18px !important;
}

body.tbt-shop .tbt-shop-notice .tbt-shop-icon {
	flex: none;
	margin-top: 1px;
	color: var(--tbt-shop-blue);
}

body.tbt-shop .tbt-shop-notice--success .tbt-shop-icon {
	color: var(--tbt-shop-ok);
}

body.tbt-shop .tbt-shop-notice--error .tbt-shop-icon {
	color: var(--tbt-shop-error);
}

body.tbt-shop .woocommerce-error li {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.tbt-shop .woocommerce-error li + li {
	margin-top: 4px;
}

body.tbt-shop .woocommerce-error li a {
	color: inherit !important;
	font-weight: 400;
	text-decoration: none;
}

body.tbt-shop .woocommerce-message a,
body.tbt-shop .woocommerce-info a,
body.tbt-shop .woocommerce-error a,
body.tbt-shop .tbt-shop-notice a {
	color: var(--tbt-shop-blue) !important;
	font-weight: 500;
	text-decoration: underline;
}

/* Buttons inside notices ("Zobacz koszyk"): small white pill, inline. */
body.tbt-shop .woocommerce-message .button,
body.tbt-shop .woocommerce-info .button,
body.tbt-shop .woocommerce-error .button {
	float: none !important;
	display: inline-flex !important;
	min-height: 32px !important;
	margin: 0 0 0 10px !important;
	padding: 0 14px !important;
	border: 2px solid var(--tbt-shop-border) !important;
	border-radius: 999px !important;
	background: #FFFFFF !important;
	color: var(--tbt-shop-blue) !important;
	font-size: calc(var(--tbt-fs-small) - 2px) !important;
	font-weight: 700 !important;
	letter-spacing: .04em !important;
	text-transform: uppercase !important;
	text-decoration: none !important;
}

body.tbt-shop .woocommerce-message .button::after,
body.tbt-shop .woocommerce-info .button::after {
	display: none !important;
}

body.tbt-shop .woocommerce-NoticeGroup {
	margin: 0;
}

body.tbt-shop .woocommerce-notices-wrapper:empty {
	display: none;
}

/* --------------------------------------------------------------------------
   T2 — Product page
   -------------------------------------------------------------------------- */

/* No sidebar: Divi's right sidebar and its divider line. */
body.tbt-shop--product #sidebar {
	display: none !important;
}

body.tbt-shop--product #main-content .container::before {
	display: none !important;
}

body.tbt-shop--product #left-area {
	float: none !important;
	width: 100% !important;
	max-width: none;
	margin: 0;
	padding: 0 0 64px !important;
}

/* Divi's container (80 %, max 1080 px) goes full width and takes our
   gutters; its top padding goes, so the gap under the header is ours. */
body.tbt-shop--product #main-content .container {
	box-sizing: border-box;
	width: 100% !important;
	max-width: none !important;
	padding-top: 0 !important;
	padding-left: var(--tbt-pad-l) !important;
	padding-right: var(--tbt-pad-r) !important;
}

body.tbt-shop.tbt-shop--product div.product {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 0 calc(40px * var(--tbt-step));
	align-items: start;
	max-width: none;
	margin: 0;
}

body.tbt-shop.tbt-shop--product div.product > *,
body.tbt-shop.tbt-shop--product div.product > .clearfix > * {
	grid-column: 1;
	min-width: 0;
}

/* Divi wraps gallery + summary in div.product > div.clearfix; take the
   wrapper out of the box tree so both become grid items, and drop its
   clearing pseudo-elements, which would otherwise take grid cells. */
body.tbt-shop.tbt-shop--product div.product > .clearfix {
	display: contents;
}

body.tbt-shop.tbt-shop--product div.product > .clearfix::before,
body.tbt-shop.tbt-shop--product div.product > .clearfix::after,
body.tbt-shop.tbt-shop--product div.product::before,
body.tbt-shop.tbt-shop--product div.product::after {
	display: none !important;
}

body.tbt-shop.tbt-shop--product div.product > .woocommerce-product-gallery,
body.tbt-shop.tbt-shop--product div.product > div.images,
body.tbt-shop.tbt-shop--product div.product > .clearfix > .woocommerce-product-gallery,
body.tbt-shop.tbt-shop--product div.product > .clearfix > div.images {
	grid-row: 1;
	float: none !important;
	width: auto !important;
	margin: 0 !important;
}

body.tbt-shop.tbt-shop--product div.product > .summary,
body.tbt-shop.tbt-shop--product div.product > .clearfix > .summary {
	grid-column: 2;
	grid-row: 1 / span 2;
	display: flex;
	flex-direction: column;
	gap: 18px;
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.tbt-shop.tbt-shop--product div.product > .tbt-shop-desc {
	grid-row: 2;
}

body.tbt-shop.tbt-shop--product div.product .onsale {
	display: none !important;
}

body.tbt-shop.tbt-shop--product .woocommerce-product-gallery__wrapper {
	margin: 0;
}

body.tbt-shop.tbt-shop--product .woocommerce-product-gallery .flex-viewport,
body.tbt-shop.tbt-shop--product .woocommerce-product-gallery__image:only-child {
	overflow: hidden;
	border: 1px solid var(--tbt-shop-border);
	border-radius: 14px;
	background: var(--tbt-shop-input);
}

body.tbt-shop.tbt-shop--product .woocommerce-product-gallery .flex-control-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 10px 0 0 !important;
	padding: 0 !important;
}

body.tbt-shop.tbt-shop--product .woocommerce-product-gallery .flex-control-thumbs li {
	width: 64px !important;
	margin: 0 !important;
	float: none !important;
	list-style: none;
}

body.tbt-shop.tbt-shop--product .woocommerce-product-gallery .flex-control-thumbs img {
	border: 1px solid var(--tbt-shop-border);
	border-radius: 8px;
	opacity: .7;
}

body.tbt-shop.tbt-shop--product .woocommerce-product-gallery .flex-control-thumbs img.flex-active {
	border: 2px solid var(--tbt-shop-blue);
	opacity: 1;
}

body.tbt-shop.tbt-shop--product .tbt-shop-desc {
	margin-top: 22px;
	font-family: var(--tbt-shop-content);
	font-size: calc(var(--tbt-fs-body) + 1px);
	line-height: 1.65;
	color: var(--tbt-shop-ink);
}

body.tbt-shop.tbt-shop--product .tbt-shop-desc p {
	margin: 0;
	padding: 0;
}

body.tbt-shop.tbt-shop--product .tbt-shop-desc p + p {
	margin-top: 12px;
}

body.tbt-shop.tbt-shop--product .tbt-shop-buy__short {
	font-size: var(--tbt-fs-body);
}

body.tbt-shop.tbt-shop--product .tbt-shop-buy__short p + p {
	margin-top: 8px;
}

body.tbt-shop .tbt-shop-facts {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 14px 0 !important;
	list-style: none !important;
}

body.tbt-shop .tbt-shop-facts li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.tbt-shop .tbt-shop-facts .tbt-shop-icon {
	flex: none;
	margin-top: 3px;
	color: var(--tbt-shop-ok);
}

body.tbt-shop.tbt-shop--product .tbt-shop-buy__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 18px;
	margin-top: 6px;
}

body.tbt-shop.tbt-shop--product .tbt-shop-buy form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 !important;
	padding: 0;
	border: 0;
}

body.tbt-shop.tbt-shop--product .tbt-shop-buy form.cart::before,
body.tbt-shop.tbt-shop--product .tbt-shop-buy form.cart::after {
	display: none;
}

/* No quantity box (courses and passes are bought once). */
body.tbt-shop.tbt-shop--product .tbt-shop-buy .quantity {
	display: none !important;
}

body.tbt-shop.tbt-shop--product .tbt-shop-buy .stock {
	width: 100%;
	margin: 0;
	font-size: var(--tbt-fs-small);
	color: var(--tbt-shop-muted);
}

body.tbt-shop.tbt-shop--product .tbt-shop-owned {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	margin-top: 6px;
}

body.tbt-shop.tbt-shop--product .tbt-shop-owned .tbt-shop-notice {
	margin: 0 !important;
	width: 100%;
}

body.tbt-shop.tbt-shop--product .tbt-shop-try {
	margin: 0;
	padding: 0;
	font-size: var(--tbt-fs-small);
	color: var(--tbt-shop-muted);
}

/* --------------------------------------------------------------------------
   T3 — Cart
   -------------------------------------------------------------------------- */

body.tbt-shop .tbt-shop-cart {
	margin: 0;
}

body.tbt-shop .tbt-shop-lines {
	padding-top: 6px;
	padding-bottom: 6px;
}

body.tbt-shop .tbt-shop-line {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr) auto auto;
	gap: 16px;
	align-items: center;
	padding: 16px 0;
	border-bottom: 1px solid var(--tbt-shop-border);
	text-align: left;
}

body.tbt-shop .tbt-shop-line:last-of-type {
	border-bottom: 0;
}

body.tbt-shop .tbt-shop-line__thumb a,
body.tbt-shop .tbt-shop-line__thumb {
	display: block;
	line-height: 0;
}

body.tbt-shop .tbt-shop-line__thumb img {
	display: block;
	width: 72px !important;
	height: 54px !important;
	max-width: none;
	margin: 0 !important;
	border-radius: 8px;
	object-fit: cover;
	background: var(--tbt-shop-input);
}

body.tbt-shop .tbt-shop-line__name {
	font-family: var(--tbt-shop-content);
	font-size: calc(var(--tbt-fs-body) + 1px);
	font-weight: 700;
	line-height: 1.3;
}

body.tbt-shop .tbt-shop-line__name a {
	color: var(--tbt-shop-ink) !important;
	text-decoration: none;
}

body.tbt-shop .tbt-shop-line__name a:hover {
	color: var(--tbt-shop-blue) !important;
}

body.tbt-shop .tbt-shop-line__meta,
body.tbt-shop .tbt-shop-line dl.variation {
	margin-top: 2px;
	font-size: var(--tbt-fs-small);
	color: var(--tbt-shop-muted);
}

body.tbt-shop .tbt-shop-line__price {
	font-size: var(--tbt-fs-lead);
	font-weight: 700;
	white-space: nowrap;
}

body.tbt-shop .tbt-shop-frame a.tbt-shop-remove,
body.tbt-shop .tbt-shop-frame .tbt-shop-line .product-remove a.remove {
	display: inline !important;
	width: auto !important;
	height: auto !important;
	padding: 6px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	color: var(--tbt-shop-muted) !important;
	font-family: var(--tbt-shop-ui);
	font-size: var(--tbt-fs-small) !important;
	font-weight: 500 !important;
	line-height: 1.4 !important;
	text-align: left;
	text-decoration: underline !important;
}

body.tbt-shop .tbt-shop-frame a.tbt-shop-remove:hover {
	color: var(--tbt-shop-error) !important;
}

body.tbt-shop .tbt-shop-cart__actions {
	margin: 0;
	padding: 0;
}

body.tbt-shop .tbt-shop-cart__side .cart-collaterals {
	width: auto;
	float: none;
}

body.tbt-shop .tbt-shop-frame .cart_totals.tbt-shop-totals {
	float: none !important;
	width: auto !important;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

body.tbt-shop .tbt-shop-trow {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
}

body.tbt-shop .tbt-shop-trow > span:last-child {
	text-align: right;
}

body.tbt-shop .tbt-shop-trow--total {
	padding-top: 12px;
	border-top: 1px solid var(--tbt-shop-border);
	font-size: calc(var(--tbt-fs-lead) + 2px);
	font-weight: 700;
}

body.tbt-shop .tbt-shop-trow--total small {
	display: block;
	font-size: calc(var(--tbt-fs-small) - 1px);
	font-weight: 400;
	color: var(--tbt-shop-muted);
}

body.tbt-shop .tbt-shop-frame a.woocommerce-remove-coupon {
	font-size: calc(var(--tbt-fs-small) - 1px);
	color: var(--tbt-shop-muted) !important;
}

body.tbt-shop .tbt-shop-coupon summary {
	display: inline-block;
	color: var(--tbt-shop-blue);
	font-size: calc(var(--tbt-fs-body) - 1px);
	font-weight: 500;
	cursor: pointer;
	list-style: none;
}

body.tbt-shop .tbt-shop-coupon summary::-webkit-details-marker {
	display: none;
}

body.tbt-shop .tbt-shop-coupon summary::marker {
	content: "";
}

body.tbt-shop .tbt-shop-coupon__row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

body.tbt-shop .tbt-shop-coupon__row #coupon_code,
body.tbt-shop .tbt-shop-coupon__row #tbt-checkout-coupon {
	flex: 1 1 160px;
	width: auto !important;
}

body.tbt-shop .tbt-shop-coupon__row .button {
	min-height: 46px;
	padding: 0 18px !important;
}

body.tbt-shop .tbt-shop-coupon .coupon-error-notice {
	flex-basis: 100%;
	margin: 2px 0 0;
	font-size: var(--tbt-fs-small);
	color: var(--tbt-shop-error);
}

body.tbt-shop .tbt-shop-frame .wc-proceed-to-checkout {
	margin: 4px 0 0;
	padding: 0;
}

body.tbt-shop .tbt-shop-frame .wc-proceed-to-checkout .checkout-button {
	display: flex !important;
	width: 100%;
	margin: 0 0 8px !important;
	font-size: calc(var(--tbt-fs-body) - 1px) !important;
}

body.tbt-shop .tbt-shop-back {
	font-size: var(--tbt-fs-small);
	text-align: center;
	text-decoration: none;
}

body.tbt-shop .tbt-shop-back:hover {
	text-decoration: underline;
}

body.tbt-shop .tbt-shop-empty {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	max-width: 560px;
}

/* --------------------------------------------------------------------------
   Inputs (cart coupon, checkout fields, verify-email form)
   -------------------------------------------------------------------------- */

body.tbt-shop .tbt-shop-frame input.input-text,
body.tbt-shop .tbt-shop-frame input[type="text"],
body.tbt-shop .tbt-shop-frame input[type="email"],
body.tbt-shop .tbt-shop-frame input[type="tel"],
body.tbt-shop .tbt-shop-frame input[type="password"],
body.tbt-shop .tbt-shop-frame select,
body.tbt-shop .tbt-shop-frame textarea,
body.tbt-shop .tbt-shop-frame .select2-container .select2-selection--single {
	width: 100%;
	min-height: 46px;
	margin: 0;
	padding: 12px 14px !important;
	border: 1px solid var(--tbt-shop-border) !important;
	border-radius: 12px !important;
	background: var(--tbt-shop-input) !important;
	color: var(--tbt-shop-ink) !important;
	font-family: var(--tbt-shop-ui) !important;
	font-size: var(--tbt-fs-body) !important;
	line-height: 1.3 !important;
	box-shadow: none !important;
}

body.tbt-shop .tbt-shop-frame .select2-container .select2-selection--single .select2-selection__rendered {
	padding: 0;
	line-height: 20px;
	color: var(--tbt-shop-ink);
}

body.tbt-shop .tbt-shop-frame .select2-container .select2-selection--single .select2-selection__arrow {
	top: 10px;
	right: 8px;
}

body.tbt-shop .tbt-shop-frame input.input-text:focus,
body.tbt-shop .tbt-shop-frame input[type="text"]:focus,
body.tbt-shop .tbt-shop-frame input[type="email"]:focus,
body.tbt-shop .tbt-shop-frame input[type="password"]:focus,
body.tbt-shop .tbt-shop-frame select:focus,
body.tbt-shop .tbt-shop-frame textarea:focus,
body.tbt-shop .tbt-shop-frame .select2-container--focus .select2-selection--single {
	outline: none;
	border-color: var(--tbt-shop-blue) !important;
	box-shadow: var(--tbt-shop-focus) !important;
}

body.tbt-shop .tbt-shop-frame input.has-error {
	border-color: var(--tbt-shop-error) !important;
}

/* --------------------------------------------------------------------------
   T4 — Checkout
   -------------------------------------------------------------------------- */

body.tbt-shop .tbt-shop-steps {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 22px !important;
	padding: 0 !important;
	font-size: var(--tbt-fs-small);
	list-style: none !important;
}

body.tbt-shop .tbt-shop-steps li {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.tbt-shop .tbt-shop-steps__step {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--tbt-shop-muted);
}

body.tbt-shop .tbt-shop-steps__step b {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border: 2px solid var(--tbt-shop-border);
	border-radius: 50%;
	font-size: calc(var(--tbt-fs-small) - 2px);
	line-height: 1;
}

body.tbt-shop .tbt-shop-steps__step.is-current {
	color: var(--tbt-shop-ink);
	font-weight: 500;
}

body.tbt-shop .tbt-shop-steps__step.is-current b {
	border-color: var(--tbt-shop-blue);
	background: var(--tbt-shop-blue);
	color: #FFFFFF;
}

body.tbt-shop .tbt-shop-steps__step.is-done b {
	border-color: var(--tbt-shop-ok);
	background: var(--tbt-shop-ok);
	color: #FFFFFF;
}

body.tbt-shop .tbt-shop-steps__sep {
	width: 24px;
	height: 2px;
	background: var(--tbt-shop-border);
}

body.tbt-shop .tbt-shop-frame form.checkout {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: 0 calc(40px * var(--tbt-step));
	align-items: start;
}

body.tbt-shop .tbt-shop-frame form.checkout > * {
	grid-column: 1 / -1;
	min-width: 0;
}

body.tbt-shop .tbt-shop-frame form.checkout > #customer_details {
	grid-column: 1;
	display: flex;
	flex-direction: column;
	gap: calc(18px * var(--tbt-step));
	width: auto;
	margin: 0;
}

body.tbt-shop .tbt-shop-frame form.checkout > #order_review_heading,
body.tbt-shop h3#order_review_heading,
body.tbt-shop #order_review_heading {
	display: none !important;
}

body.tbt-shop .tbt-shop-frame form.checkout > #order_review {
	grid-column: 2;
	display: flex;
	flex-direction: column;
	gap: 14px;
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: var(--tbt-pad-card-featured);
	border: 2px solid var(--tbt-shop-blue);
	border-radius: 14px;
	background: var(--tbt-shop-surface);
	box-shadow: 0 6px 20px rgba(24, 56, 96, .07);
}

body.tbt-shop .tbt-shop-frame form.checkout > .woocommerce-NoticeGroup {
	margin-bottom: 4px;
}

body.tbt-shop .tbt-shop-frame #customer_details .col-1,
body.tbt-shop .tbt-shop-frame #customer_details .col-2 {
	float: none !important;
	width: 100% !important;
	max-width: none;
	margin: 0;
	padding: 0;
}

body.tbt-shop .tbt-shop-frame #customer_details .col-2:empty,
body.tbt-shop .tbt-shop-frame .woocommerce-shipping-fields:empty,
body.tbt-shop .tbt-shop-frame .woocommerce-additional-fields:empty {
	display: none;
}

body.tbt-shop .tbt-shop-frame #customer_details::before,
body.tbt-shop .tbt-shop-frame #customer_details::after {
	display: none;
}

body.tbt-shop .tbt-shop-billing__cards {
	display: flex;
	flex-direction: column;
	gap: calc(18px * var(--tbt-step));
}

body.tbt-shop .tbt-shop-frame .woocommerce-account-fields {
	margin-top: 18px;
}

body.tbt-shop .tbt-shop-fields {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 14px 16px;
	margin-top: 14px;
}

body.tbt-shop .tbt-shop-fields::before,
body.tbt-shop .tbt-shop-fields::after,
body.tbt-shop .tbt-shop-fields .clear {
	display: none !important;
}

body.tbt-shop .tbt-shop-frame .tbt-shop-fields .form-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	grid-column: 1 / -1;
}

body.tbt-shop .tbt-shop-frame .tbt-shop-fields .form-row-first {
	grid-column: 1;
}

body.tbt-shop .tbt-shop-frame .tbt-shop-fields .form-row-last {
	grid-column: 2;
}

body.tbt-shop .tbt-shop-frame .tbt-shop-fields .form-row label {
	display: block;
	margin: 0;
	padding: 0;
	font-size: var(--tbt-fs-small);
	font-weight: 500;
	line-height: 1.4;
	color: var(--tbt-shop-ink);
}

body.tbt-shop .tbt-shop-frame .form-row label .optional {
	font-weight: 400;
	color: var(--tbt-shop-muted);
}

body.tbt-shop .tbt-shop-frame .form-row label .required {
	color: var(--tbt-shop-muted);
	text-decoration: none;
	border: 0;
}

body.tbt-shop .tbt-shop-frame .form-row .woocommerce-input-wrapper {
	display: block;
	width: 100%;
}

/* WooCommerce shows the description only on focus; ours is a hint. */
body.tbt-shop .tbt-shop-frame .form-row .description {
	position: static !important;
	display: block !important;
	margin: 6px 0 0;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	color: var(--tbt-shop-muted) !important;
	font-size: var(--tbt-fs-small);
	line-height: 1.45;
}

body.tbt-shop .tbt-shop-frame .form-row .description::before {
	display: none !important;
}

body.tbt-shop .tbt-shop-frame .form-row.woocommerce-validated input.input-text,
body.tbt-shop .tbt-shop-frame .form-row.woocommerce-validated select {
	border-color: var(--tbt-shop-border) !important;
}

body.tbt-shop .tbt-shop-frame .form-row.woocommerce-invalid input.input-text,
body.tbt-shop .tbt-shop-frame .form-row.woocommerce-invalid select,
body.tbt-shop .tbt-shop-frame .form-row.woocommerce-invalid .select2-selection {
	border-color: var(--tbt-shop-error) !important;
	background: var(--tbt-shop-error-bg) !important;
}

body.tbt-shop .tbt-shop-frame .form-row.woocommerce-invalid label {
	color: var(--tbt-shop-error);
}

body.tbt-shop .tbt-shop-frame .checkout-inline-error-message {
	margin: 4px 0 0;
	padding: 0;
	font-size: var(--tbt-fs-small);
	color: var(--tbt-shop-error);
}

body.tbt-shop .tbt-shop-country {
	margin: 10px 0 0 !important;
	padding: 0 !important;
	font-size: calc(var(--tbt-fs-small) - 1px);
	color: var(--tbt-shop-muted);
}

/* Checkboxes: "Założyć konto?" and the snippet's consents. */
body.tbt-shop .tbt-shop-frame label.checkbox,
body.tbt-shop .tbt-shop-frame .woocommerce-form__label-for-checkbox {
	display: flex !important;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	font-size: var(--tbt-fs-small) !important;
	font-weight: 400 !important;
	line-height: 1.5 !important;
	color: var(--tbt-shop-ink);
	cursor: pointer;
}

body.tbt-shop .tbt-shop-frame input[type="checkbox"],
body.tbt-shop .tbt-shop-frame input[type="radio"] {
	flex: none;
	width: 20px !important;
	height: 20px !important;
	min-height: 0;
	margin: 1px 0 0 !important;
	accent-color: var(--tbt-shop-blue);
}

/* Order card: lines and total ------------------------------------------------ */

body.tbt-shop .tbt-shop-order-heading {
	margin: 0;
}

body.tbt-shop .tbt-shop-frame table.tbt-shop-review {
	width: 100%;
	margin: 0 !important;
	border: 0 !important;
	border-collapse: collapse;
	border-radius: 0 !important;
	background: none;
	font-size: var(--tbt-fs-body);
}

body.tbt-shop .tbt-shop-frame table.tbt-shop-review tr,
body.tbt-shop .tbt-shop-frame table.tbt-shop-review thead,
body.tbt-shop .tbt-shop-frame table.tbt-shop-review tbody,
body.tbt-shop .tbt-shop-frame table.tbt-shop-review tfoot {
	border: 0 !important;
	background: none !important;
}

body.tbt-shop .tbt-shop-frame table.tbt-shop-review th,
body.tbt-shop .tbt-shop-frame table.tbt-shop-review td {
	padding: 6px 0 !important;
	border: 0 !important;
	background: none !important;
	font-weight: 400;
	line-height: 1.45;
	vertical-align: baseline;
	text-align: left;
}

body.tbt-shop .tbt-shop-frame table.tbt-shop-review td.product-total,
body.tbt-shop .tbt-shop-frame table.tbt-shop-review tfoot td {
	padding-left: 12px !important;
	text-align: right;
	white-space: nowrap;
}

body.tbt-shop .tbt-shop-frame table.tbt-shop-review tr.order-total th,
body.tbt-shop .tbt-shop-frame table.tbt-shop-review tr.order-total td {
	padding-top: 12px !important;
	border-top: 1px solid var(--tbt-shop-border) !important;
	font-size: calc(var(--tbt-fs-lead) + 2px);
	font-weight: 700;
}

body.tbt-shop .tbt-shop-frame table.tbt-shop-review tr.order-total td strong {
	font-weight: 700;
}

body.tbt-shop .tbt-shop-frame table.tbt-shop-review tr.order-total small {
	display: block;
	font-size: calc(var(--tbt-fs-small) - 1px);
	font-weight: 400;
	color: var(--tbt-shop-muted);
}

body.tbt-shop .tbt-shop-frame table.tbt-shop-review .product-quantity {
	color: var(--tbt-shop-muted);
}

body.tbt-shop .tbt-shop-payment-heading {
	margin: 6px 0 0;
	font-size: var(--tbt-fs-body);
}

/* Shown only when there is something to pay (shop.php); Divi can override
   the hidden attribute. */
body.tbt-shop .tbt-shop-payment-heading[hidden] {
	display: none !important;
}

/* Payment (WooCommerce's payment.php, restyled only) ----------------------- */

body.tbt-shop .tbt-shop-frame #payment {
	margin: 0;
	padding: 0;
	border-radius: 0;
	background: none !important;
}

body.tbt-shop .tbt-shop-frame #payment ul.payment_methods {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0 0 16px !important;
	padding: 0 !important;
	border: 0 !important;
	list-style: none !important;
}

body.tbt-shop .tbt-shop-frame #payment ul.payment_methods::before,
body.tbt-shop .tbt-shop-frame #payment ul.payment_methods::after {
	display: none;
}

body.tbt-shop .tbt-shop-frame #payment ul.payment_methods > li {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
	line-height: 1.5;
}

body.tbt-shop .tbt-shop-frame #payment ul.payment_methods > li.wc_payment_method {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding: 14px 16px !important;
	border: 1px solid var(--tbt-shop-border);
	border-radius: 12px;
	background: var(--tbt-shop-input);
}

body.tbt-shop .tbt-shop-frame #payment ul.payment_methods > li.wc_payment_method:has(input:checked) {
	border-color: var(--tbt-shop-blue);
	box-shadow: var(--tbt-shop-focus);
}

body.tbt-shop .tbt-shop-frame #payment ul.payment_methods > li.wc_payment_method > label {
	display: flex !important;
	flex: 1 1 0;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	margin: 0;
	font-size: calc(var(--tbt-fs-body) - 1px);
	font-weight: 500;
	cursor: pointer;
}

body.tbt-shop .tbt-shop-frame #payment ul.payment_methods > li.wc_payment_method > label img {
	margin-left: auto !important;
	max-height: 26px;
	width: auto;
	float: none !important;
}

body.tbt-shop .tbt-shop-frame #payment ul.payment_methods > li .woocommerce-info,
body.tbt-shop .tbt-shop-frame #payment ul.payment_methods > li .woocommerce-notice {
	margin: 0 !important;
}

body.tbt-shop .tbt-shop-frame #payment div.payment_box {
	flex-basis: 100%;
	margin: 0 !important;
	padding: 12px 14px !important;
	border-radius: 10px;
	background: #FFFFFF !important;
	color: var(--tbt-shop-ink) !important;
	font-size: var(--tbt-fs-small);
}

body.tbt-shop .tbt-shop-frame #payment div.payment_box::before {
	display: none !important;
}

body.tbt-shop .tbt-shop-frame #payment div.payment_box p:last-child {
	margin-bottom: 0;
}

body.tbt-shop .tbt-shop-frame #payment div.form-row.place-order {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0 !important;
	padding: 0 !important;
}

body.tbt-shop .tbt-shop-frame #payment .woocommerce-terms-and-conditions-wrapper {
	margin: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

body.tbt-shop .tbt-shop-frame #payment .woocommerce-privacy-policy-text,
body.tbt-shop .tbt-shop-frame #payment .woocommerce-privacy-policy-text p {
	margin: 0;
	font-size: calc(var(--tbt-fs-small) - 1px);
	line-height: 1.5;
	color: var(--tbt-shop-muted);
}

body.tbt-shop .tbt-shop-frame #payment .woocommerce-terms-and-conditions {
	padding: 12px 14px !important;
	border: 1px solid var(--tbt-shop-border) !important;
	border-radius: 12px;
	background: #FFFFFF !important;
	font-size: calc(var(--tbt-fs-small) - 1px);
	line-height: 1.5;
}

body.tbt-shop .tbt-shop-frame #payment .form-row {
	margin: 0;
	padding: 0;
}

body.tbt-shop .tbt-shop-frame #payment .form-row.validate-required,
body.tbt-shop .tbt-shop-frame #payment p.form-row {
	margin: 0 !important;
	padding: 0 !important;
}

body.tbt-shop .tbt-shop-frame #payment .woocommerce-invalid label {
	color: var(--tbt-shop-error);
}

body.tbt-shop .tbt-shop-frame #payment #place_order {
	float: none !important;
	margin: 4px 0 0 !important;
	min-height: 52px;
}

/* Order pay page and order-received login / verify forms -------------------- */

body.tbt-shop .tbt-shop-frame #order_review table.shop_table,
body.tbt-shop .tbt-shop-frame .woocommerce-verify-email,
body.tbt-shop .tbt-shop-frame form.woocommerce-form-login {
	padding: var(--tbt-pad-card);
	border: 1px solid var(--tbt-shop-border) !important;
	border-radius: 14px !important;
	background: var(--tbt-shop-surface);
}

body.tbt-shop .tbt-shop-frame .woocommerce-verify-email .form-row,
body.tbt-shop .tbt-shop-frame form.woocommerce-form-login .form-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
	float: none;
	width: auto;
	margin: 0 0 14px;
	padding: 0;
}

body.tbt-shop .tbt-shop-frame .woocommerce-thankyou-order-received {
	margin: 0 0 18px;
}

/* --------------------------------------------------------------------------
   T5 — Thank-you
   -------------------------------------------------------------------------- */

body.tbt-shop .tbt-shop-overview {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
	margin: 18px 0 !important;
}

body.tbt-shop .tbt-shop-overview > div {
	padding: 12px 14px;
	border: 1px solid var(--tbt-shop-border);
	border-radius: 12px;
}

body.tbt-shop .tbt-shop-overview dt {
	font-size: calc(var(--tbt-fs-small) - 1px);
	font-weight: 400;
	color: var(--tbt-shop-muted);
}

body.tbt-shop .tbt-shop-overview dd {
	margin: 0;
	font-size: var(--tbt-fs-body);
	font-weight: 700;
	overflow-wrap: anywhere;
}

body.tbt-shop .tbt-shop-downloads {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--tbt-shop-border);
}

body.tbt-shop .tbt-shop-downloads ul {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 10px !important;
	list-style: none !important;
}

body.tbt-shop .tbt-shop-downloads li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.tbt-shop .tbt-shop-thanks > .tbt-shop-actions {
	margin-bottom: 22px;
}

/* --------------------------------------------------------------------------
   Narrower screens

   Cart, checkout and thank-you sit inside the Theme Builder row, whose width
   is not the viewport's, so their grids follow the frame's own width
   (container queries). The product page and the bar follow the viewport.
   -------------------------------------------------------------------------- */

@container tbtshop (max-width: 700px) {
	.tbt-shop-grid,
	form.checkout {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	form.checkout > #customer_details,
	form.checkout > #order_review {
		grid-column: 1 !important;
	}

	form.checkout > #order_review {
		margin-top: 18px !important;
	}
}

@container tbtshop (max-width: 560px) {
	.tbt-shop-line {
		grid-template-columns: 56px minmax(0, 1fr) auto !important;
		gap: 4px 12px !important;
	}

	.tbt-shop-line__thumb {
		grid-row: 1 / span 2;
	}

	.tbt-shop-line__thumb img {
		width: 56px !important;
		height: 42px !important;
	}

	.tbt-shop-line__remove {
		grid-column: 2;
	}

	.tbt-shop-fields {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.tbt-shop-fields .form-row-first,
	.tbt-shop-fields .form-row-last {
		grid-column: 1 !important;
	}
}

@media (max-width: 860px) {
	body.tbt-shop .tbt-shop-grid,
	body.tbt-shop .tbt-shop-frame form.checkout,
	body.tbt-shop.tbt-shop--product div.product {
		grid-template-columns: minmax(0, 1fr);
	}

	body.tbt-shop .tbt-shop-frame form.checkout > #customer_details,
	body.tbt-shop .tbt-shop-frame form.checkout > #order_review {
		grid-column: 1;
	}

	body.tbt-shop .tbt-shop-frame form.checkout > #order_review {
		margin-top: 18px !important;
	}

	body.tbt-shop.tbt-shop--product div.product > .summary,
	body.tbt-shop.tbt-shop--product div.product > .clearfix > .summary {
		grid-column: 1;
		grid-row: 2;
		margin-top: 24px !important;
	}

	body.tbt-shop.tbt-shop--product div.product > .tbt-shop-desc {
		grid-row: 3;
	}
}

@media (max-width: 700px) {
	body.tbt-shop .tbt-shop-frame .tbt-locked__bar {
		flex-direction: column;
		min-height: 0;
		padding: 24px 22px 0;
		background: linear-gradient(180deg, #0856C9 0%, #0856C9 55%, #6F9EE2 80%, #DCE8F8 100%);
	}

	/* Hub inactive: no tree under the text, so the bar needs its own bottom
	   padding, and stays blue to the bottom so the last line stays readable. */
	body.tbt-shop .tbt-shop-frame .tbt-locked__bar-text:last-child {
		padding-bottom: 24px;
	}

	body.tbt-shop .tbt-shop-frame .tbt-locked__bar:not(:has(.tbt-locked__bar-tree)) {
		background: linear-gradient(180deg, #0856C9 0%, #0856C9 70%, #3D7BD6 100%);
	}

	body.tbt-shop .tbt-shop-frame .tbt-locked__bar-line {
		font-size: 16px;
	}

	body.tbt-shop .tbt-shop-frame .tbt-locked__bar-tree {
		margin: 0 0 -14px;
	}

	body.tbt-shop .tbt-shop-frame .tbt-locked__bar-tree .tbt-tree-host {
		width: 130px !important; /* overrides the shortcode's inline width */
		margin: 4px 0 0 auto;
	}
}

@media (max-width: 600px) {
	body.tbt-shop .tbt-shop-card,
	body.tbt-shop .tbt-shop-card--featured,
	body.tbt-shop .tbt-shop-frame form.checkout > #order_review {
		padding: 18px;
	}
}

@media (max-width: 560px) {
	body.tbt-shop .tbt-shop-line {
		grid-template-columns: 56px minmax(0, 1fr) auto;
		gap: 4px 12px;
	}

	body.tbt-shop .tbt-shop-line__thumb img {
		width: 56px !important;
		height: 42px !important;
	}

	body.tbt-shop .tbt-shop-line__remove {
		grid-column: 2;
	}

	body.tbt-shop .tbt-shop-line__thumb {
		grid-row: 1 / span 2;
	}

	body.tbt-shop .tbt-shop-fields {
		grid-template-columns: minmax(0, 1fr);
	}

	body.tbt-shop .tbt-shop-frame .tbt-shop-fields .form-row-first,
	body.tbt-shop .tbt-shop-frame .tbt-shop-fields .form-row-last {
		grid-column: 1;
	}
}

/* --------------------------------------------------------------------------
   0.6.0 — Collection courses: "Program kursu", owner card, buy-card links
   (prototype specs/TBT-Access-0.6.0-PROTOTYPE.html)
   -------------------------------------------------------------------------- */

/* The section is printed after the description on
   woocommerce_after_single_product_summary, as a direct grid item of
   div.product: it spans both columns under gallery, description and card. */
body.tbt-shop.tbt-shop--product div.product > .tbt-prog {
	grid-column: 1 / -1;
	grid-row: 3;
	margin-top: calc(40px * var(--tbt-step));
}

body.tbt-shop.tbt-shop--product .tbt-prog__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 8px 20px;
	margin-bottom: 16px;
}

body.tbt-shop.tbt-shop--product div.product .tbt-prog h2.tbt-prog__title {
	margin: 0;
}

body.tbt-shop.tbt-shop--product .tbt-prog p {
	margin: 0;
	padding: 0;
}

body.tbt-shop.tbt-shop--product .tbt-prog__meta {
	font-size: calc(var(--tbt-fs-small) + 1px);
	color: var(--tbt-shop-muted);
}

body.tbt-shop.tbt-shop--product .tbt-prog__meta b {
	font-weight: 500;
	color: var(--tbt-shop-ink);
}

body.tbt-shop.tbt-shop--product div.product .tbt-prog__list {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	overflow: hidden;
	border: 1px solid var(--tbt-shop-border);
	border-radius: 14px;
	background: var(--tbt-shop-surface);
}

body.tbt-shop.tbt-shop--product .tbt-prog__row {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) auto auto;
	gap: 14px;
	align-items: center;
	min-height: 44px;
	margin: 0;
	padding: 13px 20px;
	border-top: 1px solid var(--tbt-shop-border);
	list-style: none;
}

body.tbt-shop.tbt-shop--product .tbt-prog__row[hidden] {
	display: none;
}

body.tbt-shop.tbt-shop--product .tbt-prog__row:first-child {
	border-top: 0;
}

body.tbt-shop.tbt-shop--product .tbt-prog__row:hover {
	background: #F8FAFE;
}

body.tbt-shop.tbt-shop--product .tbt-prog__num {
	font-family: var(--tbt-shop-identity);
	font-size: calc(var(--tbt-fs-small) + 1px);
	font-weight: 500;
	color: var(--tbt-shop-muted);
}

body.tbt-shop.tbt-shop--product div.product .tbt-prog__title {
	font-family: var(--tbt-shop-content);
	font-size: calc(var(--tbt-fs-body) + 1px);
	font-weight: 400;
	line-height: 1.35;
	color: var(--tbt-shop-ink);
	text-decoration: none;
	overflow-wrap: anywhere;
}

body.tbt-shop.tbt-shop--product div.product a.tbt-prog__title:hover {
	color: var(--tbt-shop-blue);
	text-decoration: underline;
}

body.tbt-shop.tbt-shop--product .tbt-prog__lvl {
	padding: 2px 9px;
	border: 1px solid var(--tbt-shop-border);
	border-radius: 999px;
	font-family: var(--tbt-shop-ui);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .04em;
	color: var(--tbt-shop-muted);
	white-space: nowrap;
}

body.tbt-shop.tbt-shop--product .tbt-prog__lvl--none {
	padding: 0;
	border: 0;
}

body.tbt-shop.tbt-shop--product .tbt-prog__state {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	min-width: 118px;
	font-size: var(--tbt-fs-small);
	white-space: nowrap;
}

body.tbt-shop.tbt-shop--product .tbt-prog__state--lock {
	color: #98A2B3;
}

body.tbt-shop.tbt-shop--product .tbt-prog__state--lock .tbt-shop-icon {
	flex: none;
}

body.tbt-shop.tbt-shop--product div.product .tbt-prog__state a {
	font-weight: 500;
	color: var(--tbt-shop-blue);
	text-decoration: none;
}

body.tbt-shop.tbt-shop--product div.product .tbt-prog__state--free a {
	color: var(--tbt-shop-ok);
}

body.tbt-shop.tbt-shop--product div.product .tbt-prog__state a:hover {
	text-decoration: underline;
}

body.tbt-shop.tbt-shop--product .tbt-prog__pill {
	padding: 2px 9px;
	border: 1px solid var(--tbt-shop-ok-line);
	border-radius: 999px;
	background: var(--tbt-shop-ok-bg);
	font-family: var(--tbt-shop-ui);
	font-size: 12px;
	font-weight: 500;
	color: var(--tbt-shop-ok);
}

body.tbt-shop.tbt-shop--product .tbt-prog__more {
	display: flex;
	justify-content: center;
	margin-top: 16px;
}

body.tbt-shop.tbt-shop--product .tbt-prog__closing {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 24px;
	margin-top: 28px;
}

body.tbt-shop.tbt-shop--product .tbt-prog__closing-line {
	font-size: calc(var(--tbt-fs-small) + 1px);
	color: var(--tbt-shop-muted);
}

body.tbt-shop.tbt-shop--product .tbt-prog__closing-buy {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 18px;
}

/* Ghost and green pill buttons inside div.product (the shared rules above
   only cover .tbt-shop-frame). */
body.tbt-shop.tbt-shop--product div.product .tbt-shop-btn--ghost {
	background: #FFFFFF !important;
	color: var(--tbt-shop-blue) !important;
	border-color: var(--tbt-shop-border) !important;
}

body.tbt-shop.tbt-shop--product div.product .tbt-shop-btn--ghost:hover {
	background: #FFFFFF !important;
	color: var(--tbt-shop-blue) !important;
	border-color: var(--tbt-shop-blue) !important;
}

body.tbt-shop.tbt-shop--product div.product .tbt-shop-btn--ok {
	background: var(--tbt-shop-ok) !important;
	border-color: var(--tbt-shop-ok) !important;
}

body.tbt-shop.tbt-shop--product div.product .tbt-shop-btn--ok:hover {
	background: #11652F !important;
	border-color: #11652F !important;
}

/* Owner card ("Masz ten kurs"). */
body.tbt-shop .tbt-shop-card--own {
	padding: var(--tbt-pad-card-featured);
	border: 2px solid var(--tbt-shop-ok);
	box-shadow: 0 6px 20px rgba(22, 128, 60, .08);
}

body.tbt-shop.tbt-shop--product div.product .tbt-shop-card--own p {
	margin: 0;
	padding: 0;
}

body.tbt-shop.tbt-shop--product div.product .tbt-shop-card--own h2.tbt-shop-h2 {
	margin: 8px 0 10px;
}

body.tbt-shop .tbt-shop-own-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: calc(var(--tbt-fs-small) + 1px);
	font-weight: 700;
	color: var(--tbt-shop-ok);
}

body.tbt-shop .tbt-shop-own-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 16px;
}

@media (max-width: 860px) {
	body.tbt-shop.tbt-shop--product div.product > .tbt-prog {
		grid-row: 4;
	}
}

@media (max-width: 600px) {
	body.tbt-shop.tbt-shop--product .tbt-prog__row {
		grid-template-columns: 32px minmax(0, 1fr) auto;
		gap: 4px 10px;
		padding: 12px 14px;
	}

	body.tbt-shop.tbt-shop--product .tbt-prog__lvl {
		grid-column: 2;
		grid-row: 2;
		justify-self: start;
	}

	body.tbt-shop.tbt-shop--product .tbt-prog__lvl--none {
		display: none;
	}

	body.tbt-shop.tbt-shop--product .tbt-prog__state {
		grid-column: 3;
		grid-row: 1 / span 2;
		min-width: 0;
	}

	body.tbt-shop.tbt-shop--product .tbt-prog__txt {
		display: none !important;
	}

	body.tbt-shop.tbt-shop--product .tbt-prog__state--open a {
		font-size: 0;
	}

	body.tbt-shop.tbt-shop--product .tbt-prog__state--open a::after {
		content: "→";
		font-size: var(--tbt-fs-body);
	}
}

/* ==========================================================================
   0.7.7 — Course descriptions in the Course Card style
   (reference: /better-conversations-at-work/)

   Plain HTML from the product editor is styled automatically, so every
   course product gets the same look without classes:
     h2      blue capitals + a blue → accent underline that draws itself
     h3      blue capitals + a blue → accent side bar that grows
     ul      numbered cards (01, 02 …) with a blue → accent top bar;
             a <strong> at the start of an item becomes the card title
     strong  TBT blue;  em  accent
   Optional blocks:
     figure.tbt-course-hero      a wide illustration (rounded, shadow)
     dl.tbt-course-facts         label/value strip (<div><dt>…</dt><dd>…</dd></div>)
     p.tbt-course-note           small muted line
   Accent: terracotta #C8553D by default. Another course can set its own
   by wrapping the description in
     <div class="tbt-course" style="--tbt-course-accent:#…">
   The accent is used only inside course descriptions; the rest of the
   shop keeps its no-orange rule.

   Lines and bars grow while scrolling where the browser supports
   scroll-driven animations; elsewhere (and with reduced motion) they are
   simply drawn in full.
   ========================================================================== */

body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc,
body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc .tbt-course {
	--tbt-course-accent: #C8553D;
	--tbt-course-accent-text: color-mix(in srgb, var(--tbt-course-accent) 88%, #000);
	--tbt-course-grad-x: linear-gradient(90deg, var(--tbt-shop-blue) 0%, var(--tbt-shop-blue) 20%, var(--tbt-course-accent) 100%);
	--tbt-course-grad-y: linear-gradient(180deg, var(--tbt-shop-blue), var(--tbt-course-accent));
}

/* Layout: a course description runs full width under the picture and the
   buy card (the Course Card reads as a page, not a side column). Only when
   the description uses the .tbt-course wrapper; other products keep the
   two-column layout. */

@media (min-width: 861px) {
	body.tbt-shop.tbt-shop--product div.product:has(> .tbt-shop-desc .tbt-course) > .summary,
	body.tbt-shop.tbt-shop--product div.product:has(> .tbt-shop-desc .tbt-course) > .clearfix > .summary {
		grid-row: 1;
	}

	body.tbt-shop.tbt-shop--product div.product > .tbt-shop-desc:has(.tbt-course) {
		grid-column: 1 / -1;
		grid-row: 2;
		margin-top: 44px;
	}
}

/* Headings ---------------------------------------------------------------- */

body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc h2 {
	position: relative;
	margin: 0 0 20px !important;
	padding: 0 0 16px !important;
	font-family: var(--tbt-shop-ui) !important;
	font-size: clamp(24px, 2.4vw, 30px) !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	letter-spacing: .04em !important;
	text-transform: uppercase !important;
	color: var(--tbt-shop-blue) !important;
	view-timeline-name: --tbtc-h2;
}

body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc h2::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 5px;
	border-radius: 3px;
	background: var(--tbt-course-grad-x);
}

body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc h3 {
	position: relative;
	margin: 36px 0 16px !important;
	padding: 2px 0 2px 19px !important;
	font-family: var(--tbt-shop-ui) !important;
	font-size: 20px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	letter-spacing: .04em !important;
	text-transform: uppercase !important;
	color: var(--tbt-shop-blue) !important;
	view-timeline-name: --tbtc-h3;
}

body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc h3::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 5px;
	border-radius: 3px;
	background: var(--tbt-course-grad-y);
	transform-origin: top;
}

/* Text -------------------------------------------------------------------- */

/* Roboto Slab Light (300) for running text, as on the Course Card page. */
body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc,
body.tbt-shop.tbt-shop--product div.product .tbt-shop-buy__short,
body.tbt-shop.tbt-shop--product div.product .tbt-shop-buy__short p {
	font-family: var(--tbt-shop-content);
	font-weight: 300;
	line-height: 1.6;
}

body.tbt-shop.tbt-shop--product div.product .tbt-shop-buy__short strong {
	font-weight: 700;
	color: var(--tbt-shop-blue);
}

body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc strong,
body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc b {
	font-weight: 700;
	color: var(--tbt-shop-blue);
}

body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc em {
	color: var(--tbt-course-accent-text);
}

body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc h2 + p,
body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc .tbt-course-hero + p {
	font-size: calc(var(--tbt-fs-body) + 2px);
}

body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc p.tbt-course-note {
	margin-top: 14px;
	font-size: var(--tbt-fs-small);
	line-height: 1.55;
	color: var(--tbt-shop-muted);
}

/* Illustration ------------------------------------------------------------ */

body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc .tbt-course-hero {
	margin: 0 0 20px !important;
	padding: 0 !important;
	overflow: hidden;
	border-radius: 14px;
	box-shadow: 0 14px 32px -20px rgba(8, 86, 201, .55);
	line-height: 0;
	view-timeline-name: --tbtc-hero;
}

body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc .tbt-course-hero img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 !important;
}

/* Lists → numbered cards ----------------------------------------------------- */

body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc ul {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 0 0 8px !important;
	padding: 0 !important;
	list-style: none !important;
	counter-reset: tbtc-card;
}

body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc ul > li {
	position: relative;
	margin: 0 !important;
	padding: 24px 22px 20px !important;
	overflow: hidden;
	list-style: none !important;
	background: var(--tbt-shop-surface);
	border: 1px solid var(--tbt-shop-border);
	border-radius: 14px;
	font-size: var(--tbt-fs-small);
	line-height: 1.6;
	counter-increment: tbtc-card;
	view-timeline-name: --tbtc-card;
}

body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc ul > li::before {
	content: counter(tbtc-card, decimal-leading-zero);
	display: block;
	margin-bottom: 6px;
	font-family: var(--tbt-shop-identity);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .15em;
	color: var(--tbt-course-accent-text);
}

body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc ul > li::after {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 5px;
	background: var(--tbt-course-grad-x);
	transform-origin: left;
}

body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc ul > li > strong:first-child {
	display: block;
	margin-bottom: 4px;
	font-family: var(--tbt-shop-ui);
	font-size: 17px;
	line-height: 1.35;
}

/* Facts strip --------------------------------------------------------------- */

body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc .tbt-course-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
	gap: 18px 24px;
	margin: 0 !important;
	padding: 0 !important;
}

body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc .tbt-course-facts > div {
	position: relative;
	padding: 2px 0 2px 19px;
	view-timeline-name: --tbtc-fact;
}

body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc .tbt-course-facts > div::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 5px;
	border-radius: 3px;
	background: var(--tbt-course-grad-y);
	transform-origin: top;
}

body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc .tbt-course-facts dt {
	margin: 0;
	font-family: var(--tbt-shop-ui);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--tbt-course-accent-text);
}

body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc .tbt-course-facts dd {
	margin: 4px 0 0;
	font-family: var(--tbt-shop-content);
	font-size: calc(var(--tbt-fs-body) + 1px);
	line-height: 1.3;
	color: var(--tbt-shop-ink);
}

/* Scroll-driven growth (Chrome, Edge, Safari 26+) ---------------------------- */

@keyframes tbtCourseDraw {
	from { clip-path: inset(0 100% 0 0 round 3px); }
	to   { clip-path: inset(0 0 0 0 round 3px); }
}

@keyframes tbtCourseGrowX {
	from { transform: scaleX(0); }
	to   { transform: scaleX(1); }
}

@keyframes tbtCourseGrowY {
	from { transform: scaleY(0); }
	to   { transform: scaleY(1); }
}

@keyframes tbtCourseZoom {
	from { transform: scale(1.06); }
	to   { transform: scale(1); }
}

@supports (animation-timeline: view()) {
	body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc h2::after {
		animation: tbtCourseDraw linear both;
		animation-timeline: --tbtc-h2;
		animation-range: entry 100% cover 45%;
	}

	body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc h3::before {
		animation: tbtCourseGrowY linear both;
		animation-timeline: --tbtc-h3;
		animation-range: entry 100% cover 45%;
	}

	body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc ul > li::after {
		animation: tbtCourseGrowX linear both;
		animation-timeline: --tbtc-card;
		animation-range: entry 30% cover 45%;
	}

	body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc .tbt-course-hero img {
		animation: tbtCourseZoom linear both;
		animation-timeline: --tbtc-hero;
		animation-range: entry 0% cover 50%;
	}

	body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc .tbt-course-facts > div::before {
		animation: tbtCourseGrowY linear both;
		animation-timeline: --tbtc-fact;
		animation-range: entry 100% cover 38%;
	}

	body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc .tbt-course-facts > div:nth-child(2)::before { animation-range: entry 100% cover 42%; }
	body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc .tbt-course-facts > div:nth-child(3)::before { animation-range: entry 100% cover 46%; }
	body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc .tbt-course-facts > div:nth-child(4)::before { animation-range: entry 100% cover 50%; }
	body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc .tbt-course-facts > div:nth-child(5)::before { animation-range: entry 100% cover 54%; }
}

@media (max-width: 700px) {
	body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc ul {
		grid-template-columns: 1fr;
	}

	body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc .tbt-course-facts {
		grid-template-columns: 1fr 1fr;
	}

	/* 0.7.8: bigger text on phones (Light 300 reads small); line spacing kept. */
	body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc {
		font-size: 17px;
		line-height: 1.55;
	}

	body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc h2 + p,
	body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc .tbt-course-hero + p,
	body.tbt-shop.tbt-shop--product div.product .tbt-shop-buy__short,
	body.tbt-shop.tbt-shop--product div.product .tbt-shop-buy__short p {
		font-size: 18px;
	}

	body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc ul > li {
		padding: 20px 18px 18px !important;
		font-size: 16px;
		line-height: 1.55;
	}

	body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc ul > li > strong:first-child {
		font-size: 18px;
	}

	body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc .tbt-course-facts dd {
		font-size: 17px;
	}

	body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc h3 {
		font-size: 19px !important;
	}

	/* Titles break into even lines ("Better Conversations / at Work"),
	   never leaving one short word on the last line. */
	body.tbt-shop.tbt-shop--product div.product h1.tbt-shop-h2,
	body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc h2,
	body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc h3 {
		text-wrap: balance;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc h2::after,
	body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc h3::before,
	body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc ul > li::after,
	body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc .tbt-course-hero img,
	body.tbt-shop.tbt-shop--product div.product .tbt-shop-desc .tbt-course-facts > div::before {
		animation: none !important;
		transform: none;
		clip-path: none;
	}
}

/* --------------------------------------------------------------------------
   0.7.9 — Thank-you screen: picture on the right, course rows under the
   cards, new-account line. ("Co dalej?" is gone.)
   -------------------------------------------------------------------------- */

body.tbt-shop .tbt-shop-frame .tbt-shop-grid--single {
	grid-template-columns: minmax(0, 1fr);
}

body.tbt-shop .tbt-shop-frame .tbt-shop-thanks-pic {
	align-self: start;
	width: 100%;
	max-width: 480px;
	margin: 0;
	padding: 0;
}

body.tbt-shop .tbt-shop-frame .tbt-shop-thanks-pic img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 14px;
}

body.tbt-shop .tbt-shop-frame .tbt-shop-thanks-newacct {
	margin: 18px 0 0;
	padding: 12px 14px;
	border-radius: 10px;
	background: var(--tbt-shop-info-bg);
	color: var(--tbt-shop-ink);
	font-size: 15px;
	line-height: 1.5;
}

body.tbt-shop .tbt-shop-frame .tbt-shop-thanks-newacct strong {
	font-weight: 500;
	overflow-wrap: anywhere;
}

body.tbt-shop .tbt-shop-frame .tbt-shop-thanks-courses {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: calc(28px * var(--tbt-step));
}

body.tbt-shop .tbt-shop-frame .tbt-shop-thanks-courses > .tbt-shop-h3 {
	margin: 0;
}

body.tbt-shop .tbt-shop-frame .tbt-shop-thanks-course {
	display: grid;
	grid-template-columns: 180px minmax(0, 1fr);
	gap: 24px;
	align-items: center;
	padding: 16px;
}

body.tbt-shop .tbt-shop-frame .tbt-shop-thanks-course__media {
	display: block;
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 12px;
	background: var(--tbt-shop-input);
	text-decoration: none;
}

body.tbt-shop .tbt-shop-frame .tbt-shop-thanks-course__media img.tbt-shop-thanks-course__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

body.tbt-shop .tbt-shop-frame .tbt-shop-thanks-course__media--tree {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #0856C9 0%, #6F9EE2 100%);
}

body.tbt-shop .tbt-shop-frame .tbt-shop-thanks-course__media img.tbt-shop-thanks-course__tree {
	width: 48%;
	height: auto;
	opacity: .95;
}

body.tbt-shop .tbt-shop-frame .tbt-shop-thanks-course__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

body.tbt-shop .tbt-shop-frame .tbt-shop-thanks-course__title {
	margin: 0;
	padding: 0;
	font-family: var(--tbt-shop-content);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--tbt-shop-ink);
}

body.tbt-shop .tbt-shop-frame .tbt-shop-thanks-course__title a {
	color: inherit;
	text-decoration: none;
}

body.tbt-shop .tbt-shop-frame .tbt-shop-thanks-course__title a:hover,
body.tbt-shop .tbt-shop-frame .tbt-shop-thanks-course__title a:focus-visible {
	text-decoration: underline;
}

@container tbtshop (max-width: 700px) {
	body.tbt-shop .tbt-shop-frame .tbt-shop-thanks-pic {
		max-width: 360px;
		margin: 0 auto;
	}

	body.tbt-shop .tbt-shop-frame .tbt-shop-thanks-course {
		grid-template-columns: 120px minmax(0, 1fr);
		gap: 16px;
	}

	body.tbt-shop .tbt-shop-frame .tbt-shop-thanks-course__title {
		font-size: 18px;
	}
}

@media (max-width: 860px) {
	body.tbt-shop .tbt-shop-frame .tbt-shop-thanks-pic {
		margin: 0 auto;
	}
}

/* 0.8.0: "Masz kod rabatowy?" in the checkout order card (includes/shop.php,
   tbt_shop_checkout_coupon()). Reuses the cart's .tbt-shop-coupon rules. */

body.tbt-shop .tbt-shop-coupon--checkout {
	margin: 2px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--tbt-shop-border);
}

body.tbt-shop .tbt-shop-coupon--checkout .tbt-shop-coupon__row {
	min-width: 0;
}

body.tbt-shop .tbt-shop-coupon--checkout .tbt-shop-coupon__row .button[disabled] {
	opacity: .6;
	cursor: wait;
}

body.tbt-shop .tbt-shop-coupon__msg:empty {
	display: none;
}

body.tbt-shop .tbt-shop-coupon__msg {
	margin: 6px 0 0;
	font-size: var(--tbt-fs-small);
	line-height: 1.45;
}

body.tbt-shop .tbt-shop-coupon__note.is-err {
	color: var(--tbt-shop-error);
}

body.tbt-shop .tbt-shop-coupon__note.is-ok {
	color: var(--tbt-shop-ok);
}
