/* -------------------------------------------------------------------------
 * Shared GotPrint-style product page — T&T Graphics brand.
 * Scoped to body.ttg-gp-product / .ttg-gp so nothing leaks to other pages.
 * Brand: blue #0370af / dark #024f7c / orange #e26835 / navy #3b4684.
 * ---------------------------------------------------------------------- */

.ttg-gp {
	--gp-blue: #0370af;
	--gp-blue-dark: #024f7c;
	--gp-orange: #e26835;
	--gp-orange-dark: #c9522a;
	--gp-navy: #3b4684;
	--gp-ink: #1a2733;
	--gp-muted: #5b6b7a;
	--gp-line: #c9d4de;
	--gp-soft: #eef3f7;
	--gp-green: #16a34a;
	--gp-radius: 6px;
}

/* ---------- options list → boxed fields with floating labels ---------- */

.ttg-gp ul.product-attributes-list {
	list-style: none;
	margin: 0; /* uniform gaps come from li margin-bottom only */
	padding: 0;
}

.ttg-gp ul.product-attributes-list li {
	position: relative;
	margin: 0 0 16px;
	padding: 0;
}

.ttg-gp ul.product-attributes-list li > label {
	position: absolute;
	top: -9px;
	left: 12px;
	z-index: 2;
	margin: 0;
	padding: 0 6px;
	background: #fff;
	font-size: 12px;
	line-height: 18px;
	font-weight: 600;
	color: var(--gp-blue-dark);
}

.ttg-gp ul.product-attributes-list li > br {
	display: none;
}

.ttg-gp .attr-box {
	position: relative;
	margin: 0;
}

.ttg-gp .attr-box::before { /* brand check circle, GotPrint-style */
	content: "\2713";
	position: absolute;
	right: 36px;
	top: 50%;
	transform: translateY(-50%);
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--gp-blue);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
	pointer-events: none;
	z-index: 1;
}

.ttg-gp .attr-box::after { /* chevron */
	content: "";
	position: absolute;
	right: 15px;
	top: 50%;
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--gp-muted);
	border-bottom: 2px solid var(--gp-muted);
	transform: translateY(-70%) rotate(45deg);
	pointer-events: none;
}

/* theme hides .kt-no-select2 selects (meant for its own swatch replacements);
   our configurator selects opt out of select2 but stay visible + native */
.ttg-gp select.kt-no-select2 {
	display: block !important;
}

/* wp2print.css injects after this stylesheet and forces 28px-tall selects
   (.print-products-area .product-attributes-list select {height:28px});
   win by specificity, not load order */
.ttg-gp.print-products-area .attr-box select,
.ttg-gp.print-products-area .attr-box input[type="text"] {
	height: 48px;
}

/* keep select text clear of the check circle + chevron and keep the box
   white (beats shop.css .print-products-area select.quantity rules) */
.ttg-gp.print-products-area .attr-box select {
	padding-right: 64px;
	background: #fff;
}

/* uniform 20px rhythm between all configurator fields — overrides
   wp2print.css li:last-child{mb:0} and the per-ul bottom margins that made
   list-boundary gaps differ from intra-list gaps */
.ttg-gp .ttg-gp-fields ul.product-attributes-list {
	margin: 0;
}

.ttg-gp .ttg-gp-fields ul.product-attributes-list > li,
.ttg-gp .ttg-gp-fields ul.product-attributes-list > li:last-child {
	margin: 0 0 20px;
}

.ttg-gp .attr-box select,
.ttg-gp .attr-box input[type="text"] {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--gp-line);
	border-radius: var(--gp-radius);
	background: #fff;
	padding: 12px 64px 12px 14px;
	font-size: 15px;
	line-height: 1.4;
	color: var(--gp-ink);
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ttg-gp.print-products-area .attr-box select {
	border-color: var(--gp-blue);
}

.ttg-gp .attr-box input[type="text"] {
	-webkit-appearance: none;
}

.ttg-gp .attr-box select:focus,
.ttg-gp .attr-box input[type="text"]:focus {
	border-color: var(--gp-blue);
	box-shadow: 0 0 0 3px rgba(3, 112, 175, 0.15);
}

.ttg-gp .attr-box select:hover {
	border-color: var(--gp-blue);
}

/* no check circle for plain text inputs */
.ttg-gp .attr-box:has(> input[type="text"]:only-child)::before {
	content: none;
}

