/* PALMFIT Store 1.4.0 — Size Picker + product page design */

/* The theme's own size selector, quantity box and Add to cart button are
   replaced by the picker on the main product form only. Colour swatches stay. */
body.pfsp-on form.variations_form:has(.pfsp) table.variations,
body.pfsp-on form.variations_form:has(.pfsp) .rey-cartBtnQty,
body.pfsp-on form.variations_form:has(.pfsp) .single_variation,
body.pfsp-on form.variations_form:has(.pfsp) .reset_variations {
	display: none !important;
}
/* Same rule for browsers without :has() (the script adds .pfsp-form). */
form.variations_form.pfsp-form table.variations,
form.variations_form.pfsp-form .rey-cartBtnQty,
form.variations_form.pfsp-form .single_variation,
form.variations_form.pfsp-form .reset_variations {
	display: none !important;
}

.pfsp {
	--pfsp-ink: #212322;
	--pfsp-line: #D0D3D4;
	--pfsp-muted: #5E666B;
	--pfsp-mist: #F3F4F4;
	--pfsp-red: #D51829;
	margin: 0 0 22px;
	font-family: inherit;
	color: var(--pfsp-ink);
}

.pfsp-head {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin: 0 0 10px;
	flex-wrap: wrap;
}

.pfsp-label {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .01em;
}

.pfsp-note {
	font-size: 13px;
	font-weight: 600;
	color: var(--pfsp-red);
}

.pfsp .pfsp-guide {
	margin: 0 0 0 auto;
	padding: 0;
	border: 0;
	background: none;
	color: var(--pfsp-ink);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-transform: none;
	letter-spacing: 0;
	min-height: 0;
	height: auto;
	box-shadow: none;
	cursor: pointer;
}

.pfsp .pfsp-guide[hidden] { display: none; }

.pfsp-sizes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
	gap: 8px;
}

.pfsp .pfsp-size {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	min-width: 0;
	width: 100%;
	height: 48px;
	min-height: 0;
	margin: 0;
	padding: 0 4px;
	border: 1.5px solid var(--pfsp-ink);
	border-radius: 10px;
	background: var(--pfsp-ink);
	color: #fff;
	font: inherit;
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	box-shadow: none;
	cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
}

.pfsp .pfsp-size:hover:not(:disabled) {
	border-color: #ED1B2E;
	background: #ED1B2E;
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 8px 16px rgba(237, 27, 46, .25);
}

.pfsp .pfsp-size:active:not(:disabled) {
	transform: none;
	box-shadow: none;
}

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

.pfsp .pfsp-size:disabled {
	background: transparent;
	border: 1.5px dashed #E3E5E6;
	color: #B5BBBE;
	text-decoration: line-through;
	cursor: not-allowed;
}

.pfsp .pfsp-size.is-busy {
	cursor: progress;
	opacity: .6;
}

.pfsp .pfsp-size.is-added,
.pfsp .pfsp-size.is-added:hover:not(:disabled) {
	border-color: #1E6B45;
	background: #1E6B45;
	color: #fff;
	font-size: 14px;
	box-shadow: none;
}

.pfsp-in {
	font-size: 11px;
	font-weight: 600;
	color: #C1C6C8;
}

.pfsp-in:empty { display: none; }

