/* Gift-card catalog, safe design previews, and native WooCommerce product flow. */
.reread-shop-page-main {
	padding-bottom: clamp(56px, 8vw, 108px);
	background-color: #fff;
}

.reread-shop-cart-toolbar {
	position: sticky;
	top: 0;
	/* Below the header (10), menu backdrop (20) and drawer (30). */
	z-index: 5;
	width: 100%;
	border-bottom: 1px solid #d5d5d5;
	background: #eee;
	color: #111;
}

.reread-shop-cart-toolbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	box-sizing: border-box;
	min-height: 50px;
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding-inline: 28px;
}

.reread-shop-cart-toolbar__link {
	display: flex;
	flex-shrink: 0;
	margin-left: auto;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	padding: 8px 0;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.47;
	text-decoration: none;
}

.reread-shop-cart-toolbar__summary {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.reread-shop-cart-toolbar__icon,
.reread-shop-cart-toolbar__icon img {
	display: block;
	width: 20px;
	height: 20px;
}

.reread-shop-cart-toolbar__icon img {
	object-fit: contain;
}

.reread-shop-cart-toolbar__link:hover,
.reread-shop-cart-toolbar__link:focus-visible {
	text-decoration: underline;
}

.reread-shop-catalog,
.reread-shop-product,
.reread-shop-not-found {
	box-sizing: border-box;
	width: min(100% - 40px, 1180px);
	margin: 0 auto;
	color: #000;
	font-family: var(--wp--preset--font-family--body, Arial, sans-serif);
}

.reread-shop-catalog {
	width: min(100% - 48px, 1690px);
}

/* Do not replace WooCommerce or WPSWings markup on mapped, real products. */
.single-product div.product.product-type-wgm_gift_card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: start;
	gap: clamp(32px, 6vw, 84px);
	max-width: 1180px;
	margin: 28px auto 64px;
	padding-inline: 24px;
}

.single-product div.product.product-type-wgm_gift_card .woocommerce-product-gallery,
.single-product div.product.product-type-wgm_gift_card .summary {
	float: none;
	width: auto;
	min-width: 0;
	margin: 0;
}

.single-product div.product.product-type-wgm_gift_card .woocommerce-product-gallery {
	line-height: 0;
}

.single-product div.product.product-type-wgm_gift_card .woocommerce-product-gallery img {
	width: 100%;
	height: auto;
	object-fit: contain;
}

.single-product div.product.product-type-wgm_gift_card .summary > .product_title {
	font-family: var(--wp--preset--font-family--display, "156 Reader", sans-serif);
	font-size: clamp(28px, 3vw, 38px);
	font-weight: 700;
	line-height: 1.12;
}

.single-product div.product.product-type-wgm_gift_card .summary > .price {
	font-weight: 700;
}

.single-product div.product.product-type-wgm_gift_card .wps_wgm_added_wrapper {
	margin-block: 18px;
	padding: 18px;
	border: 1px solid #d2d2d2;
	border-radius: 14px;
}

.single-product div.product.product-type-wgm_gift_card .wps_wgm_section {
	margin-block: 0 14px;
}

.single-product div.product.product-type-wgm_gift_card .wps_wgm_section label,
.single-product div.product.product-type-wgm_gift_card .wps_wgc_label {
	display: block;
	margin-block: 0 5px;
	font-size: 13px;
	font-weight: 700;
}

.single-product div.product.product-type-wgm_gift_card .wps_wgm_added_wrapper input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]),
.single-product div.product.product-type-wgm_gift_card .wps_wgm_added_wrapper select,
.single-product div.product.product-type-wgm_gift_card .wps_wgm_added_wrapper textarea {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-height: 44px;
	padding: 9px 14px;
	border: 1px solid #111;
	border-radius: 999px;
	background: #fff;
	color: #111;
	font: inherit;
}

