/**
 * Social Tap Shop: customise drawer, cart drawer, checkout modal, toast.
 *
 * Ported from the client design. Colours read the Elementor Kit globals with the design's
 * values as fallbacks. Everything is scoped to #st-shop: the single ID raises specificity
 * above theme/Kit rules (e.g. ".elementor-kit-7 button:hover", "…input:not([type=button])"),
 * and the element resets use :where() so component classes always win over them.
 */

#st-shop {
	--st-ink: var(--e-global-color-secondary, #17191d);
	--st-plate: var(--e-global-color-plate, #1f2226);
	--st-plate-2: var(--e-global-color-plate2, #262a2f);
	--st-plate-3: var(--e-global-color-plate3, #2e3238);
	--st-line: var(--e-global-color-line, #eceef21a);
	--st-line-2: var(--e-global-color-line2, #eceef22e);
	--st-text: var(--e-global-color-primary, #f1f3f5);
	--st-muted: var(--e-global-color-text, #a6acb6);
	/* Fine print sits on Plate inside the drawers, where the Kit "Dim" (#7c828c) is only 4.1:1; "Muted" passes AA (7.2:1). */
	--st-dim: var(--e-global-color-text, #a6acb6);
	--st-label: var(--e-global-color-label, #c8ccd3);
	--st-alert: var(--e-global-color-alert, #e5484d);
	--st-error: var(--e-global-color-error, #ff8a8e);
	--st-onplat: var(--e-global-color-onplat, #0a0b0d);
	--st-plat: linear-gradient(135deg, #f8f9fb 0%, #c3c8d0 42%, #eef0f3 68%, #a4aab4 100%);
	--st-r-lg: 28px;
	--st-r-md: 18px;
	--st-r-sm: 12px;
	--st-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
	--st-font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
	--st-font-head: "Sora", "Archivo", system-ui, sans-serif;

	color: var(--st-text);
	font-family: var(--st-font);
	font-size: 17px;
	font-stretch: 100%;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ---------- resets (zero inner specificity) ---------- */

#st-shop :where(*, *::before, *::after) {
	box-sizing: border-box;
}

#st-shop :where(h2, h3, h4, p, ul, figure) {
	margin: 0;
	padding: 0;
}

#st-shop :where(ul) {
	list-style: none;
}

#st-shop :where(img) {
	display: block;
	max-width: 100%;
	height: auto;
}

#st-shop :where(a) {
	color: inherit;
}

#st-shop :where(button),
#st-shop :where(button):where(:hover, :focus, :active) {
	appearance: none;
	margin: 0;
	padding: 0;
	min-height: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	line-height: inherit;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
}

#st-shop :where(input, textarea) {
	margin: 0;
	font: inherit;
	letter-spacing: normal;
	text-transform: none;
}

#st-shop [hidden] {
	display: none !important;
}

#st-shop :focus-visible {
	outline: 2px solid var(--st-text);
	outline-offset: 3px;
}

#st-shop .st-sprite {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

/* ---------- buttons ---------- */

#st-shop .st-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 52px;
	padding: 0 26px;
	border: 0;
	border-radius: 999px;
	font-family: var(--st-font);
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: transform 0.2s var(--st-ease), background 0.2s, box-shadow 0.2s;
}

#st-shop .st-btn:active {
	transform: scale(0.97);
}

#st-shop .st-btn-plat,
#st-shop .st-btn-plat:focus {
	background: var(--st-plat);
	color: var(--st-onplat);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 10px 30px -12px rgba(220, 225, 232, 0.5);
}

#st-shop .st-btn-plat:hover {
	background: var(--st-plat);
	color: var(--st-onplat);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 14px 40px -10px rgba(220, 225, 232, 0.7);
}

#st-shop .st-btn-ghost,
#st-shop .st-btn-ghost:focus {
	background: transparent;
	color: var(--st-text);
	box-shadow: inset 0 0 0 1px var(--st-line-2);
}

#st-shop .st-btn-ghost:hover {
	background: rgba(255, 255, 255, 0.05);
	color: var(--st-text);
	box-shadow: inset 0 0 0 1px var(--st-line-2);
}

#st-shop .st-btn[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
}

