/**
 * Single product page: gallery, lightbox, accordion, reviews and sticky bar.
 * Tokens come from gueta-header.css, which is always loaded first.
 */

.gueta-gallery,
.gueta-gallery *,
.gueta-accordion,
.gueta-accordion *,
.gueta-lightbox,
.gueta-lightbox *,
.gueta-sticky-atc,
.gueta-sticky-atc *,
.gueta-reviews,
.gueta-reviews * {
	box-sizing: border-box;
}

/* -------------------------------------------------------------------------
 * Gallery
 * ---------------------------------------------------------------------- */

.gueta-gallery {
	display: grid;
	gap: 12px;
}

/* Product shots are cut out on white, so a grey plate only shows around them. */
.gueta-gallery__stage {
	background: var(--gueta-paper);
	border: 1px solid var(--gueta-rule);
	border-radius: 10px;
	display: grid;
	overflow: hidden;
	position: relative;
}

.gueta-gallery__slide,
.gueta-gallery__placeholder {
	background: none;
	border: 0;
	cursor: zoom-in;
	display: block;
	grid-area: 1 / 1;
	margin: 0;
	padding: 0;
	position: relative;
	visibility: hidden;
	width: 100%;
}

.gueta-gallery__slide.is-active,
.gueta-gallery__placeholder {
	visibility: visible;
}

.gueta-gallery__image,
.gueta-gallery__placeholder img {
	aspect-ratio: 1;
	display: block;
	height: auto;
	object-fit: contain;
	width: 100%;
}

.gueta-gallery__zoom {
	align-items: center;
	background: rgb(255 255 255 / 92%);
	border-radius: 50%;
	box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
	display: flex;
	height: 40px;
	inset-block-end: 16px;
	inset-inline-end: 16px;
	justify-content: center;
	opacity: 0;
	position: absolute;
	transition: opacity .25s ease;
	width: 40px;
}

.gueta-gallery__slide:hover .gueta-gallery__zoom,
.gueta-gallery__slide:focus-visible .gueta-gallery__zoom {
	opacity: 1;
}

.gueta-gallery__zoom svg {
	fill: none;
	height: 18px;
	stroke: var(--gueta-ink);
	stroke-linecap: round;
	stroke-width: 1.6;
	width: 18px;
}

.gueta-gallery__thumbs {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding-bottom: 2px;
	scrollbar-width: none;
}

.gueta-gallery__thumbs::-webkit-scrollbar {
	display: none;
}

.gueta-gallery__thumb {
	background: var(--gueta-paper);
	border: 1.5px solid var(--gueta-rule);
	border-radius: 8px;
	cursor: pointer;
	flex: 0 0 76px;
	height: 76px;
	overflow: hidden;
	padding: 0;
	transition: border-color .2s ease;
}

.gueta-gallery__thumb img {
	display: block;
	height: 100%;
	object-fit: contain;
	padding: 4px;
	width: 100%;
}

.gueta-gallery__thumb.is-active {
	border-color: var(--gueta-ink);
}

/* The shop's shortcode gallery, once the lightbox has attached to it. */
.gueta-zoomable {
	cursor: zoom-in;
}

/* -------------------------------------------------------------------------
 * Lightbox
 * ---------------------------------------------------------------------- */

.gueta-lightbox {
	background: #f5f5f5;
	inset: 0;
	position: fixed;
	z-index: 120;
}

.gueta-lightbox[hidden] {
	display: none;
}

.gueta-lightbox__stage {
	align-items: center;
	display: flex;
	inset: 0;
	justify-content: center;
	overflow: auto;
	padding: 24px;
	position: absolute;
}

.gueta-lightbox__image {
	cursor: zoom-in;
	display: block;
	max-height: calc(100vh - 140px);
	max-width: 100%;
	object-fit: contain;
	transition: transform .3s ease;
	transform-origin: center center;
}

.gueta-lightbox.is-zoomed .gueta-lightbox__image {
	cursor: zoom-out;
	max-height: none;
	max-width: none;
	transform: scale(2);
}

.gueta-lightbox__bar {
	display: flex;
	gap: 14px;
	inset-block-end: 28px;
	inset-inline-start: 50%;
	position: absolute;
	transform: translateX(-50%);
}

.gueta-lightbox__button {
	align-items: center;
	background: var(--gueta-paper);
	border: 0;
	border-radius: 50%;
	box-shadow: 0 4px 10px rgb(0 0 0 / 12%);
	color: var(--gueta-ink);
	cursor: pointer;
	display: flex;
	height: 54px;
	justify-content: center;
	padding: 0;
	transition: background-color .2s ease;
	width: 54px;
}