.single-product div.product.product-type-wgm_gift_card .wps_wgm_added_wrapper input[type="radio"],
.single-product div.product.product-type-wgm_gift_card .wps_wgm_added_wrapper input[type="checkbox"] {
	width: auto;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
}

.single-product div.product.product-type-wgm_gift_card .wps_wgm_added_wrapper textarea {
	min-height: 104px;
	border-radius: 16px;
}

.single-product div.product.product-type-wgm_gift_card .woocommerce-tabs,
.single-product div.product.product-type-wgm_gift_card .related,
.single-product div.product.product-type-wgm_gift_card .upsells {
	grid-column: 1 / -1;
	min-width: 0;
}

.reread-shop-native-product-notice {
	padding: 12px 14px;
	border: 1px solid #555;
	border-left: 4px solid #000;
	background: #f5f5f5;
	font-size: 13px;
	line-height: 1.45;
}

.reread-shop-catalog {
	padding-top: clamp(38px, 4.2vw, 76px);
}

.reread-shop-intro {
	max-width: 1050px;
	margin: 0 auto clamp(34px, 2.5vw, 48px);
	text-align: center;
}

.reread-shop-intro h1,
.reread-shop-product h1,
.reread-shop-product h2,
.reread-shop-benefit h2,
.reread-shop-live-preview h2 {
	font-family: var(--wp--preset--font-family--display, "156 Reader", sans-serif);
	font-weight: 700;
}

.reread-shop-intro h1 {
	margin: 0 0 clamp(20px, 2vw, 34px);
	font-size: clamp(44px, 4.2vw, 80px);
	line-height: 1.05;
}

.reread-shop-intro p {
	margin: 10px 0;
	font-size: clamp(16px, 1.1vw, 21px);
	line-height: 1.45;
}

.reread-shop-intro .reread-shop-intro__lead {
	font-size: clamp(22px, 1.8vw, 34px);
	font-weight: 700;
}

.reread-shop-design-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(70px, 7vw, 128px) clamp(24px, 9.7vw, 186px);
}

.reread-shop-design-card {
	min-width: 0;
	text-align: center;
}

.reread-shop-design-card__art {
	display: block;
	width: min(100%, 284px);
	margin: 0 auto 18px;
	background: #f6f6f6;
	line-height: 0;
}

.reread-shop-design-card__art img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 284 / 400;
	object-fit: contain;
}

.reread-shop-design-card h2 {
	display: flex;
	min-height: 58px;
	align-items: flex-start;
	justify-content: center;
	margin: 0 0 18px;
	font-size: clamp(15px, 1.1vw, 21px);
	font-weight: 600;
	line-height: 1.3;
}

