/* ==========================================================================
   Cheetah WooCommerce — Single Product Styles
   ==========================================================================
   Location: assets/css/conditional/woocommerce-product.css
   Dependencies: woocommerce.css, core/variables.css
   Loaded on: is_singular('product')
   ========================================================================== */

/* --------------------------------------------------------------------------
   Single Product Layout
   -------------------------------------------------------------------------- */
.cheetah-single-product-main {
	padding-top: var(--cheetah-space-md, 1rem);
	padding-bottom: var(--cheetah-space-3xl, 4rem);
}

.cheetah-product {
	--product-gap: var(--cheetah-space-xl, 2rem);
}

.cheetah-product__top {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--product-gap);
	margin-bottom: var(--cheetah-space-2xl, 3rem);
}

@media (max-width: 768px) {
	.cheetah-product__top {
		grid-template-columns: 1fr;
	}
}

/* --------------------------------------------------------------------------
   Product Gallery
   -------------------------------------------------------------------------- */
.cheetah-product-gallery {
	--gallery-gap: var(--cheetah-space-sm, 0.5rem);
}

.cheetah-product-gallery__stage {
	position: relative;
	overflow: hidden;
	border-radius: var(--cheetah-radius-lg, 8px);
	background-color: #f8fafc;
	aspect-ratio: 1 / 1;
}

.cheetah-product-gallery__slide {
	display: none;
	width: 100%;
	height: 100%;
}

.cheetah-product-gallery__slide.is-active {
	display: block;
}

.cheetah-product-gallery__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cheetah-product-gallery__lightbox-trigger {
	display: block;
	width: 100%;
	height: 100%;
}

/* Gallery Navigation */
.cheetah-product-gallery__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(255, 255, 255, 0.9);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	color: var(--cheetah-heading, #0f172a);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: background-color 0.2s ease, color 0.2s ease;
	z-index: 2;
}

.cheetah-product-gallery__nav:hover {
	background-color: #ffffff;
	color: var(--cheetah-primary, #2563eb);
}

.cheetah-product-gallery__nav--prev {
	left: var(--cheetah-space-md);
}

.cheetah-product-gallery__nav--next {
	right: var(--cheetah-space-md);
}

/* Thumbnails – default (bottom) */
.cheetah-product-gallery__thumbs {
	display: flex;
	gap: var(--gallery-gap);
	margin-top: var(--gallery-gap);
	overflow-x: auto;
	padding-bottom: var(--cheetah-space-xs);
}

.cheetah-product-gallery__thumb {
	flex: 0 0 80px;
	width: 80px;
	height: 80px;
	padding: 0;
	background: none;
	border: 2px solid transparent;
	border-radius: var(--cheetah-radius, 8px);
	cursor: pointer;
	overflow: hidden;
	transition: border-color 0.2s ease;
	aspect-ratio: 1 / 1;
}

.cheetah-product-gallery__thumb.is-active,
.cheetah-product-gallery__thumb:hover {
	border-color: var(--cheetah-primary, #2563eb);
}

.cheetah-product-gallery__thumb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--cheetah-radius, 2px);
}

/* Gallery – thumb position variants */
.cheetah-product-gallery--thumbs-bottom .cheetah-product-gallery__thumbs {
	display: flex;
	gap: var(--gallery-gap);
	margin-top: var(--gallery-gap);
	overflow-x: auto;
}

.cheetah-product-gallery--thumbs-left,
.cheetah-product-gallery--thumbs-right {
	display: flex;
	gap: var(--cheetah-space-md);
}

.cheetah-product-gallery--thumbs-left {
	flex-direction: row-reverse;
}

.cheetah-product-gallery--thumbs-left .cheetah-product-gallery__thumbs,
.cheetah-product-gallery--thumbs-right .cheetah-product-gallery__thumbs {
	flex-direction: column;
	overflow-y: auto;
	max-height: 480px;
	margin-top: 0;
}

.cheetah-product-gallery--thumbs-left .cheetah-product-gallery__main,
.cheetah-product-gallery--thumbs-right .cheetah-product-gallery__main {
	flex: 1;
}

/* --------------------------------------------------------------------------
   Product Summary
   -------------------------------------------------------------------------- */
.cheetah-product__summary {
	padding: var(--cheetah-space-md) 0;
}