.gueta-lightbox__button:hover {
	background: #eee;
}

.gueta-lightbox__button[hidden] {
	display: none;
}

.gueta-lightbox__button svg {
	fill: none;
	height: 20px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.7;
	width: 20px;
}

/* -------------------------------------------------------------------------
 * Accordion
 * ---------------------------------------------------------------------- */

.gueta-accordion {
	margin-top: 28px;
}

.gueta-accordion__item {
	border-bottom: 1px solid rgb(0 0 0 / 14%);
}

.gueta-accordion__summary {
	align-items: center;
	cursor: pointer;
	display: flex;
	gap: 12px;
	justify-content: space-between;
	list-style: none;
	padding: 17px 0;
}

.gueta-accordion__summary::-webkit-details-marker {
	display: none;
}

.gueta-accordion__title {
	font-size: 17px;
	font-weight: 600;
}

/*
 * A plus that keeps both strokes and rotates a quarter turn into an X when the
 * panel opens, rather than collapsing into a minus.
 */
.gueta-accordion__sign {
	flex: none;
	height: 16px;
	position: relative;
	transition: transform .3s cubic-bezier(.32, .72, 0, 1);
	width: 16px;
}

.gueta-accordion__sign::before,
.gueta-accordion__sign::after {
	background: var(--gueta-ink);
	content: "";
	height: 1.5px;
	inset-block-start: 50%;
	inset-inline-start: 0;
	margin-top: -.75px;
	position: absolute;
	width: 100%;
}

.gueta-accordion__sign::after {
	transform: rotate(90deg);
}

.gueta-accordion__item[open] .gueta-accordion__sign {
	transform: rotate(45deg);
}

.gueta-accordion__content {
	color: var(--gueta-muted);
	font-size: 15px;
	line-height: 1.75;
	padding-bottom: 22px;
}

.gueta-accordion__content > :first-child {
	margin-top: 0;
}

.gueta-accordion__content > :last-child {
	margin-bottom: 0;
}

.gueta-accordion__content ul,
.gueta-accordion__content ol {
	margin: 0 0 14px;
	padding-inline-start: 20px;
}

.gueta-accordion__content li {
	margin-bottom: 6px;
}

.gueta-accordion__content h1,
.gueta-accordion__content h2,
.gueta-accordion__content h3,
.gueta-accordion__content h4 {
	color: var(--gueta-ink);
	font-size: 16px;
	margin: 16px 0 6px;
}

.gueta-specs {
	border-collapse: collapse;
	width: 100%;
}

.gueta-specs th,
.gueta-specs td {
	border-bottom: 1px solid var(--gueta-rule);
	font-size: 14px;
	padding: 9px 0;
	text-align: start;
	vertical-align: top;
}

.gueta-specs th {
	color: var(--gueta-ink);
	font-weight: 600;
	width: 40%;
}

/* -------------------------------------------------------------------------
 * Rating link
 * ---------------------------------------------------------------------- */

.gueta-rating-link {
	align-items: center;
	color: var(--gueta-muted);
	display: flex;
	font-size: 14px;
	gap: 8px;
	margin-bottom: 10px;
	text-decoration: none;
}

.gueta-rating-link:hover span {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.gueta-rating-link .star-rating {
	margin: 0;
}

/* -------------------------------------------------------------------------
 * Reviews
 * ---------------------------------------------------------------------- */

.gueta-reviews {
	border-top: 1px solid var(--gueta-rule);
	margin-top: 48px;
	padding: 40px 0 8px;
}

.gueta-reviews__inner {
	margin: 0 auto;
	max-width: 820px;
}

.gueta-reviews__heading {
	font-size: clamp(22px, 2.4vw, 30px);
	font-weight: 700;
	margin: 0 0 24px;
}

.gueta-reviews #reviews h2,
.gueta-reviews .woocommerce-Reviews-title {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 18px;
}

.gueta-reviews .commentlist {
	display: grid;
	gap: 20px;
	list-style: none;
	margin: 0 0 32px;
	padding: 0;
}

.gueta-reviews .commentlist .review {
	border: 1px solid var(--gueta-rule);
	border-radius: 10px;
	padding: 18px 20px;
}

.gueta-reviews .comment_container {
	display: flex;
	gap: 14px;
}

.gueta-reviews .avatar {
	border-radius: 50%;
	flex: none;
	height: 44px;
	width: 44px;
}

.gueta-reviews .comment-text {
	flex: 1;
	min-width: 0;
}

.gueta-reviews .woocommerce-review__author {
	font-weight: 600;
}

.gueta-reviews .woocommerce-review__published-date {
	color: var(--gueta-soft);
	font-size: 13px;
}

.gueta-reviews .description {
	color: var(--gueta-muted);
	line-height: 1.7;
}

.gueta-reviews .comment-form {
	display: grid;
	gap: 16px;
}

.gueta-reviews .comment-form p {
	margin: 0;
}

.gueta-reviews .comment-form label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 6px;
}