/* radio-style attributes → segmented pills */
.ttg-gp .attr-radio-box::before,
.ttg-gp .attr-radio-box::after {
	content: none;
}

.ttg-gp .a-radio {
	display: flex;
	gap: 0;
	border: 1px solid var(--gp-line);
	border-radius: var(--gp-radius);
	overflow: hidden;
}

.ttg-gp .a-radio label {
	flex: 1;
	margin: 0;
}

.ttg-gp .a-radio label input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.ttg-gp .a-radio label span.button {
	display: block;
	width: 100%;
	box-sizing: border-box;
	border: 0;
	border-radius: 0;
	background: var(--gp-soft);
	color: var(--gp-ink);
	text-align: center;
	padding: 10px 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.ttg-gp .a-radio label + label span.button {
	border-left: 1px solid var(--gp-line);
}

.ttg-gp .a-radio label input:checked + span.button {
	background: var(--gp-blue);
	color: #fff;
}

/* quantity-mailed / error rows inherit the base look */
.ttg-gp .min-qmailed-error,
.ttg-gp .quantity-mailed-error,
.ttg-gp .area-wh-error {
	display: none;
	margin-top: 6px;
	font-size: 12px;
	color: #b91c1c;
}

/* production-speed select keeps the boxed look (already .attr-box-less li) */
.ttg-gp select.production-speed {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--gp-line);
	border-radius: var(--gp-radius);
	padding: 12px 40px 12px 14px;
	font-size: 15px;
	-webkit-appearance: none;
	appearance: none;
	background: #fff;
}

.ttg-gp .shipp-date-row {
	font-size: 13px;
	color: var(--gp-muted);
}

/* ---------- production time ---------- */

.ttg-gp .ttg-gp-native-turnaround {
	display: none !important;
}

.ttg-gp-ptime {
	position: relative;
	margin: 0 0 16px;
}

.ttg-gp-ptime-label {
	display: inline-block;
	position: relative;
	z-index: 2;
	margin: 0 0 -9px 12px;
	padding: 0 6px;
	background: #fff;
	font-size: 12px;
	line-height: 18px;
	font-weight: 600;
	color: var(--gp-blue-dark);
}

.ttg-gp-seg {
	display: flex;
	border: 1px solid var(--gp-line);
	border-radius: var(--gp-radius);
	overflow: hidden;
}

.ttg-gp-seg-cell {
	flex: 1;
	padding: 8px 10px;
	text-align: center;
	background: var(--gp-soft);
}

.ttg-gp button.ttg-gp-seg-cell {
	border: 0;
	border-radius: 0;
	-webkit-appearance: none;
	appearance: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.ttg-gp-seg-cell + .ttg-gp-seg-cell {
	border-left: 1px solid var(--gp-line);
}

.ttg-gp-seg-cell strong,
.ttg-gp-seg-cell em {
	display: block;
	font-style: normal;
}

.ttg-gp-seg-cell strong {
	font-size: 14px;
}

.ttg-gp-seg-cell em {
	font-size: 12px;
	color: var(--gp-muted);
}

.ttg-gp-seg-cell.is-active {
	background: var(--gp-blue);
}

.ttg-gp-seg-cell.is-active strong,
.ttg-gp-seg-cell.is-active em {
	color: #fff;
}

.ttg-gp-seg-cell.is-disabled {
	background: #f3f4f6;
}

.ttg-gp-seg-cell.is-disabled strong,
.ttg-gp-seg-cell.is-disabled em {
	color: #9ca3af;
}

.ttg-gp button.ttg-gp-seg-cell:not(:disabled):not(.is-active):hover {
	background: #e7edf7;
}

.ttg-gp button.ttg-gp-seg-cell:focus-visible {
	position: relative;
	z-index: 1;
	outline: 2px solid var(--gp-blue-dark);
	outline-offset: -3px;
}

.ttg-gp button.ttg-gp-seg-cell:disabled {
	opacity: 1;
	cursor: not-allowed;
}

/* ---------- process type accordion ---------- */

.ttg-gp-accordion {
	margin: 0 0 16px;
	border: 1px solid var(--gp-line);
	border-radius: var(--gp-radius);
	background: #fff;
}

.ttg-gp-acc-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	border: 0;
	background: var(--gp-soft);
	padding: 12px 14px;
	font-size: 14px;
	font-weight: 600;
	color: var(--gp-ink);
	cursor: pointer;
	border-radius: var(--gp-radius);
}