.reread-shop-button {
	display: inline-flex;
	min-height: 38px;
	align-items: center;
	justify-content: center;
	padding: 8px 28px;
	border: 1px solid #000;
	border-radius: 999px;
	background: #000;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.reread-shop-button:hover,
.reread-shop-button:focus-visible {
	background: #fff;
	color: #000;
}

.reread-shop-button:disabled {
	background: #000;
	color: #fff;
	cursor: not-allowed;
	opacity: 0.55;
}

.reread-shop-button--card {
	width: min(100%, 270px);
	min-height: 40px;
	padding: 8px 20px;
	font-size: 16px;
}

.reread-shop-card-content {
	margin: clamp(96px, 10vw, 180px) 0 0;
	padding: clamp(24px, 3vw, 48px) 0;
}

.reread-shop-payments {
	width: min(100%, 760px);
	margin: 0 auto;
	padding-top: 10px;
	text-align: center;
}

.reread-shop-payments h2 {
	margin: 0 0 24px;
	font-family: var(--wp--preset--font-family--display, "156 Reader", sans-serif);
	font-size: clamp(18px, 1.3vw, 25px);
}

.reread-shop-payments p {
	margin: 0 auto;
	max-width: 760px;
	font-size: clamp(14px, 1vw, 18px);
	line-height: 1.5;
}

.reread-shop-payments__logos {
	display: flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	gap: clamp(24px, 4vw, 70px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.reread-shop-payments__logos img {
	display: block;
	width: auto;
	max-width: 130px;
	height: 42px;
}

.reread-shop-benefits {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	margin: 0;
}

.reread-shop-benefit {
	display: flex;
	min-height: 160px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 20px clamp(18px, 2.5vw, 42px);
	text-align: center;
}

.reread-shop-benefit + .reread-shop-benefit {
	border-left: 1px solid #b6b6b6;
}

.reread-shop-benefit h2 {
	max-width: 300px;
	margin: 0 0 16px;
	font-size: clamp(18px, 1.5vw, 27px);
	line-height: 1.16;
}

.reread-shop-benefit p {
	max-width: 340px;
	margin: 0;
	font-size: clamp(14px, 1vw, 18px);
	line-height: 1.4;
}

.reread-shop-product {
	padding-top: 13px;
}

.reread-shop-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 24px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
}

.reread-shop-breadcrumbs a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.reread-shop-product__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: start;
	gap: clamp(42px, 7vw, 100px);
	max-width: 1040px;
	margin: 0 auto;
}

.reread-shop-product__art-column {
	min-width: 0;
}

.reread-shop-product__art {
	width: min(100%, 430px);
	margin: 0 auto;
	line-height: 0;
}

.reread-shop-product__art img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
}

.reread-shop-live-preview {
	width: min(100%, 430px);
	margin: 18px auto 0;
	padding: 17px 20px;
	border: 1px solid #d2d2d2;
	border-radius: 14px;
	font-size: 13px;
	line-height: 1.45;
}

.reread-shop-live-preview h2 {
	margin: 0 0 11px;
	font-size: 17px;
}

.reread-shop-live-preview p {
	margin: 6px 0;
	word-break: break-word;
}

.reread-shop-live-preview__message {
	white-space: pre-wrap;
}

.reread-shop-product__details {
	min-width: 0;
}

.reread-shop-product__details > h1 {
	margin: 0 0 5px;
	font-size: clamp(26px, 3vw, 34px);
	line-height: 1.1;
}

.reread-shop-product__details > h2 {
	margin: 0 0 15px;
	font-size: clamp(25px, 3vw, 34px);
	line-height: 1.12;
}

.reread-shop-price-range {
	margin: 0 0 14px;
	font-size: 15px;
	font-weight: 700;
}

.reread-shop-preview-notice {
	padding: 12px 14px;
	border: 1px solid #555;
	border-left: 4px solid #000;
	background: #f5f5f5;
	font-size: 13px;
	line-height: 1.45;
}

.reread-shop-preview-fields {
	margin-top: 16px;
}

.reread-shop-field {
	margin: 0 0 13px;
}

.reread-shop-field label,
.reread-shop-fieldset legend {
	display: block;
	margin: 0 0 5px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.35;
}

.reread-shop-field input,
.reread-shop-field select,
.reread-shop-field textarea {
	appearance: none;
	box-sizing: border-box;
	width: 100%;
	min-height: 42px;
	padding: 9px 15px;
	border: 1px solid #000;
	border-radius: 999px;
	background-color: #fff;
	color: #000;
	font: inherit;
	font-size: 13px;
	line-height: 1.35;
}

.reread-shop-field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='m1 1 6 6 6-6' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");
	background-position: right 14px center;
	background-repeat: no-repeat;
	padding-right: 38px;
}

.reread-shop-field textarea {
	min-height: 96px;
	border-radius: 18px;
	resize: vertical;
}

.reread-shop-quantity {
	box-sizing: border-box;
	width: 48px;
	min-height: 38px;
	padding: 4px;
	border: 1px solid #000;
	border-radius: 8px;
	background: #fff;
	text-align: center;
}