.gueta-reviews .comment-form input[type="text"],
.gueta-reviews .comment-form input[type="email"],
.gueta-reviews .comment-form textarea {
	background: var(--gueta-paper);
	border: 1.5px solid var(--gueta-rule);
	border-radius: 8px;
	color: var(--gueta-ink);
	font-family: inherit;
	font-size: 15px;
	padding: 12px 14px;
	width: 100%;
}

.gueta-reviews .comment-form input:focus,
.gueta-reviews .comment-form textarea:focus {
	border-color: var(--gueta-ink);
	outline: 0;
}

.gueta-reviews .comment-form textarea {
	min-height: 130px;
	resize: vertical;
}

.gueta-reviews .comment-form-rating select {
	border: 1.5px solid var(--gueta-rule);
	border-radius: 8px;
	font-family: inherit;
	font-size: 15px;
	padding: 11px 14px;
}

.gueta-reviews .comment-form .submit {
	background: var(--gueta-ink);
	border: 0;
	border-radius: 8px;
	color: var(--gueta-paper);
	cursor: pointer;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	justify-self: start;
	min-height: 48px;
	padding: 0 32px;
	transition: background-color .2s ease;
}

.gueta-reviews .comment-form .submit:hover {
	background: #000;
}

.gueta-reviews .woocommerce-noreviews {
	color: var(--gueta-muted);
}

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

.gueta-sticky-atc {
	background: var(--gueta-paper);
	border-top: 1px solid var(--gueta-rule);
	box-shadow: 0 -6px 20px rgb(0 0 0 / 8%);
	inset: auto 0 0;
	position: fixed;
	transform: translateY(100%);
	transition: transform .3s ease;
	z-index: 90;
}

.gueta-sticky-atc[hidden] {
	display: none;
}

.gueta-sticky-atc.is-visible {
	transform: translateY(0);
}

.gueta-sticky-atc__inner {
	align-items: center;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	margin: 0 auto;
	max-width: var(--gueta-max);
	padding: 10px var(--gueta-gutter) calc(10px + env(safe-area-inset-bottom));
}

.gueta-sticky-atc__info {
	align-items: center;
	display: flex;
	gap: 12px;
	min-width: 0;
}

.gueta-sticky-atc__media {
	background: var(--gueta-sand);
	border-radius: 8px;
	flex: none;
	height: 54px;
	overflow: hidden;
	width: 54px;
}

.gueta-sticky-atc__media img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.gueta-sticky-atc__text {
	display: grid;
	gap: 2px;
	min-width: 0;
}