.ttg-gp-acc-icon {
	font-size: 18px;
	font-weight: 400;
	color: var(--gp-muted);
}

.ttg-gp-acc-body {
	padding: 12px 14px;
	font-size: 14px;
	color: var(--gp-muted);
	border-top: 1px solid var(--gp-line);
}

.ttg-gp-acc-body p {
	margin: 0;
}

/* ---------- subtotal bar ---------- */

.ttg-gp-subtotal {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 16px;
	padding: 12px 14px;
	border: 1px solid var(--gp-line);
	border-radius: var(--gp-radius);
	background: var(--gp-soft);
}

.ttg-gp-subtotal-label {
	font-size: 14px;
	font-weight: 600;
	color: var(--gp-ink);
}

.ttg-gp-subtotal-price {
	font-size: 19px;
	font-weight: 800;
	color: var(--gp-navy);
}

/* keep wp2print's own price line out of sight (subtotal bar mirrors it).
   !important: the engine's slideDown() sets inline display:block. */
.ttg-gp .product-price {
	display: none !important;
}

.ttg-gp .product-na-text {
	margin: 0 0 12px;
	padding: 10px 14px;
	border: 1px solid #fecaca;
	border-radius: var(--gp-radius);
	background: #fff7f7;
	color: #b91c1c;
	font-size: 13px;
}

/* ---------- add to cart ---------- */

.ttg-gp .product-add-button {
	margin: 12px 0 4px;
}

.ttg-gp .product-add-button .single_add_to_cart_button {
	display: block;
	width: 100%;
	border: 0;
	border-radius: 999px;
	padding: 14px 20px;
	background: linear-gradient(135deg, var(--gp-orange), var(--gp-orange-dark));
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.03em;
	cursor: pointer;
	transition: filter 0.15s ease, transform 0.1s ease;
}

.ttg-gp .product-add-button .single_add_to_cart_button:hover {
	filter: brightness(1.06);
}

.ttg-gp .product-add-button .single_add_to_cart_button:active {
	transform: translateY(1px);
}

.ttg-gp .product-add-button .single_add_to_cart_button:disabled,
.ttg-gp .product-add-button .single_add_to_cart_button.ttgp-disabled {
	background: #c3ccd4;
	cursor: not-allowed;
	filter: none;
}

/* ---------- guarantee link + drawer ---------- */

.ttg-gp-guarantee-line {
	margin: 14px 0 0;
	text-align: center;
}

.ttg-gp-guarantee-link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	border: 0;
	background: transparent;
	color: var(--gp-blue);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	padding: 4px 8px;
}

.ttg-gp-guarantee-link svg {
	width: 18px;
	height: 18px;
}

.ttg-gp-guarantee-link:hover {
	color: var(--gp-blue-dark);
	text-decoration: underline;
}

.ttg-gp-gdrawer {
	position: fixed;
	inset: 0;
	z-index: 1000000; /* below upload modal (1000001) and proof modal (1000002) */
}

.ttg-gp-gdrawer[hidden] {
	display: none;
}

.ttg-gp-gdrawer-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 20, 30, 0.55);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.ttg-gp-gdrawer-panel {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: min(430px, 94vw);
	background: #fff;
	box-shadow: -12px 0 40px rgba(10, 20, 30, 0.25);
	transform: translateX(100%);
	transition: transform 0.28s ease;
	overflow-y: auto;
	padding: 22px 26px 30px;
	box-sizing: border-box;
}

.ttg-gp-gdrawer.is-open .ttg-gp-gdrawer-backdrop {
	opacity: 1;
}

.ttg-gp-gdrawer.is-open .ttg-gp-gdrawer-panel {
	transform: translateX(0);
}

.ttg-gp-gdrawer-close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 34px;
	height: 34px;
	border: 0;
	background: transparent;
	font-size: 26px;
	line-height: 1;
	color: var(--gp-muted);
	cursor: pointer;
}

.ttg-gp-gdrawer-close:hover {
	color: var(--gp-ink);
}

.ttg-gp-gdrawer-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--gp-soft);
	margin-bottom: 20px;
}

.ttg-gp-gdrawer-head svg {
	width: 30px;
	height: 30px;
	color: var(--gp-blue);
	flex: 0 0 auto;
}

.ttg-gp-gdrawer-head h3 {
	margin: 0;
	font-size: 19px;
	color: var(--gp-ink);
}

.ttg-gp-gsec {
	display: flex;
	gap: 14px;
	margin-bottom: 26px;
}