#st-shop .st-btn-block {
	width: 100%;
}

#st-shop .st-grow {
	flex: 1;
}

#st-shop .st-linkbtn,
#st-shop .st-linkbtn:hover,
#st-shop .st-linkbtn:focus {
	padding: 0;
	background: none;
	border: 0;
	color: var(--st-muted);
	font-size: 13.5px;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

#st-shop .st-linkbtn:hover {
	color: var(--st-text);
}

/* ---------- scrim, drawers, modal ---------- */

#st-shop .st-scrim {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(0, 0, 0, 0.6);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.3s, visibility 0s linear 0.3s;
}

#st-shop .st-scrim.is-on {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition: opacity 0.3s, visibility 0s;
}

#st-shop .st-drawer {
	position: fixed;
	top: 0;
	bottom: 0;
	inset-inline-end: 0;
	z-index: 100001;
	display: flex;
	flex-direction: column;
	width: min(560px, 100%);
	margin: 0;
	background: var(--st-plate);
	border-inline-start: 1px solid var(--st-line);
	color: var(--st-text);
	transform: translateX(100%);
	visibility: hidden;
	transition: transform 0.45s var(--st-ease), visibility 0s linear 0.45s;
}

[dir="rtl"] #st-shop .st-drawer {
	transform: translateX(-100%);
}

#st-shop .st-drawer.is-open {
	transform: none;
	visibility: visible;
	transition: transform 0.45s var(--st-ease), visibility 0s;
}

#st-shop .st-drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 24px;
	border-bottom: 1px solid var(--st-line);
}

#st-shop .st-drawer-title,
#st-shop .st-modal-title {
	margin: 0;
	color: var(--st-text);
	font-family: var(--st-font-head);
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.02;
	text-transform: none;
}

#st-shop .st-drawer-title:focus,
#st-shop .st-modal-title:focus {
	outline: none;
}

#st-shop .st-x,
#st-shop .st-x:hover,
#st-shop .st-x:focus {
	display: grid;
	place-items: center;
	flex: none;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--st-line-2);
	border-radius: 50%;
	background: none;
	color: var(--st-text);
	cursor: pointer;
}

#st-shop .st-x:hover {
	background: rgba(255, 255, 255, 0.05);
}

#st-shop .st-drawer-body {
	flex: 1;
	margin: 0;
	padding: 0 24px 28px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

#st-shop .st-drawer-foot {
	padding: 18px 24px;
	border-top: 1px solid var(--st-line);
	background: var(--st-plate);
}

#st-shop .st-modal {
	position: fixed;
	inset: 0;
	z-index: 100002;
	display: grid;
	place-items: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.3s, visibility 0s linear 0.3s;
}

#st-shop .st-modal.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition: opacity 0.3s, visibility 0s;
}

#st-shop .st-box {
	width: min(520px, 100%);
	max-height: 92vh;
	margin: 0;
	padding: 30px;
	overflow: auto;
	background: var(--st-plate);
	border: 1px solid var(--st-line-2);
	border-radius: var(--st-r-lg);
	color: var(--st-text);
	transform: translateY(12px);
	transition: transform 0.35s var(--st-ease);
}

#st-shop .st-modal.is-open .st-box {
	transform: none;
}

#st-shop .st-modal-title {
	font-size: 26px;
	font-stretch: 120%;
}

#st-shop .st-lede {
	max-width: 56ch;
	margin: 10px 0 22px;
	color: var(--st-muted);
	font-size: 15px;
}

#st-shop .st-lede b {
	color: var(--st-text);
}

#st-shop .st-lede a {
	color: var(--st-text);
}

#st-shop .st-return .st-lede {
	margin: 10px 0 0;
}

#st-shop .st-modal-actions {
	display: flex;
	gap: 10px;
	margin-top: 16px;
}

#st-shop .st-return .st-modal-actions {
	margin-top: 26px;
}

/* ---------- customise ---------- */

#st-shop .st-cz-photo {
	margin: 0 -24px;
	aspect-ratio: 5 / 4;
	overflow: hidden;
	background: #1a1c20;
}

#st-shop .st-cz-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