.gueta-sticky-atc__title {
	font-size: 14px;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.gueta-sticky-atc__price {
	font-size: 15px;
	font-weight: 700;
}

.gueta-sticky-atc__price del {
	color: var(--gueta-soft);
	font-weight: 400;
	margin-inline-end: 6px;
}

.gueta-sticky-atc__price ins {
	text-decoration: none;
}

.gueta-sticky-atc__cta {
	background: var(--gueta-ink);
	border: 0;
	border-radius: 8px;
	color: var(--gueta-paper);
	cursor: pointer;
	flex: none;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	min-height: 48px;
	padding: 0 34px;
	transition: background-color .2s ease;
}

.gueta-sticky-atc__cta:hover {
	background: #000;
}

.gueta-sticky-atc__cta.is-added {
	background: #1a7f37;
}

@media (max-width: 640px) {
	.gueta-sticky-atc__title {
		max-width: 42vw;
	}

	.gueta-sticky-atc__cta {
		padding: 0 20px;
	}

	.gueta-lightbox__button {
		height: 46px;
		width: 46px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gueta-sticky-atc,
	.gueta-lightbox__image {
		transition-duration: .01ms;
	}
}

/* -------------------------------------------------------------------------
 * Buy box
 *
 * The price, the variation swatches, the quantity and the call to action.
 * WooCommerce's own form sits inside, so part of this is undoing what the
 * parent theme does to it: reset.css paints every button #c36 and stripes the
 * odd rows of every table, which is where the grey panel behind the
 * variations came from.
 * ---------------------------------------------------------------------- */

.gueta-buy,
.gueta-buy * {
	box-sizing: border-box;
}

.gueta-buy {
	display: grid;
	gap: 22px;
	margin: 4px 0 8px;
}

/* The price carries the weight here; everything else stays quiet. */
.gueta-buy__price {
	color: var(--gueta-ink);
	font-size: clamp(28px, 3.2vw, 38px);
	font-weight: 800;
	letter-spacing: -.015em;
	line-height: 1.05;
	margin: 0;
}

.gueta-buy__price[hidden] {
	display: none;
}

.gueta-buy__price del {
	color: var(--gueta-soft);
	font-size: .5em;
	font-weight: 300;
	margin-inline-end: 12px;
	text-decoration-thickness: 1px;
	vertical-align: .2em;
}

.gueta-buy__price ins {
	background: none;
	color: inherit;
	text-decoration: none;
}

.gueta-buy__price .woocommerce-Price-amount {
	font-size: inherit;
}

.gueta-buy__price bdi {
	white-space: nowrap;
}

.gueta-buy__hint {
	color: var(--gueta-muted);
	font-size: 14px;
	margin: -10px 0 0;
}

.gueta-buy__hint[hidden] {
	display: none;
}

.gueta-buy__stock:empty {
	display: none;
}

/*
 * Two places carry it: this one, filled with a chosen variation's line, and
 * the form itself, which a simple product's template prints its own into.
 */
.gueta-buy__stock .stock,
.gueta-buy__form > .stock {
	color: var(--gueta-muted);
	font-size: 14px;
	margin: 0;
}

.gueta-buy__form > .stock {
	margin-bottom: 16px;
}

.gueta-buy .stock.in-stock {
	color: #1a7f37;
}

.gueta-buy .stock.out-of-stock {
	color: var(--gueta-accent);
}

/* -------------------------------------------------------------------------
 * The form inside
 * ---------------------------------------------------------------------- */

.gueta-buy form.cart {
	display: grid;
	gap: 20px;
	margin: 0;
}

/*
 * The row that actually buys. A simple product keeps the quantity and the
 * button as siblings of the form; a variable one has them inside the block
 * WooCommerce fills in once a combination is chosen. Both read the same.
 */
.gueta-buy form.cart:not(.variations_form),
.gueta-buy .woocommerce-variation-add-to-cart {
	align-items: stretch;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/*
 * A product sold by length leads with what its shortest length costs, the
 * price Google is given, and the price per metre follows on a smaller line
 * of its own.
 */
.gueta-price-lead__for {
	font-size: .7em;
	font-weight: 500;
}

.gueta-price-per {
	color: var(--gueta-muted);
	display: block;
	font-size: .6em;
	font-weight: 500;
	margin-top: 2px;
}

.gueta-price-per .woocommerce-Price-amount,
.gueta-price-per .gueta-price-for {
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
}

/* The sticky bar keeps to one line. */
.gueta-sticky-atc .gueta-price-per {
	display: none;
}

/*
 * The length, for timber sold by the metre. It takes the whole row of the
 * buying line, above the quantity and the button, in either kind of form.
 */
.gueta-buy .gueta-length {
	display: grid;
	flex: 1 1 100%;
	gap: 8px;
}

.gueta-length__label {
	color: var(--gueta-ink);
	font-size: 14px;
	font-weight: 600;
}

.gueta-length__required {
	color: var(--gueta-accent);
	text-decoration: none;
}

.gueta-length__select {
	background: var(--gueta-paper);
	border: 1.5px solid var(--gueta-rule);
	border-radius: 8px;
	color: var(--gueta-ink);
	font-family: inherit;
	font-size: 15px;
	min-height: 48px;
	padding: 11px 14px;
	width: 100%;
}

.gueta-length__select:focus {
	border-color: var(--gueta-ink);
	outline: 0;
}

.gueta-length__total {
	color: var(--gueta-muted);
	font-size: 14px;
	margin: 0;
}

.gueta-length__total[hidden] {
	display: none;
}

/* The variation's price and stock are mirrored into the box's own. */
.gueta-buy .woocommerce-variation-price,
.gueta-buy .woocommerce-variation-availability {
	display: none;
}

.gueta-buy .woocommerce-variation-description {
	color: var(--gueta-muted);
	font-size: 14px;
	line-height: 1.7;
}

.gueta-buy .single_variation_wrap {
	display: grid;
	gap: 14px;
}

.gueta-buy .wc-no-matching-variations {
	color: var(--gueta-accent);
	font-size: 14px;
	margin: 0;
}

/* -------------------------------------------------------------------------
 * Variation swatches
 * ---------------------------------------------------------------------- */

/*
 * WooCommerce's select is still there and still authoritative; it is only
 * taken out of sight so the buttons can stand in for it.
 */
.gueta-swatches__native {
	height: 0;
	overflow: hidden;
	position: absolute;
	width: 0;
}

.gueta-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.gueta-swatch {
	background: var(--gueta-paper);
	border: 1.5px solid var(--gueta-rule);
	border-radius: 8px;
	color: var(--gueta-ink);
	cursor: pointer;
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	min-height: 48px;
	padding: 0 20px;
	transition: border-color .4s ease, background-color .4s ease, color .4s ease;
}

.gueta-swatch:hover,
.gueta-swatch:focus {
	background: var(--gueta-paper);
	border-color: var(--gueta-ink);
	color: var(--gueta-ink);
}

.gueta-swatch.is-selected,
.gueta-swatch.is-selected:hover,
.gueta-swatch.is-selected:focus {
	background: var(--gueta-ink);
	border-color: var(--gueta-ink);
	color: var(--gueta-paper);
	font-weight: 700;
}

/* A combination WooCommerce says is unavailable. */
.gueta-swatch[disabled],
.gueta-swatch[disabled]:hover {
	background: var(--gueta-sand);
	border-color: var(--gueta-rule);
	color: var(--gueta-soft);
	cursor: not-allowed;
	text-decoration: line-through;
}

.gueta-swatch:focus-visible {
	outline: 2px solid var(--gueta-ink);
	outline-offset: 2px;
}

/*
 * The variations table, flattened. The background and border are pinned
 * because the parent theme's own table rules are more specific than these.
 */
.gueta-buy table.variations,
.gueta-buy .variations tbody,
.gueta-buy .variations tr,
.gueta-buy .variations th,
.gueta-buy .variations td {
	background: none !important;
	border: 0 !important;
	display: block;
	line-height: inherit !important;
	margin: 0;
	padding: 0 !important;
	width: auto;
}

.gueta-buy .variations tr + tr {
	margin-top: 20px;
}

.gueta-buy .variations th.label,
.gueta-buy .variations th.label label,
.gueta-buy .variations td.label label {
	color: var(--gueta-muted);
	display: block;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .06em;
	margin: 0 0 10px;
	text-align: start;
}

.gueta-buy .reset_variations {
	color: var(--gueta-muted);
	display: inline-block;
	font-size: 13px;
	margin-top: 12px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* -------------------------------------------------------------------------
 * Quantity
 * ---------------------------------------------------------------------- */

.gueta-buy .quantity {
	align-items: stretch;
	background: var(--gueta-paper);
	border: 1.5px solid var(--gueta-rule);
	border-radius: 8px;
	display: inline-flex;
	flex: none;
	min-height: 56px;
	overflow: hidden;
}

.gueta-buy .quantity input[type="number"],
.gueta-buy .quantity .qty {
	appearance: textfield;
	-moz-appearance: textfield;
	background: none !important;
	border: 0 !important;
	border-radius: 0;
	color: var(--gueta-ink);
	font-family: inherit;
	font-size: 17px;
	font-weight: 700;
	padding: 0 !important;
	text-align: center;
	width: 48px;
}

.gueta-buy .quantity input::-webkit-outer-spin-button,
.gueta-buy .quantity input::-webkit-inner-spin-button {
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
}

.gueta-buy .quantity input:focus {
	outline: 0;
}

.gueta-qty {
	background: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	color: var(--gueta-ink) !important;
	cursor: pointer;
	font-family: inherit;
	font-size: 20px;
	font-weight: 400;
	line-height: 1;
	padding: 0 !important;
	transition: color .4s ease, opacity .4s ease;
	width: 46px;
}

.gueta-qty:hover {
	color: var(--gueta-accent-warm) !important;
}

.gueta-qty[disabled] {
	cursor: default;
	opacity: .3;
}

/* -------------------------------------------------------------------------
 * Call to action
 *
 * Pinned, because WooCommerce paints .button.alt in its own colour and the
 * parent theme paints every button in another.
 * ---------------------------------------------------------------------- */

.gueta-buy .single_add_to_cart_button,
.gueta-buy form.cart button[type="submit"] {
	align-items: center;
	background: var(--gueta-accent-warm) !important;
	border: 0 !important;
	border-radius: 8px !important;
	color: #fff !important;
	cursor: pointer;
	display: inline-flex;
	flex: 1 1 220px;
	font-family: inherit;
	font-size: 17px !important;
	font-weight: 700;
	gap: 10px;
	justify-content: center;
	min-height: 56px;
	padding: 0 32px !important;
	transition: filter .4s ease, opacity .4s ease;
}

.gueta-buy .single_add_to_cart_button::before {
	background-color: currentColor;
	content: "";
	flex: none;
	height: 20px;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 4.5h2.2l2.2 10.6a1.9 1.9 0 0 0 1.9 1.5h8a1.9 1.9 0 0 0 1.9-1.5l1.4-6.6H6.2'/%3E%3Ccircle cx='9.6' cy='20' r='1.2'/%3E%3Ccircle cx='18.2' cy='20' r='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 4.5h2.2l2.2 10.6a1.9 1.9 0 0 0 1.9 1.5h8a1.9 1.9 0 0 0 1.9-1.5l1.4-6.6H6.2'/%3E%3Ccircle cx='9.6' cy='20' r='1.2'/%3E%3Ccircle cx='18.2' cy='20' r='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
	width: 20px;
}

.gueta-buy .single_add_to_cart_button:hover,
.gueta-buy form.cart button[type="submit"]:hover {
	filter: brightness(.93);
}

/*
 * WooCommerce adds a "view cart" link beside the button once something is
 * added. The drawer is already open by then, and the shop has no cart page.
 */
.gueta-buy .added_to_cart {
	display: none;
}

/* The sum the press puts in the cart, set off from the words by a thin rule. */
.gueta-buy__sum {
	border-inline-start: 1px solid rgba(255, 255, 255, .45);
	font-variant-numeric: tabular-nums;
	padding-inline-start: 10px;
	unicode-bidi: isolate;
	white-space: nowrap;
}

.gueta-buy .single_add_to_cart_button.disabled,
.gueta-buy .single_add_to_cart_button[disabled],
.gueta-buy .single_add_to_cart_button.wc-variation-selection-needed {
	cursor: not-allowed;
	opacity: .45;
}

/*
 * What the button does while it is working.
 *
 * Adding to the cart no longer reloads the page, and a page that does not
 * move is a page that might not have heard you. So the press is felt, the
 * wait is shown, and the result is said, all on the button under the thumb.
 */
.gueta-buy .single_add_to_cart_button:active {
	filter: brightness(.88);
	transform: scale(.98);
	transition-duration: .06s;
}

/* Working: the cart mark spins in place of itself. */
.gueta-buy.is-adding .single_add_to_cart_button {
	pointer-events: none;
}

.gueta-buy.is-adding .single_add_to_cart_button::before {
	animation: gueta-buy-spin .7s linear infinite;
	background: none;
	border: 2px solid currentColor;
	border-radius: 50%;
	border-top-color: transparent;
	-webkit-mask: none;
	mask: none;
}

@keyframes gueta-buy-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Done: the mark becomes a tick, briefly. */
.gueta-buy.is-added .single_add_to_cart_button {
	background: var(--gueta-good, #10794a) !important;
}

.gueta-buy.is-added .single_add_to_cart_button::before {
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (prefers-reduced-motion: reduce) {
	.gueta-buy .single_add_to_cart_button:active {
		transform: none;
	}

	.gueta-buy.is-adding .single_add_to_cart_button::before {
		animation-duration: 2s;
	}
}

@media (max-width: 560px) {
	.gueta-buy .single_add_to_cart_button {
		flex-basis: 100%;
	}
}

/* -------------------------------------------------------------------------
 * Sold out, and the form that waits for it
 *
 * The options stay, every one disabled, so what the product comes in is still
 * there to read. What would buy it steps aside: WooCommerce's own line is
 * repeated by the form's title, and a variable product's button and reset
 * link have nothing left to act on.
 * ---------------------------------------------------------------------- */

.gueta-buy.is-soldout .gueta-buy__form .stock.out-of-stock,
.gueta-buy.is-soldout .single_variation_wrap,
.gueta-buy.is-soldout .reset_variations {
	display: none !important;
}

.gueta-notify {
	background: var(--gueta-sand);
	border: 1.5px solid var(--gueta-rule);
	border-radius: 8px;
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 20px;
	position: relative;
}

.gueta-notify__title {
	color: var(--gueta-accent);
	font-size: 15px;
	font-weight: 700;
	margin: 0;
}

.gueta-notify__text {
	color: var(--gueta-muted);
	font-size: 14px;
	line-height: 1.6;
	margin: -6px 0 4px;
}

.gueta-notify__row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.gueta-notify__label,
.gueta-notify__trap {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

/* 16px, or iOS zooms the page in on focus. */
.gueta-notify__email {
	background: var(--gueta-paper) !important;
	border: 1.5px solid var(--gueta-rule) !important;
	border-radius: 8px !important;
	color: var(--gueta-ink) !important;
	flex: 1 1 220px;
	font-family: inherit;
	font-size: 16px !important;
	min-height: 52px;
	min-width: 0;
	padding: 0 16px !important;
	transition: border-color .4s ease;
}

.gueta-notify__email::placeholder {
	color: var(--gueta-soft);
}

.gueta-notify__email:focus {
	border-color: var(--gueta-ink) !important;
	outline: 0;
}

.gueta-notify__submit {
	background: var(--gueta-ink) !important;
	border: 0 !important;
	border-radius: 8px !important;
	color: var(--gueta-paper) !important;
	cursor: pointer;
	flex: 1 1 150px;
	font-family: inherit;
	font-size: 16px !important;
	font-weight: 700;
	min-height: 52px;
	padding: 0 24px !important;
	transition: filter .4s ease, opacity .4s ease;
}

.gueta-notify__submit:hover,
.gueta-notify__submit:focus {
	filter: brightness(1.35);
}

.gueta-notify__submit:focus-visible {
	outline: 2px solid var(--gueta-ink);
	outline-offset: 2px;
}

.gueta-notify.is-sending .gueta-notify__submit {
	cursor: progress;
	opacity: .55;
}

.gueta-notify__message {
	color: #1a7f37;
	font-size: 14px;
	font-weight: 500;
	margin: 0;
}

.gueta-notify__message:empty {
	display: none;
}

.gueta-notify__message.is-error {
	color: var(--gueta-accent);
}

/* Signed up: only the confirmation is left to say. */
.gueta-notify.is-done .gueta-notify__text,
.gueta-notify.is-done .gueta-notify__row {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.gueta-swatch,
	.gueta-qty,
	.gueta-notify__email,
	.gueta-notify__submit,
	.gueta-buy .single_add_to_cart_button {
		transition-duration: .01ms;
	}
}

/* -------------------------------------------------------------------------
 * The product page on a phone
 *
 * The template is built in Elementor, and its sections carry 100px of side
 * padding written for a desktop screen with no narrower value behind it. On a
 * 390px phone that left a 175px column: the gallery came out 155px square,
 * the two columns never stacked, and the pictures sat below the buy box
 * instead of above it.
 *
 * Everything here is scoped to the single product page and to narrow screens,
 * and everything is forced, because these are Elementor's own inline values.
 * ---------------------------------------------------------------------- */

@media (max-width: 1024px) {
	.single-product .elementor-section,
	.single-product .e-con {
		padding-inline: var(--gueta-gutter) !important;
	}

	.single-product .elementor-section {
		padding-block: 14px !important;
	}

	.single-product .elementor-container {
		max-width: 100% !important;
	}

	/* Columns stack and take the whole width rather than holding a desktop half. */
	.single-product .elementor-column {
		align-items: stretch !important;
		width: 100% !important;
	}

	.single-product .elementor-column > .elementor-widget-wrap {
		align-self: stretch !important;
		flex: 1 1 100% !important;
		min-width: 100% !important;
		width: 100% !important;
	}

	/*
	 * The pictures come first. They are in the same section as the title and
	 * the buy box, in the column that follows them, so the column is moved
	 * rather than the section.
	 */
	.single-product .elementor-container > .elementor-column:has(.gueta-gallery) {
		order: -1;
	}
}

/*
 * The theme puts the gallery's column first in the markup, so a phone draws
 * the pictures before the title and nothing is pushed down as the page
 * arrives. On a wide screen the columns are laid out from the other side,
 * which keeps the pictures on the left as the template has them.
 */
@media (min-width: 1025px) {
	.single-product .gueta-gallery-first > .elementor-container {
		flex-direction: row-reverse;
	}
}

/* -------------------------------------------------------------------------
 * The product rail on a phone
 *
 * With one and a half cards on screen instead of one, each card has two
 * thirds of the width it had, so the type and the padding inside it come down
 * to match. Without this the wording stays at desktop size in a narrower box
 * and wraps into a tower.
 *
 * The cards belong to a third party widget, so these are its class names.
 * ---------------------------------------------------------------------- */

@media (max-width: 1024px) {
	.smart-products-swiper .smart-product-card {
		padding: 10px;
	}

	.smart-products-swiper .smart-product-card .product-title,
	.smart-products-swiper .smart-product-card h3,
	.smart-products-swiper .smart-product-card h2 {
		font-size: 13px;
		line-height: 1.4;
	}

	.smart-products-swiper .smart-product-card .price,
	.smart-products-swiper .smart-product-card .woocommerce-Price-amount {
		font-size: 14px;
	}

	.smart-products-swiper .smart-product-card .button,
	.smart-products-swiper .smart-product-card .add_to_cart_button {
		font-size: 13px;
		min-height: 40px;
		padding: 0 12px;
	}
}

/* -------------------------------------------------------------------------
 * The card's own action button
 *
 * "לפרטים ורכישה" came in at 18px in a square box, which on a card two thirds
 * of its old width wrapped onto two lines and made the card taller than the
 * picture in it. At 14px it sits on one line, and the corner radius matches
 * the buttons everywhere else in the shop.
 *
 * The card belongs to a third party widget, so these are its class names, and
 * they are forced because its own sizes are written inline.
 * ---------------------------------------------------------------------- */

.product-card-action-btn {
	border-radius: 8px !important;
	min-height: 40px !important;
	padding: 0 14px !important;
}

.product-card-action-btn,
.product-card-action-btn span {
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
}

/* -------------------------------------------------------------------------
 * Small laptops
 *
 * The product template pads its sections by 100px a side and holds the
 * summary a further 100px from the gallery. On a 1280px screen that left the
 * name, the price and everything needed to buy with 440px to sit in, so the
 * name ran to three lines and the buying controls were pushed below the
 * fold. Both follow the screen here, and the summary gains some 120px.
 * ---------------------------------------------------------------------- */

@media (min-width: 1025px) and (max-width: 1599px) {
	.elementor-location-single .elementor-section.elementor-top-section:has(.elementor-widget-woocommerce-product-title),
	.elementor-location-single .elementor-section.elementor-top-section:has(.elementor-widget-woocommerce-breadcrumb),
	.elementor-location-single .elementor-section.elementor-top-section:has(.smart-product-card) {
		padding-inline: var(--gueta-gutter);
	}

	.elementor-location-single .elementor-column:has(> .elementor-widget-wrap > .elementor-widget-woocommerce-product-title) > .elementor-widget-wrap {
		margin-inline-end: clamp(20px, 2.5vw, 100px);
	}
}

/*
 * The cutting calculator's button: a border of the shop's orange running
 * into violet and blue that turns slowly round it, the way buttons that open
 * something AI-driven are drawn, with a soft glow of the same colours. The
 * button inside stays white, or sand under the pointer.
 *
 * The plugin styles the button with !important on an id selector, so these
 * rules start from body to outrank it. The turning needs @property, which
 * every current browser has; one without it shows the border standing still.
 */
@property --gueta-ai-angle {
	inherits: false;
	initial-value: 0deg;
	syntax: "<angle>";
}

body .gac-trigger-wrap button#gac-open-calculator.gac-open-calculator {
	--gueta-ai-fill: var(--gueta-paper, #ffffff);
	--gueta-ai-ring: conic-gradient(from var(--gueta-ai-angle), #f0591d, #ff9a5a, #8b5cf6, #3b82f6, #22c1c3, #f0591d);
	animation: gueta-ai-turn 4s linear infinite, gueta-ai-glow 4s ease-in-out infinite;
	background: linear-gradient(var(--gueta-ai-fill), var(--gueta-ai-fill)) padding-box, var(--gueta-ai-ring) border-box !important;
	border: 2px solid transparent !important;
	transition: box-shadow .3s ease, transform .2s ease !important;
}

body .gac-trigger-wrap button#gac-open-calculator.gac-open-calculator:hover {
	--gueta-ai-fill: var(--gueta-sand, #fafafa);
	background: linear-gradient(var(--gueta-ai-fill), var(--gueta-ai-fill)) padding-box, var(--gueta-ai-ring) border-box !important;
	border-color: transparent !important;
	transform: translateY(-1px);
}

@keyframes gueta-ai-turn {
	to {
		--gueta-ai-angle: 360deg;
	}
}

@keyframes gueta-ai-glow {
	0%,
	100% {
		box-shadow: 0 0 0 0 rgb(240 89 29 / 0%), 0 4px 14px -6px rgb(240 89 29 / 45%);
	}

	50% {
		box-shadow: 0 0 0 3px rgb(139 92 246 / 10%), 0 6px 20px -6px rgb(59 130 246 / 45%);
	}
}

@media (prefers-reduced-motion: reduce) {
	body .gac-trigger-wrap button#gac-open-calculator.gac-open-calculator {
		animation: none;
	}
}