.cheetah-product__summary .product_title {
	margin: 0 0 var(--cheetah-space-md);
	font-size: var(--cheetah-font-size-h2, 2rem);
	font-weight: 700;
	line-height: 1.2;
	color: var(--cheetah-heading, #0f172a);
}

.cheetah-product__summary .price {
	font-size: var(--cheetah-font-size-h3, 1.5rem);
	font-weight: 700;
	color: var(--cheetah-primary, #2563eb);
	margin-bottom: var(--cheetah-space-md);
}

.cheetah-product__summary .price del {
	color: var(--cheetah-text-muted, #94a3b8);
	font-weight: 400;
	margin-right: var(--cheetah-space-sm);
}

.cheetah-product__summary .price ins {
	text-decoration: none;
}

.cheetah-product__summary .woocommerce-product-rating {
	display: flex;
	align-items: center;
	gap: var(--cheetah-space-sm);
	margin-bottom: var(--cheetah-space-md);
}

.cheetah-product__summary .woocommerce-product-rating .star-rating {
	color: #f59e0b;
}

.cheetah-product__summary .woocommerce-review-link {
	font-size: var(--cheetah-font-size-sm, 0.875rem);
	color: var(--cheetah-text-muted, #94a3b8);
	text-decoration: none;
}

.cheetah-product__summary .woocommerce-review-link:hover {
	color: var(--cheetah-primary, #2563eb);
}

/* Short Description */
.cheetah-product__summary .woocommerce-product-details__short-description {
	margin-bottom: var(--cheetah-space-lg);
	color: var(--cheetah-text, #1e293b);
	line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Add to Cart Form (single product)
   --------------------------------------------------------------------------
   Fixed-slot layout that keeps the summary column perfectly stable through
   the WooCommerce AJAX add-to-cart lifecycle. WooCommerce appends
   `<a class="added_to_cart wc-forward">View cart</a>` as a sibling of
   the add-to-cart button after a successful add. We reserve one fixed
   slot for the pair, hide the original button once it carries `.added`,
   and let the injected link take exactly the same box so the form never
   grows vertically or horizontally.
   -------------------------------------------------------------------------- */
.cheetah-product__summary .cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--cheetah-space-md);
	margin-bottom: var(--cheetah-space-lg);
	min-height: 52px;
}

.cheetah-product__summary .cart .quantity {
	display: flex;
	align-items: center;
}

.cheetah-product__summary .cart .quantity .qty {
	width: 80px;
	text-align: center;
}

/*
 * The primary add-to-cart button and the injected "View cart" link share
 * a common fixed box so swapping one for the other never reflows the
 * summary column. The min-width guarantees the slot is the same size
 * regardless of which label is currently shown.
 */
.cheetah-product__summary .cart .single_add_to_cart_button,
.cheetah-product__summary .cart .added_to_cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 200px;
	height: 52px;
	padding: 0 1.75rem;
	font-family: inherit;
	font-size: var(--cheetah-font-size-lg, 1.125rem);
	font-weight: 600;
	line-height: 1;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	border-radius: var(--cheetah-radius-md, 8px);
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* Loading state — spinner replaces the label, box dimensions are unchanged. */
.cheetah-product__summary .cart .single_add_to_cart_button.loading {
	position: relative;
	color: transparent;
	pointer-events: none;
}

.cheetah-product__summary .cart .single_add_to_cart_button.loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 18px;
	margin: -9px 0 0 -9px;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: cheetah-single-add-to-cart-spin 0.7s linear infinite;
}

@keyframes cheetah-single-add-to-cart-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Hide the original button once WooCommerce marks it as added. */
.cheetah-product__summary .cart .single_add_to_cart_button.added {
	display: none;
}

/* Fallback for edge cases where `.added` is not applied. */
.cheetah-product__summary .cart:has(.added_to_cart) .single_add_to_cart_button {
	display: none;
}

/* "View cart" link — same box as the button, ghost-styled. */
.cheetah-product__summary .cart .added_to_cart {
	background-color: #ffffff;
	color: var(--cheetah-primary, #2563eb);
	border: 1px solid var(--cheetah-primary, #2563eb);
}

.cheetah-product__summary .cart .added_to_cart:hover,
.cheetah-product__summary .cart .added_to_cart:focus {
	background-color: var(--cheetah-primary, #2563eb);
	color: #ffffff;
	text-decoration: none;
	outline: none;
}

/* Stock */
.cheetah-product__summary .stock {
	font-size: var(--cheetah-font-size-sm, 0.875rem);
	font-weight: 500;
	margin-bottom: var(--cheetah-space-md);
}

.cheetah-product__summary .stock.in-stock {
	color: #10b981;
}

.cheetah-product__summary .stock.out-of-stock {
	color: #ef4444;
}

/* Product Meta */
.cheetah-product__summary .product_meta {
	padding-top: var(--cheetah-space-md);
	border-top: 1px solid var(--cheetah-border, #e2e8f0);
	font-size: var(--cheetah-font-size-sm, 0.875rem);
	color: var(--cheetah-text-muted, #94a3b8);
}

.cheetah-product__summary .product_meta > span {
	display: block;
	margin-bottom: var(--cheetah-space-xs);
}

.cheetah-product__summary .product_meta a {
	color: var(--cheetah-primary, #2563eb);
	text-decoration: none;
}

.cheetah-product__summary .product_meta a:hover {
	text-decoration: underline;
}

/* Trust badges */
.cheetah-product__trust {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--cheetah-space-sm);
	margin: var(--cheetah-space-lg) 0;
	font-size: var(--cheetah-font-size-sm, 0.875rem);
	color: var(--cheetah-text-muted, #94a3b8);
}

.cheetah-product__trust-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.cheetah-product__trust-item svg {
	color: var(--cheetah-primary, #2563eb);
	flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Product Tabs
   -------------------------------------------------------------------------- */
.woocommerce-tabs {
	margin-bottom: var(--cheetah-space-2xl, 3rem);
}

.woocommerce-tabs ul.tabs {
	display: flex;
	gap: var(--cheetah-space-md);
	list-style: none;
	margin: 0 0 var(--cheetah-space-lg);
	padding: 0;
	border-bottom: 1px solid var(--cheetah-border, #e2e8f0);
}

.woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
}

.woocommerce-tabs ul.tabs li a {
	display: block;
	padding: var(--cheetah-space-sm) 0;
	font-weight: 700;
	color: var(--cheetah-text-muted, #94a3b8);
	text-decoration: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
	color: var(--cheetah-primary, #2563eb);
	border-bottom-color: var(--cheetah-primary, #2563eb);
}

.woocommerce-tabs .panel {
	padding: var(--cheetah-space-md) 0;
}

.woocommerce-tabs .panel h2 {
	font-size: var(--cheetah-font-size-h4, 1.25rem);
	margin-bottom: var(--cheetah-space-md);
}

/* Attributes Table */
.woocommerce-tabs .shop_attributes {
	width: 100%;
	margin: 0;
	border: 1px solid var(--cheetah-border, #e2e8f0);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 12px;
	background: #ffffff;
	overflow: hidden;
}

.woocommerce-tabs .shop_attributes th,
.woocommerce-tabs .shop_attributes td {
	padding: 0.9rem 1rem;
	border: 0;
	border-top: 1px solid #edf1f5;
	text-align: left;
	vertical-align: middle;
}

.woocommerce-tabs .shop_attributes tr:first-child th,
.woocommerce-tabs .shop_attributes tr:first-child td {
	border-top: 0;
}

.woocommerce-tabs .shop_attributes th {
	width: 34%;
	font-weight: 600;
	color: var(--cheetah-heading, #0f172a);
	background: #f8fafc;
}

.woocommerce-tabs .shop_attributes td {
	color: var(--cheetah-text, #1e293b);
	background: #ffffff;
}

.woocommerce-tabs .shop_attributes tr:hover th,
.woocommerce-tabs .shop_attributes tr:hover td {
	background: #f8fbff;
}

.woocommerce-tabs .shop_attributes td p {
	margin: 0;
}

.woocommerce-tabs .shop_attributes a {
	color: var(--cheetah-primary, #2563eb);
	text-decoration: underline;
	text-decoration-color: rgba(37, 99, 235, 0.28);
	text-underline-offset: 2px;
}

.woocommerce-tabs .shop_attributes a:hover {
	text-decoration-color: currentColor;
}

@media (max-width: 767px) {
	.woocommerce-tabs .shop_attributes th,
	.woocommerce-tabs .shop_attributes td {
		padding: 0.8rem 0.85rem;
		font-size: 0.9375rem;
	}

	.woocommerce-tabs .shop_attributes th {
		width: 38%;
	}
}

/* --------------------------------------------------------------------------
   Related Products, Upsells & Recently Viewed
   -------------------------------------------------------------------------- */
.related.products,
.upsells.products,
.recently-viewed.products {
	margin-top: var(--cheetah-space-2xl, 3rem);
}

.related.products > h2,
.upsells.products > h2,
.recently-viewed.products > h2 {
	font-size: var(--cheetah-font-size-h3, 1.5rem);
	margin-bottom: var(--cheetah-space-lg);
}

/*
 * Responsive product columns for the single-product recommendation sections.
 *
 * These selectors intentionally have higher specificity than WooCommerce's
 * generic `.woocommerce ul.products` rules, including its responsive
 * fallbacks, so the Cheetah backend settings remain authoritative at every
 * breakpoint.
 */
.cheetah-single-product .cheetah-upsell-products > ul.products {
	grid-template-columns: repeat(var(--cheetah-upsell-columns, 4), minmax(0, 1fr));
}

.cheetah-single-product .cheetah-related-products > ul.products {
	grid-template-columns: repeat(var(--cheetah-related-columns, 4), minmax(0, 1fr));
}

.cheetah-single-product .cheetah-recently-viewed-products > ul.products {
	grid-template-columns: repeat(var(--cheetah-recently-viewed-columns, 4), minmax(0, 1fr));
}

/* --------------------------------------------------------------------------
   Variable Products
   -------------------------------------------------------------------------- */
.cheetah-product__summary .variations {
	width: 100%;
	margin-bottom: var(--cheetah-space-md);
}

.cheetah-product__summary .variations td {
	padding: var(--cheetah-space-xs) 0;
}

.cheetah-product__summary .variations label {
	font-weight: 500;
}

.cheetah-product__summary .variations select {
	width: 100%;
}

.cheetah-product__summary .single_variation_wrap {
	margin-top: var(--cheetah-space-md);
}

.cheetah-product__summary .woocommerce-variation-price {
	margin-bottom: var(--cheetah-space-md);
}

/* --------------------------------------------------------------------------
   Grouped Products
   -------------------------------------------------------------------------- */
.cheetah-product__summary .group_table {
	width: 100%;
	margin-bottom: var(--cheetah-space-md);
}

.cheetah-product__summary .group_table td {
	padding: var(--cheetah-space-sm) 0;
	vertical-align: middle;
}

.cheetah-product__summary .group_table .quantity {
	margin: 0;
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.cheetah-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cheetah-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.92);
}

.cheetah-lightbox__content {
	position: relative;
	max-width: 90vw;
	max-height: 90vh;
}

.cheetah-lightbox__image {
	max-width: 100%;
	max-height: 90vh;
	object-fit: contain;
	border-radius: var(--cheetah-radius-md, 8px);
}

.cheetah-lightbox__close {
	position: absolute;
	top: -40px;
	right: 0;
	color: #fff;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
}

/* --------------------------------------------------------------------------
   Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
	.cheetah-product-gallery--thumbs-left,
	.cheetah-product-gallery--thumbs-right {
		flex-direction: column;
	}

	.cheetah-product-gallery--thumbs-left .cheetah-product-gallery__thumbs,
	.cheetah-product-gallery--thumbs-right .cheetah-product-gallery__thumbs {
		flex-direction: row;
		max-height: none;
		overflow-x: auto;
	}

	.cheetah-product__trust {
		grid-template-columns: 1fr;
	}

	/*
	 * Allow the single add-to-cart slot to shrink to the available width
	 * on small screens without losing its fixed height.
	 */
	.cheetah-product__summary .cart .single_add_to_cart_button,
	.cheetah-product__summary .cart .added_to_cart {
		min-width: 0;
		flex: 1 1 auto;
		width: 100%;
	}
}

/* ==========================================================================
   Mobile: Product Tabs — 2-column pill grid with equal-height rows
   ==========================================================================
   The tab bar has up to 4 tabs, two of which ("Additional information",
   "Shipping & Returns") are long. Previous approaches were:

     1. display:flex                    → every title wrapped to 2–3 lines.
     2. horizontally scrollable tab bar → some tabs were off-screen.
     3. fixed 2-column grid             → rows had different heights when
                                          one label wrapped and another did
                                          not, making the grid look ragged.

   This version uses a 2-column pill grid with a single-row-height
   guarantee:

     - `display: grid` + `grid-template-columns: repeat(2, 1fr)` gives
       equal-width columns.
     - `grid-auto-rows: 1fr` forces every implicit row to share the same
       height. That height is determined by the tallest cell across all
       rows, so a two-line label lifts every other pill to match. This is
       a pure CSS solution — no JavaScript, no resize listeners.
     - Each `<li>` is a flex container, so its `<a>` child stretches to
       fill the row height (`align-items: stretch` is the flex default).
     - The `<a>` centres its content with `align-items: center` +
       `justify-content: center`, so a single-line label sits on the
       vertical midline of its (taller) row just like a two-line label.
     - `min-height: 48px` keeps the pills at a comfortable touch target
       even when every label is short.
     - `li:only-child` spans the full row for the single-tab edge case.

   With an odd number of tabs (e.g. 3), the last row contains one pill at
   half width — visually balanced against the equal-height row above.
   ========================================================================== */
@media (max-width: 768px) {
	.woocommerce-tabs ul.tabs {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		/* Force every row to the same height — the tallest content wins
		   and all other rows match. This is what equalises a two-line
		   pill against a one-line pill in a different row. */
		grid-auto-rows: 1fr;
		gap: 8px;
		list-style: none;
		margin: 0 0 var(--cheetah-space-lg, 1.5rem);
		padding: 0;
		border-bottom: none;
	}

	.woocommerce-tabs ul.tabs li {
		/* Flex container so the anchor stretches to fill the row height
		   established by grid-auto-rows: 1fr. */
		display: flex;
		margin: 0;
		padding: 0;
		min-width: 0; /* allow the pill to shrink inside its grid cell */
	}

	/* Single-tab case: give it the whole row. */
	.woocommerce-tabs ul.tabs li:only-child {
		grid-column: 1 / -1;
	}

	.woocommerce-tabs ul.tabs li a {
		display: flex;
		align-items: center;      /* vertical centring inside the pill */
		justify-content: center;  /* horizontal centring */
		width: 100%;
		min-height: 48px;         /* touch-target floor */
		padding: 10px 12px;
		text-align: center;

		/* Allow the label to wrap to at most 2 lines; word-break prevents
		   a single long word from overflowing the cell. */
		white-space: normal;
		word-break: break-word;

		font-size: 0.875rem;
		font-weight: 600;
		line-height: 1.25;
		letter-spacing: -0.005em;

		color: var(--cheetah-text-muted, #64748b);
		background: #f8fafc;
		border: 1px solid var(--cheetah-border, #e2e8f0);
		border-radius: 10px;
		text-decoration: none;

		/* Reset the desktop underline indicator. */
		margin-bottom: 0;

		transition:
				background-color 0.15s ease,
				border-color 0.15s ease,
				color 0.15s ease,
				box-shadow 0.15s ease;
	}

	.woocommerce-tabs ul.tabs li a:hover,
	.woocommerce-tabs ul.tabs li a:focus {
		background: #eef2f7;
		border-color: #cbd5e1;
		color: var(--cheetah-heading, #0f172a);
		outline: none;
	}

	.woocommerce-tabs ul.tabs li.active a {
		background: var(--cheetah-primary, #2563eb);
		border-color: var(--cheetah-primary, #2563eb);
		color: #ffffff;
		box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
	}

	.woocommerce-tabs ul.tabs li.active a:hover {
		background: var(--cheetah-primary-hover, #1d4ed8);
		border-color: var(--cheetah-primary-hover, #1d4ed8);
		color: #ffffff;
	}

	.woocommerce-tabs .panel {
		padding: var(--cheetah-space-md) 0;
	}
}

/* ==========================================================================
   Custom Review Form
   ========================================================================== */

.cheetah-review-form {
	margin-top: var(--cheetah-space-xl, 2rem);
	padding-top: var(--cheetah-space-xl, 2rem);
	border-top: 1px solid var(--cheetah-border, #e2e8f0);
}

.cheetah-review-form .comment-reply-title {
	display: block;
	font-size: var(--cheetah-font-size-h4, 1.25rem);
	font-weight: 700;
	margin-bottom: var(--cheetah-space-md, 1rem);
	color: var(--cheetah-heading, #0f172a);
}

.cheetah-review-form .comment-reply-title small {
	float: right;
	font-size: var(--cheetah-font-size-sm, 0.875rem);
	font-weight: 400;
}

.cheetah-review-form .comment-reply-title small a {
	color: var(--cheetah-primary, #2563eb);
	text-decoration: none;
}

.cheetah-review-form .comment-reply-title small a:hover {
	text-decoration: underline;
}

/* Form Rows */
.cheetah-form-row {
	margin-bottom: var(--cheetah-space-md, 1rem);
}

.cheetah-form-row label {
	display: block;
	font-size: var(--cheetah-font-size-sm, 0.875rem);
	font-weight: 600;
	margin-bottom: var(--cheetah-space-xs, 0.25rem);
	color: var(--cheetah-text, #1e293b);
}

.cheetah-form-row .required {
	color: #ef4444;
}

.cheetah-form-row input[type="text"],
.cheetah-form-row input[type="email"],
.cheetah-form-row textarea {
	width: 100%;
	padding: var(--cheetah-space-sm, 0.5rem) var(--cheetah-space-md, 1rem);
	font-size: var(--cheetah-font-size-base, 1rem);
	line-height: 1.5;
	color: var(--cheetah-text, #1e293b);
	background-color: #fff;
	border: 1px solid var(--cheetah-border, #e2e8f0);
	border-radius: var(--cheetah-radius, 8px);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cheetah-form-row input[type="text"]:focus,
.cheetah-form-row input[type="email"]:focus,
.cheetah-form-row textarea:focus {
	outline: none;
	border-color: var(--cheetah-primary, #2563eb);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.cheetah-form-row textarea {
	resize: vertical;
	min-height: 120px;
}

/* Star Rating Selector */
.cheetah-stars-selector {
	display: inline-flex;
	flex-direction: row-reverse;
	gap: 4px;
}

.cheetah-stars-selector input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	margin: 0;
}

.cheetah-star-label {
	cursor: pointer;
	display: flex;
	padding: 2px;
	color: #cbd5e1;
	transition: color 0.2s ease, transform 0.15s ease;
}

.cheetah-star-label svg {
	display: block;
}

/* Hover & Checked states */
.cheetah-star-label:hover,
.cheetah-star-label:hover ~ .cheetah-star-label,
.cheetah-stars-selector input:checked ~ .cheetah-star-label {
	color: #f59e0b;
}

.cheetah-star-label:hover {
	transform: scale(1.15);
}

/* Focus ring for keyboard navigation */
.cheetah-stars-selector input:focus + .cheetah-star-label {
	border-radius: 2px;
}

/* Rating error message */
.cheetah-rating-error {
	font-size: var(--cheetah-font-size-sm, 0.875rem);
	color: #ef4444;
	margin-top: var(--cheetah-space-xs, 0.25rem);
	margin-bottom: 0;
}

/* Checkbox */
.cheetah-checkbox-label {
	display: inline-flex !important;
	align-items: center;
	gap: var(--cheetah-space-sm, 0.5rem);
	cursor: pointer;
	font-weight: 400 !important;
	font-size: var(--cheetah-font-size-sm, 0.875rem) !important;
}

.cheetah-checkbox-label input[type="checkbox"] {
	width: 1rem;
	height: 1rem;
	accent-color: var(--cheetah-primary, #2563eb);
	cursor: pointer;
}

/* Submit Button */
.cheetah-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: var(--cheetah-space-sm, 0.5rem) var(--cheetah-space-xl, 2rem);
	font-size: var(--cheetah-font-size-base, 1rem);
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
	border: none;
	border-radius: var(--cheetah-radius, 8px);
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.1s ease;
}

.cheetah-button--primary {
	background-color: var(--cheetah-primary, #2563eb);
	color: #fff;
}

.cheetah-button--primary:hover {
	background-color: #1d4ed8;
}

.cheetah-button--primary:active {
	transform: translateY(1px);
}

/* No-reviews message spacing */
.woocommerce-noreviews {
	margin-bottom: 0;
	color: var(--cheetah-text-muted, #94a3b8);
	font-size: var(--cheetah-font-size-base, 1rem);
}

/* Shake animation for validation */
@keyframes cheetah-shake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-4px); }
	75% { transform: translateX(4px); }
}