#st-shop .st-thumbs {
	display: flex;
	gap: 8px;
	margin-top: 12px;
	padding-bottom: 4px;
	overflow-x: auto;
}

#st-shop .st-tb,
#st-shop .st-tb:hover,
#st-shop .st-tb:focus {
	flex: none;
	width: 64px;
	height: 64px;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--st-line-2);
	border-radius: 10px;
	background: none;
	cursor: pointer;
	opacity: 0.6;
	transition: opacity 0.2s;
}

#st-shop .st-tb[aria-pressed="true"],
#st-shop .st-tb:hover {
	border-color: var(--st-text);
	opacity: 1;
}

#st-shop .st-tb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

#st-shop .st-photo-note {
	margin-top: 10px;
	color: var(--st-dim);
	font-size: 13px;
}

#st-shop .st-cz-visual {
	display: grid;
	place-items: center;
	margin: 0 -24px;
	padding: 40px 48px;
	background: radial-gradient(60% 70% at 50% 40%, rgba(255, 255, 255, 0.18), transparent 72%), linear-gradient(180deg, #5d636b, #3a3e44);
}

#st-shop .st-cz-visual .st-mock {
	max-width: 340px;
}

#st-shop .st-cz-intro {
	padding: 26px 0 8px;
}

#st-shop .st-cz-intro h3 {
	margin: 0;
	color: var(--st-text);
	font-family: var(--st-font-head);
	font-size: 28px;
	font-stretch: 125%;
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.15;
}

#st-shop .st-cz-intro p {
	margin-top: 10px;
	color: var(--st-muted);
}

#st-shop .st-cz-intro ul {
	display: grid;
	gap: 8px;
	margin: 16px 0 0;
	padding: 0;
	color: var(--st-label);
	font-size: 15px;
	list-style: none;
}

#st-shop .st-cz-intro li {
	display: flex;
	gap: 10px;
	margin: 0;
}

#st-shop .st-cz-intro li svg {
	flex: none;
	width: 18px;
	height: 18px;
	margin-top: 3px;
}

#st-shop .st-cz-sec {
	margin-top: 28px;
}

#st-shop .st-cz-sec > h4 {
	margin: 0 0 14px;
	color: var(--st-text);
	font-family: var(--st-font);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: normal;
	line-height: 1.4;
	text-transform: none;
}

#st-shop .st-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

#st-shop .st-swatch,
#st-shop .st-swatch:hover,
#st-shop .st-swatch:focus {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 16px 6px 6px;
	border: 1px solid var(--st-line-2);
	border-radius: 999px;
	background: none;
	color: var(--st-text);
	font-size: 15px;
	cursor: pointer;
}

#st-shop .st-swatch[aria-pressed="true"] {
	border-color: var(--st-text);
	background: rgba(255, 255, 255, 0.06);
}

#st-shop .st-swatch i {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background-position: center;
	background-size: cover;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

#st-shop .st-qty {
	display: inline-flex;
	align-items: center;
	height: 44px;
	border: 1px solid var(--st-line-2);
	border-radius: 999px;
}

#st-shop .st-qty button,
#st-shop .st-qty button:hover,
#st-shop .st-qty button:focus {
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 999px;
	background: none;
	color: var(--st-text);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

#st-shop .st-qty output {
	min-width: 36px;
	font-variant-numeric: tabular-nums;
	text-align: center;
}

#st-shop .st-foot-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

#st-shop .st-foot-row .st-btn {
	flex: 1;
}

#st-shop .st-bulk-nudge {
	margin-top: 10px;
	color: var(--st-muted);
	font-size: 14px;
	text-align: center;
}

#st-shop .st-bulk-nudge:empty {
	display: none;
}

#st-shop .st-upsell {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 28px;
	padding: 16px 18px;
	border: 1px dashed var(--st-line-2);
	border-radius: var(--st-r-md);
	color: var(--st-muted);
	font-size: 15px;
}

#st-shop .st-upsell button,
#st-shop .st-upsell button:hover,
#st-shop .st-upsell button:focus {
	padding: 0;
	border: 0;
	background: none;
	color: var(--st-text);
	font-size: 15px;
	text-decoration: underline;
	text-underline-offset: 4px;
	white-space: nowrap;
	cursor: pointer;
}