.ttg-gp-gsec-icon {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	color: var(--gp-blue);
}

.ttg-gp-gsec-icon svg {
	width: 100%;
	height: 100%;
}

.ttg-gp-gsec h4 {
	margin: 8px 0 6px;
	font-size: 15px;
	color: var(--gp-ink);
}

.ttg-gp-gsec p {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--gp-muted);
}

body.ttg-gp-drawer-open {
	overflow: hidden;
}

/* ---------- gallery: View Larger + thumbs strip ---------- */

.ttg-gp-product .woocommerce-product-gallery {
	position: relative;
}

.ttg-gp-product .woocommerce-product-gallery .woocommerce-product-gallery__image {
	border-radius: 8px;
	overflow: hidden;
	background: #f1f4f7;
}

.ttg-gp-viewlarger {
	margin: 6px 0 8px;
	text-align: right;
}

.ttg-gp-viewlarger a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 13px;
	color: var(--gp-muted);
	text-decoration: none;
}

.ttg-gp-viewlarger a:hover {
	color: var(--gp-blue);
}

.ttg-gp-viewlarger svg {
	width: 14px;
	height: 14px;
}

/* lightweight lightbox for View Larger */
.ttg-gp-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000003;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4vh 4vw;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.ttg-gp-lightbox.is-open {
	opacity: 1;
}

.ttg-gp-lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 20, 30, 0.8);
}

.ttg-gp-lightbox-figure {
	position: relative;
	margin: 0;
	max-width: 100%;
	max-height: 100%;
}

