/*
 * Geotoky — product page touch-ups (Styler's single product).
 * Loads on product pages only (not the gift voucher, which has its own layout).
 * The selected-options bar, the quantity + Add to cart + wishlist row and the
 * free-shipping message under it. Same look as the cart / checkout: Jost,
 * square-ish corners, 1px light borders, near-black buttons (#252525), coral accent.
 */

body.single-product {
	--gp-black: #252525;
	--gp-accent: #da7474;
	--gp-muted: #7d7d7d;
	--gp-line: #eadfd9;
	--gp-soft: #faf5f1;
	--gp-blush: #fbeeee;
	--gp-r: 6px;
	--gp-green: #528a2e;
	--gp-h: 52px;
}

/* ------------------------------------------------------------------ *
 * "Select Options" + the chosen options bar
 * ------------------------------------------------------------------ */

body.single-product .styler-product-summary .styler-select-variations-terms-title {
	display: block;
	margin: 0 0 14px;
	color: var(--gp-muted);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* Styler's own mark-up: wrapper (shown by its script) > bar > "Label: value" spans. */
body.single-product .styler-product-summary .styler-selected-variations-terms-wrapper {
	margin: 0 0 18px;
}

body.single-product .styler-product-summary .styler-selected-variations-terms-title {
	display: none;
}

body.single-product .styler-product-summary .styler-selected-variations-terms {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 18px;
	margin: 0 !important;
	padding: 12px 18px !important;
	background: #f1f6ee !important;
	border: 1px solid #d3e3ca;
	border-left: 3px solid var(--gp-green);
	border-radius: 3px !important;
	color: #2f4f1a !important;
	font-size: 14px;
	line-height: 1.5;
}

body.single-product .styler-product-summary .styler-selected-variations-terms .selected-features {
	margin: 0 !important;
	font-weight: 500;
}

/* ------------------------------------------------------------------ *
 * Quantity + Add to cart + wishlist
 * ------------------------------------------------------------------ */

body.single-product .styler-product-summary .single_variation_wrap .woocommerce-variation-add-to-cart,
body.single-product .styler-product-summary form.cart:not(.variations_form):not(.grouped_form) {
	display: flex !important;
	flex-wrap: nowrap;
	align-items: stretch;
	justify-content: flex-start !important;
	gap: 10px;
	margin: 22px 0 0 !important;
	padding: 0 !important;
	background: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	text-align: left;
}

/* Products without options: the same width as the ones with options. */
body.single-product .styler-product-summary form.cart:not(.variations_form):not(.grouped_form) {
	width: 400px;
	max-width: 100%;
}

/* Stepper: one bordered control, − | 1 | + */
body.single-product .styler-product-summary .quantity.type-number {
	position: relative;
	display: flex;
	flex: 0 0 auto;
	align-items: stretch;
	height: var(--gp-h);
	margin: 0 !important;
	background: var(--gp-soft);
	border: 1px solid var(--gp-line);
	border-radius: var(--gp-r);
	overflow: hidden;
}

body.single-product .styler-product-summary .quantity.type-number .quantity-button {
	position: static;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 38px;
	width: 38px;
	height: auto;
	margin: 0;
	color: var(--gp-black);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	user-select: none;
	transition: background 0.15s;
}

body.single-product .styler-product-summary .quantity.type-number .quantity-button:hover {
	background: var(--gp-blush);
	color: var(--gp-accent);
}

body.single-product .styler-product-summary .quantity.type-number input.qty {
	flex: 0 0 40px;
	width: 40px !important;
	height: 100% !important;
	min-height: 0;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0 !important;
	box-shadow: none;
	color: var(--gp-black) !important;
	font-size: 16px;
	font-weight: 500;
	text-align: center;
	-moz-appearance: textfield;
}

body.single-product .styler-product-summary .quantity.type-number input.qty::-webkit-outer-spin-button,
body.single-product .styler-product-summary .quantity.type-number input.qty::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

body.single-product .styler-product-summary .single_add_to_cart_button {
	flex: 1 1 auto;
	min-width: 0;
	height: var(--gp-h);
	margin: 0 !important;
	padding: 0 24px;
	background: var(--gp-black) !important;
	border-radius: var(--gp-r) !important;
	color: #fff !important;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.04em;
	transition: background 0.2s;
}

body.single-product .styler-product-summary .single_add_to_cart_button:hover {
	background: var(--gp-accent) !important;
}

/* Wishlist heart: a square button the same height as the others. */
body.single-product .styler-product-summary .variations_button .styler-wishlist-btn,
body.single-product .styler-product-summary form.cart .styler-wishlist-btn {
	display: flex;
	flex: 0 0 var(--gp-h);
	align-items: center;
	justify-content: center;
	width: var(--gp-h);
	height: var(--gp-h);
	margin: 0 !important;
	padding: 0;
	background: #fff;
	border: 1px solid var(--gp-line);
	border-radius: var(--gp-r);
	color: var(--gp-accent);
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s;
}

body.single-product .styler-product-summary .styler-wishlist-btn.added,
body.single-product .styler-product-summary .styler-wishlist-btn:hover {
	background: var(--gp-blush);
	border-color: var(--gp-accent);
}

body.single-product .styler-product-summary .styler-wishlist-btn .styler-svg-icon,
body.single-product .styler-product-summary .styler-wishlist-btn svg {
	width: 22px;
	height: 22px;
	margin: 0;
}

/* The "Request Availability" button sits under the row. */
body.single-product .styler-product-summary .sprq-add-to-quote {
	margin-top: 10px;
}

/* ------------------------------------------------------------------ *
 * Free-shipping message
 * ------------------------------------------------------------------ */

body.single-product #wfspb-shortcode {
	margin: 24px 0 32px;
}