.pfsp .pfsp-size:hover .pfsp-in,
.pfsp .pfsp-size.is-added .pfsp-in { color: #fff; }

/* Colour tiles (Merchlist swatches): compact, one row; the chosen colour is named once above them. */
.pfsp-colour {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin: 8px 0 12px;
	font-size: 14px;
	line-height: 1.3;
	color: var(--pfsp-ink, #212322);
}

.pfsp-colour b { font-weight: 700; }
.pfsp-colour span { color: #5E666B; }

body.pfsp-on .merchlist-merge-swatches {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 6px !important;
	margin: 0 0 4px !important;
}

body.pfsp-on .merchlist-merge-swatches__item {
	position: relative;
	flex: 0 0 calc((100% - 54px) / 10) !important;
	max-width: 44px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 4px !important;
	background: #E7E7E7;
}

body.pfsp-on .merchlist-merge-swatches__item img {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 44 / 56;
	object-fit: cover !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 4px !important;
}

body.pfsp-on .merchlist-merge-swatches__item.is-active {
	box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #212322 !important;
}

body.pfsp-on .merchlist-merge-swatches__label {
	display: none !important;
}

.pfsp-msg {
	margin: 8px 0 0;
	min-height: 0;
	font-size: 13px;
	color: var(--pfsp-muted);
}

.pfsp-msg:empty { display: none; }
.pfsp-msg.is-error { color: var(--pfsp-red); font-weight: 600; }

@media (max-width: 767px) {
	body.pfsp-on .merchlist-merge-swatches { gap: 8px !important; }
	body.pfsp-on .merchlist-merge-swatches__item { flex: 0 0 52px !important; max-width: 52px !important; }
	body.pfsp-on .merchlist-merge-swatches__item img { aspect-ratio: 52 / 66; }
}

/* Sticky bar: the same size buttons pinned to the bottom once the main sizes scroll out of view.
   The theme's own "Select options" sticky bar is hidden on these products. */
body.pfsp-on .rey-stickyAtc-wrapper,
body.pfsb-has .rey-stickyAtc-wrapper {
	display: none !important;
}

body.pfsb-shown {
	padding-bottom: var(--pfsb-h, 0px) !important;
}

.pfsb {
	--pfsp-ink: #212322;
	--pfsp-muted: #5E666B;
	--pfsp-red: #D51829;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9990;
	box-sizing: border-box;
	padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
	background: #fff;
	border-top: 1px solid #D0D3D4;
	box-shadow: 0 -8px 24px rgba(33, 35, 34, .08);
	color: var(--pfsp-ink);
	font-family: inherit;
	transform: translateY(110%);
	visibility: hidden;
	transition: transform .25s ease, visibility 0s linear .25s;
}

.pfsb[hidden] { display: none; }

.pfsb.is-shown {
	transform: none;
	visibility: visible;
	transition: transform .25s ease, visibility 0s;
}

.pfsb *,
.pfsb *::before,
.pfsb *::after { box-sizing: border-box; }

.pfsb-in {
	display: flex;
	align-items: center;
	gap: 16px;
	max-width: 1410px;
	margin: 0 auto;
}

.pfsb .pfsb-img {
	flex: none;
	display: block;
	width: 40px;
	height: 53px;
	margin: 0;
	border-radius: 6px;
	object-fit: cover;
	background: #E7E7E7;
}

.pfsb-t {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
	flex: 1 1 auto;
	line-height: 1.25;
}

.pfsb-name {
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pfsb-price,
.pfsb-price * {
	font-size: 14px;
	color: #454B4F;
}

.pfsb-price del { opacity: .7; }
.pfsb-price ins { text-decoration: none; color: var(--pfsp-red); font-weight: 600; }

.pfsb-sizes {
	flex: none;
	display: flex;
	gap: 8px;
}

.pfsb .pfsp-size {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	width: 64px;
	min-width: 0;
	height: 44px;
	min-height: 0;
	margin: 0;
	padding: 0 4px;
	border: 1.5px solid var(--pfsp-ink);
	border-radius: 10px;
	background: var(--pfsp-ink);
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	box-shadow: none;
	cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}

.pfsb .pfsp-size:hover:not(:disabled) {
	border-color: #ED1B2E;
	background: #ED1B2E;
	color: #fff;
	transform: translateY(-2px);
}

.pfsb .pfsp-size:focus-visible { outline: 2px solid var(--pfsp-ink); outline-offset: 2px; }

.pfsb .pfsp-size:disabled {
	background: transparent;
	border: 1.5px dashed #8E969A;
	color: #7A8287;
	text-decoration: line-through;
	cursor: not-allowed;
}

.pfsb .pfsp-size.is-busy { cursor: progress; opacity: .6; }

.pfsb .pfsp-size.is-added,
.pfsb .pfsp-size.is-added:hover:not(:disabled) {
	border-color: #1E6B45;
	background: #1E6B45;
	color: #fff;
	font-size: 12px;
}

.pfsb .pfsp-in {
	font-size: 10px;
	font-weight: 600;
	color: #C1C6C8;
}

.pfsb .pfsp-in:empty { display: none; }
.pfsb .pfsp-size:hover .pfsp-in { color: #fff; }

.pfsb .pfsp-msg {
	max-width: 1410px;
	margin: 8px auto 0;
	text-align: right;
}

@media (max-width: 767px) {
	.pfsb { padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); }
	.pfsb-in {
		flex-wrap: wrap;
		gap: 8px 12px;
	}
	.pfsb .pfsb-img { display: none; }
	.pfsb-t {
		flex-direction: row;
		align-items: baseline;
		justify-content: space-between;
		gap: 12px;
		width: 100%;
	}
	.pfsb-name { font-size: 14px; }
	.pfsb-price { flex: none; }
	.pfsb-price,
	.pfsb-price * { font-size: 13px; }
	.pfsb-sizes {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
		width: 100%;
		gap: 6px;
	}
	.pfsb .pfsp-size { width: 100%; }
	.pfsb .pfsp-size:hover:not(:disabled) { transform: none; }
	.pfsb .pfsp-msg { text-align: left; margin-top: 6px; }
}

/* Sold-out sizes: tap to leave an email. */
.pfsp .pfsp-size.is-out {
	background: transparent;
	border: 1.5px dashed #8E969A;
	color: #7A8287;
	text-decoration: line-through;
	box-shadow: none;
	cursor: pointer;
	transform: none;
}
.pfsp .pfsp-size.is-out:hover { background: rgba(255, 255, 255, .5); border-color: #212322; color: #212322; transform: none; box-shadow: none; }
.pfsp .pfsp-size.is-out.is-sel { border: 1.5px solid #212322; color: #212322; }

.pfsp-ntf { margin: 12px 0 0; padding: 14px; border-radius: 12px; background: #F3F4F4; }
.pfsp-ntf[hidden] { display: none; }
.pfsp-ntf p { margin: 0 0 10px; font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.pfsp-ntf .pfsp-ntf-ok { margin: 0; color: #1E6B45; }
.pfsp-ntf .pfsp-ntf-e { margin: 8px 0 0; color: #D51829; font-weight: 600; }
.pfsp-ntf .pfsp-ntf-e:empty { display: none; }
.pfsp-ntf .pfsp-ntf-f { display: flex; gap: 8px; margin: 0; }
.pfsp-ntf input[type="email"] { flex: 1; min-width: 0; height: 44px; margin: 0; padding: 0 12px; border: 1.5px solid #D0D3D4; border-radius: 10px; background: #fff; font: inherit; font-size: 14px; color: #212322; box-shadow: none; }
.pfsp-ntf input[type="email"]:focus { border-color: #212322; outline: none; }
.pfsp-ntf button { flex: none; height: 44px; min-height: 0; margin: 0; padding: 0 16px; border: 0; border-radius: 10px; background: #212322; color: #fff; font: inherit; font-size: 13.5px; font-weight: 700; letter-spacing: 0; text-transform: none; cursor: pointer; }
.pfsp-ntf button:hover { background: #ED1B2E; }
.pfsp-ntf button:disabled { opacity: .6; cursor: progress; }

/* Delivery promise under the sizes. */
.pfsp-ship {
	position: relative;
	display: inline-block;
	max-width: 100%;
	box-sizing: border-box;
	margin: 12px 0 0;
	padding: 8px 14px 8px 30px;
	border-radius: 18px;
	background: rgba(30, 107, 69, .08);
	border: 1px solid rgba(30, 107, 69, .2);
	font-size: 13.5px;
	line-height: 1.35;
	color: #212322;
}
.pfsp-ship::before { content: ""; position: absolute; left: 12px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #1E6B45; box-shadow: 0 0 0 4px rgba(30, 107, 69, .15); }
.pfsp-ship b { font-weight: 700; }

/* Size guide panel. */
html.pfsg-open { overflow: hidden; }
.pfsg { position: fixed; inset: 0; z-index: 100000; }
.pfsg[hidden] { display: none; }
.pfsg-dim { position: absolute; inset: 0; background: rgba(33, 35, 34, .28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s; }
.pfsg-pn { position: absolute; top: 12px; right: 12px; bottom: 12px; width: min(520px, calc(100% - 24px)); display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(26px) saturate(150%); backdrop-filter: blur(26px) saturate(150%); border: 1px solid rgba(255, 255, 255, .95); box-shadow: 0 30px 80px rgba(33, 35, 34, .25); transform: translateX(24px); opacity: 0; transition: transform .22s ease, opacity .22s ease; }
.pfsg.is-open .pfsg-dim { opacity: 1; }
.pfsg.is-open .pfsg-pn { transform: none; opacity: 1; }
.pfsg-hd { display: flex; justify-content: space-between; align-items: center; height: 60px; padding: 0 12px 0 24px; border-bottom: 1px solid rgba(33, 35, 34, .08); font-size: 16px; font-weight: 700; color: #212322; }
.pfsg-x { width: 40px; height: 40px; min-height: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #212322; font-size: 18px; line-height: 40px; cursor: pointer; }
.pfsg-x:hover { background: rgba(33, 35, 34, .06); }
.pfsg-bd { flex: 1; overflow-y: auto; padding: 16px 24px 24px; }
.pfsg-bd img { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 12px; }
@media (max-width: 767px) {
	.pfsg-pn { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; height: 82vh; transform: translateY(24px); }
}

/* ================================================================== *
 * Product page design — glass. Product pages only (body.pf-glass).
 * The glow takes its colour from the product photo (--pf-tint).
 * ================================================================== */
body.pf-glass { --pf-tint: 120, 124, 128; }
body.pf-glass .rey-productSummary {
	background:
		radial-gradient(620px 540px at 79% 30%, rgba(var(--pf-tint), .30), transparent 70%) fixed,
		radial-gradient(520px 460px at 97% 82%, rgba(237, 27, 46, .10), transparent 70%) fixed,
		radial-gradient(760px 620px at 56% 96%, rgba(var(--pf-tint), .15), transparent 70%) fixed,
		linear-gradient(180deg, #F8F8F9, #F1F1F3) fixed;
}
/* Header bar: frosted. */
body.pf-glass .rey-siteHeader .elementor-element-8e65681,
body.pf-glass .rey-stickyContent .elementor-element-8e65681 {
	background-color: rgba(255, 255, 255, .6) !important;
	-webkit-backdrop-filter: blur(18px) saturate(160%);
	backdrop-filter: blur(18px) saturate(160%);
	border-bottom: 1px solid rgba(255, 255, 255, .75);
	box-shadow: 0 1px 0 rgba(33, 35, 34, .06);
}
/* Photos. */
body.pf-glass .woocommerce-product-gallery__image { border-radius: 18px !important; box-shadow: 0 18px 40px rgba(33, 35, 34, .08); }
/* Buy area: frosted card. */
body.pf-glass .rey-innerSummary {
	padding: 28px 28px 22px;
	border-radius: 24px;
	background: linear-gradient(135deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .5));
	-webkit-backdrop-filter: blur(24px) saturate(150%);
	backdrop-filter: blur(24px) saturate(150%);
	border: 1px solid rgba(255, 255, 255, .9);
	box-shadow: 0 24px 60px rgba(33, 35, 34, .10), inset 0 1px 0 rgba(255, 255, 255, .95);
}
/* Size buttons: graphite. */
body.pf-glass .pfsp .pfsp-size:not(.is-out):not(:disabled),
body.pf-glass .pfsb .pfsp-size:not(:disabled),
body.pf-glass .pfmo .pfmo-size:not(:disabled) {
	border: 1px solid #121313;
	background: linear-gradient(180deg, #34383A, #1A1C1B);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 6px 14px rgba(33, 35, 34, .16);
}
body.pf-glass .pfsp .pfsp-size:not(.is-out):not(:disabled):hover,
body.pf-glass .pfsb .pfsp-size:not(:disabled):hover,
body.pf-glass .pfmo .pfmo-size:not(:disabled):hover {
	border-color: #B8131F;
	background: linear-gradient(180deg, #F5414F, #D51829);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 22px rgba(237, 27, 46, .30);
}
body.pf-glass .pfsp .pfsp-size.is-added,
body.pf-glass .pfsp .pfsp-size.is-added:hover,
body.pf-glass .pfsb .pfsp-size.is-added,
body.pf-glass .pfsb .pfsp-size.is-added:hover,
body.pf-glass .pfmo .pfmo-size.is-added,
body.pf-glass .pfmo .pfmo-size.is-added:hover {
	border-color: #16573A;
	background: linear-gradient(180deg, #2A8458, #1E6B45);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 8px 18px rgba(30, 107, 69, .28);
}
body.pf-glass .pfsp .pfsp-size.is-out { background: rgba(255, 255, 255, .4); }
body.pf-glass .pfsp-ntf { background: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .9); }
/* Colour tiles. */
body.pf-glass .merchlist-merge-swatches__item,
body.pf-glass .merchlist-merge-swatches__item img { border-radius: 8px !important; }
body.pf-glass .merchlist-merge-swatches__item { box-shadow: 0 4px 10px rgba(33, 35, 34, .08); }
body.pf-glass .merchlist-merge-swatches__item.is-active { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #212322, 0 6px 14px rgba(33, 35, 34, .16) !important; }
/* Match the outfit: frosted, keeps its dark border and red heading. */
body.pf-glass .pfmo {
	border-radius: 20px;
	background: linear-gradient(135deg, rgba(255, 255, 255, .7), rgba(243, 244, 244, .55));
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	box-shadow: 0 14px 34px rgba(33, 35, 34, .08), inset 0 1px 0 rgba(255, 255, 255, .9);
}
body.pf-glass .pfmo-img { border-radius: 12px; }
body.pf-glass .pfmo .pfmo-dot,
body.pf-glass .pfmo .pfmo-dot img { border-radius: 8px; }
/* Sections: softer lines. */
body.pf-glass .rey-summaryAcc-accItem { border-color: rgba(33, 35, 34, .1) !important; }
/* Reviews row hidden until the product has a review. */
body.pf-noreviews .rey-summaryAcc-accItem.--reviews,
body.pf-noreviews #acctab-reviews { display: none !important; }
/* SKU inside Product Information. */
.pf-sku-moved { margin: 12px 0 0 !important; padding: 0 !important; border: 0 !important; font-size: 12.5px; color: #7A8287; }
/* Sticky size bar: floating frosted bar. */
body.pf-glass .pfsb {
	left: 50%;
	right: auto;
	bottom: 16px;
	width: min(1120px, calc(100% - 32px));
	margin-left: calc(min(1120px, calc(100% - 32px)) / -2);
	padding: 10px 12px;
	border: 1px solid rgba(255, 255, 255, .9);
	border-radius: 20px;
	background: rgba(255, 255, 255, .66);
	-webkit-backdrop-filter: blur(22px) saturate(160%);
	backdrop-filter: blur(22px) saturate(160%);
	box-shadow: 0 18px 50px rgba(33, 35, 34, .20), inset 0 1px 0 rgba(255, 255, 255, .95);
	transform: translateY(140%);
}
body.pf-glass .pfsb.is-shown { transform: none; }
body.pf-glass .pfsb .pfsb-img { border-radius: 10px; }
body.pf-glass.pfsb-shown { padding-bottom: calc(var(--pfsb-h, 0px) + 24px) !important; }

@media (max-width: 767px) {
	body.pf-glass .rey-innerSummary { padding: 18px 16px 16px; border-radius: 24px; }
	body.pf-glass .pfsb { bottom: 10px; width: calc(100% - 20px); margin-left: calc((100% - 20px) / -2); padding: 10px 12px 12px; }
	body.pf-glass section.related > h2,
	body.pf-glass .rey-recentlyViewed > h2 { padding-left: 12px; padding-right: 12px; }
}

/* Phones: colour swatches keep one row inside the card. */
@media (max-width: 767px) {
	body.pf-glass .merchlist-merge-swatches { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); }
	body.pf-glass .merchlist-merge-swatches__item { width: auto !important; flex: none !important; min-width: 0; }
	body.pf-glass .merchlist-merge-swatches__item img { width: 100% !important; height: auto !important; }
}
