/*
 * TotieShoppe - single product page.
 * Plain CSS (no Tailwind rebuild needed). Everything is scoped to .totie-single, which
 * woocommerce.php adds to the wrapper on product pages only.
 * Fonts: Quicksand for headings / buttons (same as the rest of the theme), body font inherited.
 * Colors come from the theme variables (--color-main, --color-sage, ...).
 */

.totie-single {
	--totie-star: #f2b33d;
	--totie-line: rgba(196, 178, 163, 0.28);
	--totie-muted: #6b7280;
	color: #374151;
}
.totie-single h1,
.totie-single h2,
.totie-single h3,
.totie-single .totie-btn,
.totie-single .single_add_to_cart_button {
	font-family: 'Quicksand', sans-serif;
}
.totie-single .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ------------------------------- Layout ---------------------------------- */
.totie-single .totie-sp-back {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-bottom: 1.25rem;
	color: var(--color-main);
	font-family: 'Quicksand', sans-serif;
	font-weight: 700;
	font-size: 0.95rem;
	text-decoration: none;
}
.totie-single .totie-sp-back:hover { text-decoration: underline; }

.totie-single div.product {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2rem;
}
.totie-single div.product > * { min-width: 0; }
@media (min-width: 768px) {
	.totie-single div.product {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		column-gap: 3rem;
		align-items: start;
	}
}
.totie-single div.product > .totie-sp-wide,
.totie-single div.product > section.related,
.totie-single div.product > section.up-sells,
.totie-single div.product > section.upsells {
	grid-column: 1 / -1;
}
.totie-single .totie-sp-wide { scroll-margin-top: 6rem; }

.totie-single .totie-sp-card {
	background: #fff;
	border: 1px solid var(--totie-line);
	border-radius: 1rem;
	box-shadow: 0 8px 24px rgba(86, 48, 102, 0.07);
	padding: 1.5rem;
}
@media (min-width: 768px) {
	.totie-single .totie-sp-card { padding: 2rem; }
}
.totie-single .totie-sp-h2 {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--color-main);
}
.totie-single .totie-sp-h2--spaced { margin-top: 2rem; }
.totie-single .totie-sp-card .sage-accent { margin: 0.5rem 0 1rem; }

/* --------------------------- Gallery (zoom kept) -------------------------- */
.totie-single div.product div.images,
.totie-single .woocommerce-product-gallery {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	position: relative;
}
.totie-single .woocommerce-product-gallery__wrapper { margin: 0; padding: 0; }
.totie-single .woocommerce-product-gallery__image {
	background: #fff;
	border: 1px solid var(--totie-line);
	border-radius: 1rem;
	overflow: hidden;
}
.totie-single .woocommerce-product-gallery__image img {
	display: block;
	width: 100%;
	height: auto;
}
/* The Tailwind reset caps every <img> at max-width:100%, which breaks the hover-zoom image. */
.totie-single .woocommerce-product-gallery img.zoomImg { max-width: none !important; }

.totie-single .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.6rem;
	margin: 0.75rem 0 0;
	padding: 0;
	list-style: none;
}
.totie-single .flex-control-thumbs li { float: none; width: auto; margin: 0; }
.totie-single .flex-control-thumbs img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border: 2px solid transparent;
	border-radius: 0.6rem;
	opacity: 0.65;
	cursor: pointer;
	transition: opacity 0.15s ease, border-color 0.15s ease;
}
.totie-single .flex-control-thumbs img:hover,
.totie-single .flex-control-thumbs img.flex-active {
	opacity: 1;
	border-color: var(--color-main);
}

/* ------------------------------- Summary --------------------------------- */
.totie-single div.product div.summary {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.totie-single .totie-sp-heading .product_title {
	margin: 0;
	font-size: clamp(1.6rem, 3.2vw, 2.25rem);
	font-weight: 700;
	line-height: 1.2;
	color: var(--color-main);
	overflow-wrap: anywhere;
}
.totie-single .totie-sp-brand {
	margin: 0.35rem 0 0;
	font-size: 1.05rem;
	font-weight: 500;
	color: #4b5563;
}
.totie-single .totie-sp-brand span {
	margin-right: 0.35rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--totie-muted);
}
.totie-single .totie-sp-heading .sage-accent { margin-top: 0.75rem; }

/* Rating line */
.totie-single .totie-sp-rating {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	align-self: flex-start;
	font-size: 0.9rem;
	color: var(--totie-muted);
	text-decoration: none;
}
.totie-single .totie-sp-rating:hover .totie-sp-rating__text { text-decoration: underline; }