.ttg-gp-lightbox-figure img {
	display: block;
	max-width: 90vw;
	max-height: 88vh;
	border-radius: 8px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.ttg-gp-lightbox-close {
	position: absolute;
	top: -14px;
	right: -14px;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #1a2733;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

/* thumbs: horizontal strip under the main image (overrides large-image
   layout which pins them in a left column) */
body.ttg-gp-product.kt-product-style-large-image .woocommerce-product-gallery .flex-control-thumbs,
body.ttg-gp-product .woocommerce-product-gallery .flex-control-thumbs {
	position: static !important;
	width: 100% !important;
	margin: 10px 0 0 !important;
	padding: 0;
	display: flex;
	gap: 8px;
	flex-wrap: nowrap;
	overflow-x: auto;
}

body.ttg-gp-product .woocommerce-product-gallery .flex-control-thumbs li {
	width: 74px !important;
	flex: 0 0 74px;
	margin: 0 !important;
}

body.ttg-gp-product .woocommerce-product-gallery .flex-control-thumbs li img {
	border: 1px solid var(--gp-line, #c9d4de);
	border-radius: 6px;
	opacity: 0.85;
}

body.ttg-gp-product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
	border-color: #0370af;
	opacity: 1;
	box-shadow: 0 0 0 2px rgba(3, 112, 175, 0.25);
}

/* Shared GP carousel controls: icon-only chevrons beside a three-thumbnail
   window. Legacy class names remain internal to avoid needless markup churn. */
body.ttg-gp-product .ttg-pgallery .woocommerce-product-gallery {
	display: block;
}

body.ttg-gp-product .ttg-pgallery .woocommerce-product-gallery .flex-viewport {
	order: 1;
}

body.ttg-gp-product .ttg-pgallery .woocommerce-product-gallery .ttg-gp-viewlarger {
	order: 2;
}

body.ttg-gp-product .ttg-pgallery .woocommerce-product-gallery .ttg-poster-carousel-controls {
	order: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin: 10px 0 0;
}

body.ttg-gp-product .ttg-pgallery .ttg-poster-carousel-viewport {
	flex: 0 1 auto;
	width: calc((82px * 3) + (10px * 2));
	max-width: calc(100% - 44px);
	overflow: hidden;
}

body.ttg-gp-product .ttg-pgallery .ttg-poster-carousel-track {
	display: flex;
	gap: 10px;
	width: max-content;
}

body.ttg-gp-product .ttg-pgallery .ttg-poster-carousel-arrow {
	flex: 0 0 22px;
	width: 22px;
	height: 82px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #333;
	font-size: 0;
	line-height: 1;
	cursor: pointer;
}

body.ttg-gp-product .ttg-pgallery .ttg-poster-carousel-arrow::before {
	display: block;
	font-size: 30px;
	font-weight: 400;
	line-height: 82px;
}

body.ttg-gp-product .ttg-pgallery .ttg-poster-carousel-prev::before {
	content: "\2039";
}

body.ttg-gp-product .ttg-pgallery .ttg-poster-carousel-next::before {
	content: "\203A";
}

body.ttg-gp-product .ttg-pgallery .ttg-poster-carousel-arrow:hover {
	color: #000;
}

body.ttg-gp-product .ttg-pgallery .ttg-poster-thumb {
	display: block;
	flex: 0 0 82px;
	width: 82px;
	height: 82px;
	margin: 0;
	padding: 0;
	border: 1px solid #d7d7d7;
	border-radius: 4px;
	background: #fff;
	opacity: 0.48;
	cursor: pointer;
	overflow: hidden;
	transition: opacity 0.15s ease, border-color 0.15s ease;
}

body.ttg-gp-product .ttg-pgallery .ttg-poster-thumb.is-active {
	border-color: #777;
	opacity: 1;
}

body.ttg-gp-product .ttg-pgallery .ttg-poster-thumb:hover,
body.ttg-gp-product .ttg-pgallery .ttg-poster-thumb:focus-visible {
	opacity: 1;
	border-color: #333;
}

body.ttg-gp-product .ttg-pgallery .ttg-poster-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	border-radius: 0;
	object-fit: cover;
	opacity: 1;
}

/* Keep the poster gallery and summary inside narrow viewports. The parent
   shop layout uses content-box cards, which otherwise creates horizontal
   overflow once the mobile padding is added. */
body.ttg-gp-product .ttg-pgrid > *,
body.ttg-gp-product .ttg-pgallery,
body.ttg-gp-product .ttg-psummary-col,
body.ttg-gp-product .ttg-psummary,
body.ttg-gp-product .ttg-pgallery .woocommerce-product-gallery,
body.ttg-gp-product .ttg-pgallery .woocommerce-product-gallery .flex-viewport {
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
}

body.ttg-gp-product .ttg-pgallery .woocommerce-product-gallery__wrapper {
	min-width: 0;
	max-width: none;
	box-sizing: content-box;
}

body.ttg-gp-product .ttg-pgallery .woocommerce-product-gallery img {
	max-width: 100%;
	height: auto;
}

@media (max-width: 767px) {
	body.ttg-gp-product .ttg-pgallery .ttg-poster-carousel-controls {
	gap: 6px;
	}

	body.ttg-gp-product .ttg-pgallery .ttg-poster-carousel-viewport {
	width: calc((74px * 3) + (8px * 2));
	max-width: calc(100% - 40px);
	}

	body.ttg-gp-product .ttg-pgallery .ttg-poster-carousel-track {
	gap: 8px;
	}

	body.ttg-gp-product .ttg-pgallery .ttg-poster-carousel-arrow {
	flex-basis: 20px;
	width: 20px;
	height: 74px;
	}

	body.ttg-gp-product .ttg-pgallery .ttg-poster-carousel-arrow::before {
	font-size: 27px;
	line-height: 74px;
	}

	body.ttg-gp-product .ttg-pgallery .ttg-poster-thumb {
	flex-basis: 74px;
	width: 74px;
	height: 74px;
	}
}

/* main image column back to full width since thumbs moved below */
body.ttg-gp-product.kt-product-style-large-image .woocommerce-product-gallery .flex-viewport {
	width: 100% !important;
	margin-left: 0 !important;
}

/* ---------- tabs (Product Details | Paper Stocks | File Setup | Templates) ---------- */

body.ttg-gp-product .woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin: 0;
	padding: 0;
	border-bottom: 2px solid #e6ecf2;
}

body.ttg-gp-product .woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

body.ttg-gp-product .woocommerce-tabs ul.tabs li::before,
body.ttg-gp-product .woocommerce-tabs ul.tabs li::after {
	content: none;
}

body.ttg-gp-product .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 12px 22px;
	border: 0;
	border-top: 3px solid transparent;
	background: #f4f7fa;
	color: #1a2733;
	font-size: 15px;
	font-weight: 600;
}

body.ttg-gp-product .woocommerce-tabs ul.tabs li + li a {
	border-left: 1px solid #e6ecf2;
}

body.ttg-gp-product .woocommerce-tabs ul.tabs li.active a {
	background: #fff;
	border-top-color: #0370af;
	color: #024f7c;
}

body.ttg-gp-product .woocommerce-tabs .panel {
	border: 1px solid #e6ecf2;
	border-top: 0;
	padding: 22px 24px;
}