body.single-product #wfspb-shortcode .woocommerce-free-shipping-bar-order {
	padding: 18px 22px 20px;
	background: var(--gp-soft);
	border: 1px solid var(--gp-line);
	border-radius: var(--gp-r);
	text-align: center;
}

body.single-product #wfspb-shortcode .woocommerce-free-shipping-bar-message {
	margin: 0;
}

body.single-product #wfspb-shortcode #wfspb-main-content {
	color: var(--gp-black) !important;
	font-size: 14px;
	line-height: 1.5;
}

body.single-product #wfspb-shortcode #wfspb-main-content b,
body.single-product #wfspb-shortcode #wfspb-main-content b span {
	font-weight: 600;
	color: var(--gp-black);
}

body.single-product #wfspb-shortcode .woocommerce-free-shipping-bar-order-bar {
	height: 4px;
	margin: 14px 0 0 !important;
	background: #f0e3dc;
	border-radius: 2px;
}

body.single-product #wfspb-shortcode .woocommerce-free-shipping-bar-order-bar-inner {
	background: #359208;
	border-radius: 2px;
}

/* ------------------------------------------------------------------ *
 * Phones
 * ------------------------------------------------------------------ */

@media (max-width: 520px) {
	body.single-product {
		--gp-h: 48px;
	}

	body.single-product .styler-product-summary .single_variation_wrap .woocommerce-variation-add-to-cart,
	body.single-product .styler-product-summary form.cart:not(.variations_form):not(.grouped_form) {
		gap: 8px;
	}

	body.single-product .styler-product-summary .quantity.type-number .quantity-button {
		flex-basis: 32px;
		width: 32px;
	}

	body.single-product .styler-product-summary .quantity.type-number input.qty {
		flex-basis: 34px;
		width: 34px !important;
	}

	body.single-product .styler-product-summary .single_add_to_cart_button {
		padding: 0 12px;
		font-size: 14px;
	}
}

/* Width of the options + Add to cart block (moved from Additional CSS); never wider than the screen. */
body.single-product .styler-product-summary div .single_variation_wrap {
	width: 400px;
	max-width: 100%;
}