/* Text-based stars: gold up to --pct, grey after */
.totie-single .totie-stars,
.totie-stars {
	display: inline-block;
	font-size: 1.1rem;
	line-height: 1;
	letter-spacing: 0.08em;
	background: linear-gradient(90deg, var(--totie-star, #f2b33d) var(--pct, 0%), #e5e7eb var(--pct, 0%));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

/* Price */
.totie-single div.summary p.price,
.totie-single div.summary span.price {
	margin: 0;
	font-family: 'Quicksand', sans-serif;
	font-size: 1.9rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--color-main);
}
.totie-single div.summary .price del { margin-right: 0.5rem; font-size: 1.15rem; font-weight: 500; opacity: 0.55; }
.totie-single div.summary .price ins { text-decoration: none; }

/* Stock / sale pills */
.totie-single .totie-sp-status { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.totie-pill {
	display: inline-flex;
	align-items: center;
	padding: 0.3rem 0.8rem;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.2;
}
.totie-pill::before {
	content: '';
	width: 0.5rem;
	height: 0.5rem;
	margin-right: 0.45rem;
	border-radius: 50%;
	background: currentColor;
}
.totie-pill--sm { padding: 0.15rem 0.55rem; font-size: 0.7rem; }
.totie-pill--sm::before { display: none; }
.totie-pill--in { background: var(--color-sage-light, #dce6d8); color: var(--color-sage-dark, #61765e); }
.totie-pill--low { background: #fef3c7; color: #92400e; }
.totie-pill--backorder { background: #e0e7ff; color: #3730a3; }
.totie-pill--out { background: #fee2e2; color: #991b1b; }
.totie-pill--sale { background: var(--color-tertiary, #f4a9c7); color: var(--color-main, #563066); }
.totie-pill--sale::before { display: none; }

/* ---------------------- Add to cart (WooCommerce form) -------------------- */
.totie-single form.cart:not(.variations_form),
.totie-single form.cart .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin: 0.25rem 0 0;
}
.totie-single form.cart .quantity { margin: 0; float: none; }
.totie-single form.cart .quantity .qty {
	width: 4.5rem;
	height: 3rem;
	padding: 0 0.5rem;
	border: 1px solid #d1d5db;
	border-radius: 9999px;
	background: #fff;
	font-weight: 700;
	text-align: center;
}
.totie-single form.cart .quantity .qty:focus { outline: 2px solid var(--color-main); outline-offset: 1px; }
.totie-single form.cart .single_add_to_cart_button {
	flex: 1 1 12rem;
	max-width: 20rem;
	height: 3rem;
	margin: 0;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	border: 0;
	cursor: pointer;
	transition: opacity 0.15s ease, transform 0.15s ease;
}
.totie-single form.cart .single_add_to_cart_button:hover { opacity: 0.92; transform: translateY(-1px); }
.totie-single form.cart .single_add_to_cart_button.disabled,
.totie-single form.cart .single_add_to_cart_button:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.totie-single form.variations_form table.variations { width: 100%; margin: 0 0 1rem; border: 0; }
.totie-single form.variations_form table.variations th,
.totie-single form.variations_form table.variations td { display: block; padding: 0 0 0.35rem; text-align: left; border: 0; }
.totie-single form.variations_form table.variations label { font-weight: 700; color: #374151; }
.totie-single form.variations_form table.variations select {
	width: 100%;
	padding: 0.65rem 1rem;
	border: 1px solid #d1d5db;
	border-radius: 0.75rem;
	background: #fff;
}
.totie-single a.reset_variations { display: inline-block; margin-top: 0.35rem; font-size: 0.8rem; color: var(--color-main); }
.totie-single .woocommerce-variation-price .price { font-size: 1.4rem; }

/* --------------------------- About / Details card ------------------------- */
.totie-single .totie-sp-desc { line-height: 1.7; color: #4b5563; }
.totie-single table.shop_attributes { width: 100%; border-collapse: collapse; }
.totie-single table.shop_attributes th,
.totie-single table.shop_attributes td { padding: 0.65rem 0; border: 0; border-bottom: 1px solid #f0e8e2; text-align: left; vertical-align: top; }
.totie-single table.shop_attributes th { width: 30%; padding-right: 1rem; font-weight: 700; color: var(--totie-muted); }
.totie-single table.shop_attributes td p { margin: 0; padding: 0; }
.totie-single table.shop_attributes tr:last-child th,
.totie-single table.shop_attributes tr:last-child td { border-bottom: 0; }

/* ------------------------------- Reviews --------------------------------- */
.totie-single .totie-rv__summary {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 1.5rem 2.5rem;
	align-items: center;
	padding: 1.25rem;
	margin-bottom: 1.5rem;
	background: var(--color-tan, #f8eee7);
	border-radius: 0.9rem;
}
@media (max-width: 520px) {
	.totie-single .totie-rv__summary { grid-template-columns: minmax(0, 1fr); }
}
.totie-single .totie-rv__score { display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem; }
.totie-single .totie-rv__avg {
	font-family: 'Quicksand', sans-serif;
	font-size: 3rem;
	font-weight: 700;
	line-height: 1;
	color: var(--color-main);
}
.totie-single .totie-rv__count { font-size: 0.85rem; color: var(--totie-muted); }
.totie-single .totie-rv__bars { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.4rem; }
.totie-single .totie-rv__bars li {
	display: grid;
	grid-template-columns: 2.4rem minmax(0, 1fr) 2rem;
	gap: 0.6rem;
	align-items: center;
	font-size: 0.85rem;
	color: #4b5563;
}
.totie-single .totie-rv__bar-n { text-align: right; color: var(--totie-muted); }
.totie-single .totie-rv__track { display: block; height: 0.5rem; border-radius: 999px; background: #fff; overflow: hidden; }
.totie-single .totie-rv__fill { display: block; height: 100%; border-radius: 999px; background: var(--totie-star); }

.totie-single .totie-rv__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 1rem; }
.totie-single .totie-rv__list li::marker { content: ''; }
.totie-single .totie-review__card {
	display: flex;
	gap: 1rem;
	padding: 1rem 1.25rem;
	background: #fffdfb;
	border: 1px solid #f0e8e2;
	border-radius: 0.9rem;
}
.totie-single .totie-review__avatar {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: var(--color-light, #e4d8eb);
	color: var(--color-main);
	font-family: 'Quicksand', sans-serif;
	font-size: 1.15rem;
	font-weight: 700;
}
.totie-single .totie-review__body { flex: 1 1 auto; min-width: 0; }
.totie-single .totie-review__top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.75rem; }
.totie-single .totie-review__author { color: #1f2937; }
.totie-single .totie-review__date { font-size: 0.8rem; color: var(--totie-muted); }
.totie-single .totie-review__stars { margin-top: 0.25rem; }
.totie-single .totie-review__stars .totie-stars { font-size: 0.95rem; }
.totie-single .totie-review__pending { margin: 0.5rem 0 0; font-size: 0.85rem; font-style: italic; color: #92400e; }
.totie-single .totie-review__text { margin-top: 0.5rem; color: #4b5563; line-height: 1.65; overflow-wrap: anywhere; }
.totie-single .totie-review__text p { margin: 0; }
.totie-single .totie-review__text p + p { margin-top: 0.6rem; }

.totie-single .totie-rv__empty { margin: 0 0 1.25rem; color: var(--totie-muted); }
.totie-single .totie-rv__pagination ul { display: flex; justify-content: center; gap: 0.5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.totie-single .totie-rv__pagination a,
.totie-single .totie-rv__pagination span { display: inline-block; padding: 0.35rem 0.8rem; border-radius: 0.5rem; background: #f3f4f6; color: #374151; text-decoration: none; }
.totie-single .totie-rv__pagination .current { background: var(--color-main); color: #fff; }

/* Review form (collapsible) */
.totie-single .totie-rv__form { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid #f0e8e2; }
.totie-single .totie-rv__form > summary { list-style: none; cursor: pointer; }
.totie-single .totie-rv__form > summary::-webkit-details-marker { display: none; }
.totie-single .totie-btn,
.totie-single .totie-rv__form input.submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.7rem 1.5rem;
	border: 0;
	border-radius: 9999px;
	background: var(--color-main);
	color: #fff;
	font-weight: 700;
	font-size: 0.95rem;
	cursor: pointer;
	transition: opacity 0.15s ease;
}
.totie-single .totie-btn:hover { opacity: 0.9; }
.totie-single .totie-rv__form[open] > summary { margin-bottom: 1.25rem; background: var(--color-sage-dark, #61765e); }
.totie-single .totie-rv__form form { display: grid; gap: 1rem; max-width: 40rem; }
.totie-single .totie-rv__form form p { margin: 0; }
.totie-single .totie-rv__form label,
.totie-single .totie-rv__form legend { display: block; margin-bottom: 0.4rem; font-weight: 700; font-size: 0.9rem; color: #374151; }
.totie-single .totie-rv__form .required { color: #dc2626; }
.totie-single .totie-rv__form input[type='text'],
.totie-single .totie-rv__form input[type='email'],
.totie-single .totie-rv__form textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid #d1d5db;
	border-radius: 0.75rem;
	background: #fff;
	font: inherit;
}
.totie-single .totie-rv__form input:focus,
.totie-single .totie-rv__form textarea:focus { outline: 2px solid var(--color-main); outline-offset: 0; }
.totie-single .totie-rv__form .comment-notes,
.totie-single .totie-rv__form .must-log-in { font-size: 0.85rem; color: var(--totie-muted); }

/* Star picker: radios in DOM order 5..1, shown 1..5 (row-reverse) so "checked ~ label" fills lower stars */
.totie-single .totie-rate { margin: 0; padding: 0; border: 0; }
.totie-single .totie-rate__stars { position: relative; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 0.15rem; }
.totie-single .totie-rate__stars input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}
.totie-single .totie-rate__stars label {
	margin: 0;
	font-size: 2rem;
	line-height: 1;
	color: #d1d5db;
	cursor: pointer;
	transition: color 0.1s ease, transform 0.1s ease;
}
.totie-single .totie-rate__stars label:hover { transform: scale(1.1); }
.totie-single .totie-rate__stars input:checked ~ label,
.totie-single .totie-rate__stars label:hover,
.totie-single .totie-rate__stars label:hover ~ label { color: var(--totie-star); }
.totie-single .totie-rate__stars input:focus-visible + label { outline: 2px solid var(--color-main); outline-offset: 2px; border-radius: 4px; }

/* ----------------------- Related products / upsells ----------------------- */
.totie-single section.related > h2,
.totie-single section.up-sells > h2,
.totie-single section.upsells > h2 {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--color-main);
}
.totie-single section.related > h2::after,
.totie-single section.up-sells > h2::after,
.totie-single section.upsells > h2::after {
	content: '';
	display: block;
	width: 42px;
	height: 3px;
	margin-top: 0.5rem;
	border-radius: 999px;
	background: var(--color-sage);
	opacity: 0.8;
}
.totie-single ul.products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	margin: 1.25rem 0 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 768px) {
	.totie-single ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
}
/* WooCommerce's clearfix pseudo-elements would otherwise become empty grid cells. */
.totie-single ul.products::before,
.totie-single ul.products::after { content: none !important; display: none !important; }

.totie-single ul.products li.product {
	position: relative;
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 1rem !important;
	background: #fff;
	border: 1px solid var(--totie-line);
	border-radius: 1rem;
	box-shadow: 0 8px 24px rgba(86, 48, 102, 0.07);
	text-align: left;
	transition: box-shadow 0.15s ease;
}
.totie-single ul.products li.product:hover { box-shadow: 0 12px 28px rgba(86, 48, 102, 0.12); }
.totie-single ul.products li.product a.woocommerce-LoopProduct-link { display: block; color: inherit; text-decoration: none; }
.totie-single ul.products li.product img {
	display: block;
	width: 100% !important;
	height: 11rem;
	margin: 0 0 0.75rem !important;
	object-fit: cover;
	border-radius: 0.75rem;
}
.totie-single ul.products li.product .woocommerce-loop-product__title {
	margin: 0;
	padding: 0;
	font-size: 1rem;
	font-weight: 600;
	color: #1f2937;
	overflow-wrap: anywhere;
}
.totie-single ul.products li.product .totie-loop-brand { margin: 0.15rem 0 0; font-size: 0.85rem; color: var(--totie-muted); }
.totie-single ul.products li.product .price {
	display: block;
	margin-top: 0.4rem;
	font-weight: 600;
	color: var(--color-main) !important;
}
.totie-single ul.products li.product .price del { opacity: 0.55; margin-right: 0.35rem; }
.totie-single ul.products li.product .price ins { text-decoration: none; }
/* Same minimal cards as the Catalog page: no button / stars / badge on the small cards */
.totie-single ul.products li.product .button,
.totie-single ul.products li.product .star-rating,
.totie-single ul.products li.product .onsale { display: none !important; }

/* ------------------------------ Color picker ------------------------------ */
.totie-single .totie-colors { margin: 0.25rem 0; }
.totie-single .totie-colors__label { margin: 0 0 0.6rem; font-size: 0.9rem; color: var(--totie-muted); }
.totie-single .totie-colors__label strong { margin-left: 0.4rem; color: #1f2937; }
.totie-single .totie-colors__list { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.totie-single .totie-color {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.3rem;
	width: 4.75rem;
	padding: 0.35rem;
	border: 2px solid var(--totie-line);
	border-radius: 0.8rem;
	background: #fff;
	color: #374151;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.totie-single .totie-color img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 0.5rem;
}
.totie-single .totie-color__name { overflow-wrap: anywhere; }
.totie-single a.totie-color:hover { border-color: var(--color-secondary, #a385c0); }
.totie-single .totie-color.is-current { border-color: var(--color-main); box-shadow: 0 0 0 3px rgba(86, 48, 102, 0.14); }
.totie-single .totie-color.is-soldout { opacity: 0.5; cursor: not-allowed; }
.totie-single .totie-color.is-soldout img { filter: grayscale(1); }

/* -------------------------------- Size picker ------------------------------- */
.totie-single .totie-sizes { flex: 1 1 100%; margin: 0 0 0.25rem; }
.totie-single .totie-sizes__label { margin: 0 0 0.6rem; font-size: 0.9rem; font-weight: 700; color: #374151; }
.totie-single .totie-sizes__label .required { color: #dc2626; }
.totie-single .totie-sizes__options { position: relative; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.totie-single .totie-size__input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}
.totie-single .totie-size {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 3rem;
	height: 2.75rem;
	padding: 0 1rem;
	border: 2px solid #d1d5db;
	border-radius: 0.75rem;
	background: #fff;
	color: #374151;
	font-family: 'Quicksand', sans-serif;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.totie-single .totie-size:hover { border-color: var(--color-secondary, #a385c0); }
.totie-single .totie-size__input:checked + .totie-size { border-color: var(--color-main); background: var(--color-main); color: #fff; }
.totie-single .totie-size__input:focus-visible + .totie-size { outline: 2px solid var(--color-main); outline-offset: 2px; }
.totie-single .totie-sizes__note {
	margin: 0.75rem 0 0;
	padding: 0.75rem 1rem;
	border-radius: 0.75rem;
	background: var(--color-tan, #f8eee7);
	color: #4b5563;
	font-size: 0.85rem;
	line-height: 1.55;
}
.totie-single .totie-sizes__note a { color: var(--color-main); font-weight: 700; white-space: nowrap; }

/* Sizes that the item does not have: shown, but greyed out and not selectable */
.totie-single .totie-size.is-unavailable {
	border-style: dashed;
	background: #f3f4f6;
	color: #9ca3af;
	text-decoration: line-through;
	cursor: not-allowed;
}
.totie-single .totie-size.is-unavailable:hover { border-color: #d1d5db; }
.totie-single .totie-sizes.is-empty .totie-sizes__note { background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; }
.totie-single .totie-sizes.is-empty .totie-sizes__note a { color: #9a3412; }

/* --------------------------------- Size guide ------------------------------- */
.totie-single .totie-sizes__guide { margin: 0.6rem 0 0; }
.totie-single .totie-sizeguide-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0;
	border: 0;
	background: none;
	color: var(--color-main);
	font-family: 'Quicksand', sans-serif;
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.totie-single .totie-sizeguide-link:hover { opacity: 0.8; }

body.totie-modal-open { overflow: hidden; }
.totie-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}
.totie-modal[hidden] { display: none; }
.totie-modal__backdrop { position: absolute; inset: 0; background: rgba(17, 24, 39, 0.65); }
.totie-modal__dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(56rem, 100%);
	max-height: calc(100vh - 2rem);
	border-radius: 1rem;
	background: #fff;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
	overflow: hidden;
}
.totie-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid #f0e8e2;
}
.totie-modal__head h2 { margin: 0; font-family: 'Quicksand', sans-serif; font-size: 1.25rem; font-weight: 700; color: var(--color-main, #563066); }
.totie-modal__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border: 0;
	border-radius: 50%;
	background: #f3f4f6;
	color: #374151;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}
.totie-modal__close:hover { background: var(--color-main, #563066); color: #fff; }
.totie-modal__body { padding: 1rem 1.25rem 1.5rem; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.totie-modal__body:focus-visible { outline: 2px solid var(--color-main, #563066); outline-offset: -2px; }
.totie-modal__img { display: block; width: 100%; height: auto; margin: 0 0 1rem; border-radius: 0.5rem; }
.totie-modal__img:last-child { margin-bottom: 0; }

.totie-single .totie-sizes--guide-only { flex: 0 0 auto; margin: 0; }
.totie-single .totie-sizes--guide-only .totie-sizes__guide { margin: 0; }