/* ---------- forms ---------- */

#st-shop .st-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

#st-shop .st-full {
	grid-column: 1 / -1;
}

#st-shop .st-field {
	display: flex;
	flex-direction: column;
	gap: 7px;
	min-width: 0;
}

#st-shop .st-field label {
	display: block;
	margin: 0;
	color: var(--st-label);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	vertical-align: baseline;
}

#st-shop .st-field label em {
	color: var(--st-dim);
	font-style: normal;
}

#st-shop .st-field input,
#st-shop .st-field textarea {
	width: 100%;
	min-height: 0;
	margin: 0;
	padding: 13px 14px;
	border: 1px solid var(--st-line-2);
	border-radius: var(--st-r-sm);
	background: var(--st-plate-2);
	box-shadow: none;
	color: var(--st-text);
	font-family: var(--st-font);
	font-size: 16px;
	line-height: 1.4;
	transition: border-color 0.2s, background 0.2s;
}

#st-shop .st-field textarea {
	min-height: 96px;
	resize: vertical;
}

#st-shop .st-field textarea.st-notes {
	min-height: 70px;
}

#st-shop .st-field input::placeholder,
#st-shop .st-field textarea::placeholder {
	color: var(--st-dim);
	opacity: 1;
}

#st-shop .st-field input:focus,
#st-shop .st-field textarea:focus {
	border-color: rgba(240, 242, 246, 0.6);
	outline: none;
	background: var(--st-plate-3);
	box-shadow: none;
	color: var(--st-text);
}

#st-shop .st-field input[type="file"] {
	padding: 10px;
	color: var(--st-muted);
	font-size: 14px;
}

#st-shop .st-field input[type="file"]::file-selector-button {
	margin-inline-end: 12px;
	padding: 7px 14px;
	border: 1px solid var(--st-line-2);
	border-radius: 999px;
	background: var(--st-plate-3);
	color: var(--st-text);
	font: inherit;
	font-size: 14px;
	cursor: pointer;
}

#st-shop .st-field .st-help {
	color: var(--st-dim);
	font-size: 13px;
}

#st-shop .st-field .st-msg {
	display: none;
	color: var(--st-error);
	font-size: 13px;
}

#st-shop .st-field.is-error input,
#st-shop .st-field.is-error textarea {
	border-color: var(--st-alert);
}

#st-shop .st-field.is-error .st-msg {
	display: block;
}

#st-shop .st-form-note {
	margin-top: 4px;
	color: var(--st-muted);
	font-size: 14px;
}

#st-shop .st-form-status {
	min-height: 24px;
	margin-top: 12px;
	font-size: 15px;
}

#st-shop .st-form-status.is-error {
	color: var(--st-error);
}

#st-shop .st-hp {
	position: absolute !important;
	inset-inline-start: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- cart ---------- */

#st-shop .st-cart-empty {
	padding: 80px 10px;
	color: var(--st-muted);
	text-align: center;
}

#st-shop .st-cart-empty p {
	margin-bottom: 22px;
}

#st-shop .st-line {
	display: grid;
	grid-template-columns: 96px 1fr auto;
	gap: 16px;
	align-items: start;
	padding: 20px 0;
	border-bottom: 1px solid var(--st-line);
}

#st-shop .st-line .st-thumb {
	width: 96px;
}

#st-shop .st-line .st-thumb img {
	width: 96px;
	height: 96px;
	border-radius: 12px;
	object-fit: cover;
}

#st-shop .st-line h3 {
	margin: 0;
	color: var(--st-text);
	font-family: var(--st-font);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: normal;
	line-height: 1.35;
	text-transform: none;
}

#st-shop .st-line .st-meta {
	margin-top: 4px;
	color: var(--st-muted);
	font-size: 13.5px;
	word-break: break-word;
}

#st-shop .st-line .st-meta .st-warn {
	color: var(--st-error);
}

#st-shop .st-line .st-ctl {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin-top: 10px;
}

#st-shop .st-line .st-ctl .st-qty {
	height: 36px;
}

#st-shop .st-line .st-ctl .st-qty button {
	width: 34px;
	height: 36px;
	font-size: 17px;
}