.reread-shop-field input:focus-visible,
.reread-shop-field select:focus-visible,
.reread-shop-field textarea:focus-visible,
.reread-shop-quantity:focus-visible {
	outline: 2px solid #000;
	outline-offset: 2px;
}

.reread-shop-fieldset {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.reread-shop-character-count {
	margin: 4px 2px 0;
	font-size: 11px;
	text-align: right;
}

.reread-shop-product__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 20px;
}

.reread-shop-product__actions .reread-shop-button {
	flex: 1;
	min-height: 42px;
}

.reread-shop-disabled-reason {
	margin: 8px 0 0;
	font-size: 11px;
	line-height: 1.4;
}

.reread-shop-not-found {
	padding-block: 70px;
	text-align: center;
}

@media (max-width: 900px) {
	.reread-shop-catalog {
		width: min(100% - 40px, 760px);
	}

	.reread-shop-design-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 58px 30px;
	}

	.reread-shop-design-card__art {
		width: min(100%, 284px);
	}

	.reread-shop-design-card h2 {
		font-size: clamp(14px, 2vw, 18px);
	}

	.reread-shop-card-content__illustration {
		width: 140px;
	}

	.reread-shop-product__layout {
		gap: 34px;
	}
}

@media (max-width: 767px) {
	.reread-shop-cart-toolbar__inner {
		gap: 12px;
		padding-inline: 14px;
	}

	.reread-shop-cart-toolbar__link {
		font-size: 10px;
		gap: 6px;
	}
}

@media (max-width: 600px) {

	.reread-shop-catalog,
	.reread-shop-product,
	.reread-shop-not-found {
		width: min(100% - 28px, 480px);
	}

	.reread-shop-catalog {
		padding-top: 30px;
	}

	.reread-shop-intro {
		margin-bottom: 34px;
	}

	.reread-shop-intro h1 {
		font-size: clamp(38px, 10vw, 50px);
	}

	.reread-shop-intro .reread-shop-intro__lead {
		font-size: 20px;
	}

	.reread-shop-intro p {
		font-size: 14px;
	}

	.reread-shop-design-grid {
		gap: 38px 14px;
	}

	.reread-shop-design-card__art {
		width: min(100%, 220px);
		margin-bottom: 10px;
	}

	.reread-shop-design-card h2 {
		min-height: 50px;
		margin-bottom: 10px;
		font-size: 12px;
		line-height: 1.3;
	}

	.reread-shop-button--card {
		width: 100%;
		min-height: 38px;
		padding: 6px 8px;
		font-size: 12px;
	}

	.reread-shop-card-content {
		margin-top: 72px;
		padding: 20px 0;
	}

	.reread-shop-payments h2 {
		margin-bottom: 14px;
	}

	.reread-shop-payments__logos {
		flex-wrap: wrap;
		gap: 16px 22px;
	}

	.reread-shop-payments__logos img {
		max-width: 84px;
		height: 28px;
	}

	.reread-shop-product {
		padding-top: 10px;
	}

	.reread-shop-breadcrumbs {
		margin-bottom: 17px;
		font-size: 10px;
	}

	.reread-shop-product__layout {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.reread-shop-product__art {
		width: min(100%, 350px);
	}

	.reread-shop-live-preview {
		width: auto;
	}

	.reread-shop-product__details > h1,
	.reread-shop-product__details > h2 {
		font-size: 27px;
	}
}

@media (max-width: 767px) {
	.single-product div.product.product-type-wgm_gift_card {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
		margin-top: 16px;
		padding-inline: 14px;
	}

	.single-product div.product.product-type-wgm_gift_card .woocommerce-tabs,
	.single-product div.product.product-type-wgm_gift_card .related,
	.single-product div.product.product-type-wgm_gift_card .upsells {
		grid-column: 1;
	}

	.single-product div.product.product-type-wgm_gift_card .wps_wgm_added_wrapper {
		padding: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {

	.reread-shop-button {
		transition: none;
	}
}