.ttg-gp-details {
	display: flex;
	gap: 40px;
	flex-wrap: wrap;
	margin-top: 18px;
}

.ttg-gp-details h4 {
	margin: 0 0 8px;
	font-size: 14px;
}

.ttg-gp-details ul {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 14px;
	color: #5b6b7a;
}

.ttg-gp-details p {
	margin: 0 0 14px;
	font-size: 14px;
	color: #5b6b7a;
}

.ttg-gp-filesetup li,
.ttg-gp-templates li {
	margin-bottom: 6px;
}

/* ---------- responsive ---------- */

@media (max-width: 767px) {
	.ttg-gp .attr-box select,
	.ttg-gp .attr-box input[type="text"] {
		font-size: 16px; /* prevent iOS zoom */
	}

	.ttg-gp-gdrawer-panel {
		width: 100vw;
	}

	body.ttg-gp-product .woocommerce-tabs ul.tabs li a {
		padding: 10px 14px;
		font-size: 14px;
	}
}

/* ---------- orientation toggle (GotPrint-style segmented control) ---------- */

.ttg-gp .ttg-gp-orient-li > label {
	position: absolute;
	top: -9px;
	left: 12px;
	z-index: 2;
	margin: 0;
	padding: 0 6px;
	background: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 18px;
	color: var(--gp-muted);
}

.ttg-gp .ttg-gp-orient {
	display: flex;
	border: 1px solid var(--gp-line);
	border-radius: var(--gp-radius);
	overflow: hidden;
	background: #fff;
}

.ttg-gp .ttg-gp-orient-btn {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 10px;
	border: 0;
	background: #fff;
	color: var(--gp-muted);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}

.ttg-gp .ttg-gp-orient-btn svg {
	width: 18px;
	height: 18px;
}

.ttg-gp .ttg-gp-orient-btn + .ttg-gp-orient-btn {
	border-left: 1px solid var(--gp-line);
}

.ttg-gp .ttg-gp-orient-btn:hover {
	color: var(--gp-blue);
}

.ttg-gp .ttg-gp-orient-btn.is-active {
	background: var(--gp-blue);
	color: #fff;
}

.ttg-gp .ttg-gp-orient-square {
	display: none;
	flex: 1;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 10px;
	background: var(--gp-blue);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
}

.ttg-gp .ttg-gp-orient-square svg {
	width: 18px;
	height: 18px;
}

.ttg-gp .ttg-gp-orient.is-square .ttg-gp-orient-btn {
	display: none;
}

.ttg-gp .ttg-gp-orient.is-square .ttg-gp-orient-square {
	display: flex;
}

/* ---------- Paper Thickness link (above the Paper select) ---------- */

.ttg-gp .ttg-gp-has-pthick .ttg-gp-pthick {
	position: absolute;
	top: -9px;
	right: 12px;
	z-index: 2;
	margin: 0;
	padding: 0 6px;
	border: 0;
	background: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 18px;
	color: var(--gp-blue);
	cursor: pointer;
	text-decoration: none;
}

.ttg-gp .ttg-gp-has-pthick .ttg-gp-pthick:hover {
	text-decoration: underline;
}

.ttg-gp-pthick-figure {
	max-width: min(860px, 92vw);
}

.ttg-gp-pthick-figure img {
	max-width: 100%;
	max-height: 82vh;
	display: block;
	border-radius: var(--gp-radius);
	background: #fff;
}

/* ---------- single-action row ---------- */

.ttg-gp .ttg-actions-single .ttg-upload-btn {
	flex: 0 1 auto;
	min-width: 200px;
}

/* matrix-unavailable options */
.ttg-gp select.smatrix-attr option:disabled,
.ttg-gp select.quantity option:disabled {
	color: #b3bec9;
}

/* ---------- details tab columns (sizes / paper stocks / print options) --- */

.ttg-gp-details-col ul {
	margin: 0 0 14px;
	padding-left: 18px;
	font-size: 14px;
	color: #5b6b7a;
}

@media (max-width: 767px) {
	.ttg-gp .ttg-gp-orient-btn {
		padding: 12px 6px;
		font-size: 13px;
	}
}

/* ---------- visual field order (DOM order stays wp2print-native so the
   price-key construction is unaffected) ---------- */

.ttg-gp .ttg-gp-fields {
	display: block;
}

.ttg-gp .ttg-gp-fields > ul.ttg-gp-field-list {
	display: flex;
	flex-direction: column;
	margin: 0;
}