#st-shop .st-line .st-lp {
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	text-align: end;
}

#st-shop .st-line .st-lp s {
	display: block;
	color: var(--st-dim);
	font-size: 13px;
	font-weight: 400;
}

#st-shop .st-totals {
	display: grid;
	gap: 8px;
	font-size: 15px;
}

#st-shop .st-totals div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
}

#st-shop .st-totals .st-muted {
	color: var(--st-muted);
}

#st-shop .st-totals .st-grand {
	margin-top: 4px;
	padding-top: 8px;
	border-top: 1px solid var(--st-line);
	font-size: 19px;
	font-weight: 650;
}

#st-shop .st-ship-note {
	margin: 12px 0 14px;
	color: var(--st-dim);
	font-size: 13px;
}

/* ---------- toast ---------- */

#st-shop .st-toast {
	position: fixed;
	bottom: 28px;
	left: 50%;
	z-index: 100003;
	max-width: calc(100% - 32px);
	padding: 12px 20px;
	border-radius: 999px;
	background: var(--st-text);
	color: var(--st-onplat);
	font-size: 15px;
	font-weight: 600;
	text-align: center;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 30px);
	transition: opacity 0.35s var(--st-ease), transform 0.35s var(--st-ease);
}

#st-shop .st-toast.is-on {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* ---------- emergency card mock (illustration) ---------- */

#st-shop .st-mock {
	width: 100%;
	container-type: inline-size;
}

#st-shop .st-mcard {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	isolation: isolate;
	aspect-ratio: 1.586;
	padding: 7cqw 7.5cqw;
	overflow: hidden;
	border-radius: 5.2cqw;
	line-height: 1.6;
}

#st-shop .st-mcard::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(112deg, transparent 30%, rgba(255, 255, 255, 0.09) 46%, transparent 60%);
	pointer-events: none;
}

#st-shop .st-f-white {
	background: linear-gradient(140deg, #fdfdfe 0%, #e4e6ea 100%);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
	color: #15171b;
}

#st-shop .st-mtop {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
}

#st-shop .st-mcard .st-nfc {
	width: 10cqw;
	height: auto;
	opacity: 0.75;
}

#st-shop .st-ecross {
	display: grid;
	place-items: center;
	width: 11cqw;
	height: 11cqw;
	border-radius: 2.6cqw;
	background: var(--st-alert);
}

#st-shop .st-ecross svg {
	width: 6.6cqw;
	height: 6.6cqw;
	fill: #fff;
}

#st-shop .st-who {
	font-size: 6.6cqw;
	font-stretch: 112%;
	font-weight: 650;
	letter-spacing: -0.01em;
	line-height: 1.1;
}

#st-shop .st-role {
	margin-top: 1.4cqw;
	font-size: 3.9cqw;
	opacity: 0.62;
}

#st-shop .st-ebar {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 2.6cqw;
	background: var(--st-alert);
}

/* ---------- page lock while a panel is open ---------- */

html.st-locked,
html.st-locked body {
	overflow: hidden;
}

/* ---------- cart count badge (fallback only; the child theme styles .st-cart-count) ---------- */

:where(.st-cart-count) {
	display: inline-grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 10px;
	background: linear-gradient(135deg, #f8f9fb 0%, #c3c8d0 42%, #eef0f3 68%, #a4aab4 100%);
	color: var(--e-global-color-onplat, #0a0b0d);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	line-height: 1;
}

/* ---------- small screens ---------- */

@media (max-width: 560px) {

	#st-shop .st-form-grid {
		grid-template-columns: 1fr;
	}

	#st-shop .st-box {
		padding: 24px 20px;
	}

	#st-shop .st-line {
		grid-template-columns: 72px 1fr;
	}

	#st-shop .st-line .st-thumb,
	#st-shop .st-line .st-thumb img {
		width: 72px;
		height: 72px;
	}

	#st-shop .st-line .st-lp {
		grid-column: 2;
		text-align: start;
	}
}

/* ---------- reduced motion ---------- */

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

	#st-shop *,
	#st-shop *::before,
	#st-shop *::after {
		transition-duration: 0.01ms !important;
		transition-delay: 0s !important;
		animation-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
