/* Gmica Finish Studio – Elementor widget styles.
   Colours and fonts come from Elementor Site Settings (global colours / typography)
   through the widget controls; the values below are only fallbacks. */
@property --gfs-tint { syntax: '<color>'; inherits: true; initial-value: #6b3a12; }

.gfs {
	--gfs-accent: var(--e-global-color-accent, #DA5D01);
	--gfs-base: var(--e-global-color-primary, #391A4F);
	--gfs-mix: 45%;
	--gfs-text: #f6f0ea;
	--gfs-tint: #6b3a12;
	--gfs-deep: color-mix(in srgb, var(--gfs-base) var(--gfs-mix), #07040a);
	--gfs-muted: color-mix(in srgb, var(--gfs-text) 62%, transparent);
	--gfs-line: color-mix(in srgb, var(--gfs-text) 20%, transparent);
	--gfs-pad: 40px;
	position: relative;
	width: 100%;
	height: 92vh;
	min-height: 420px;
	overflow: hidden;
	isolation: isolate;
	color: var(--gfs-text);
	background: #07040a;
	container-type: inline-size;
	container-name: gfs;
	transition: --gfs-tint 1.2s ease;
	-webkit-tap-highlight-color: transparent;
}
.gfs *, .gfs *::before, .gfs *::after { box-sizing: border-box; }
.gfs button {
	font: inherit; color: inherit; background: none; border: 0; margin: 0;
	cursor: pointer; text-transform: none; letter-spacing: inherit; box-shadow: none;
	line-height: 1.2; min-height: 0; border-radius: 0;
}
.gfs button:focus-visible { outline: 2px solid var(--gfs-accent); outline-offset: 3px; }

/* Fonts: Site Settings global fonts; if a global font is not set the
   declaration falls back to the theme font through normal inheritance. */
.gfs .gfs-title { font-family: var(--e-global-typography-primary-font-family); }
.gfs .gfs-card-name, .gfs .gfs-cur, .gfs .gfs-stat b, .gfs .gfs .gfs-sub { font-family: var(--e-global-typography-text-font-family); }
.gfs .gfs-label, .gfs .gfs-cats button, .gfs .gfs-pieces button, .gfs .gfs-toggle, .gfs .gfs-hint, .gfs .gfs-stat span, .gfs .gfs-card-code { font-family: var(--e-global-typography-accent-font-family); }

/* backdrop */
.gfs-bg {
	position: absolute; inset: 0; z-index: 0;
	background:
		radial-gradient(60% 45% at 50% 64%, color-mix(in srgb, var(--gfs-accent) 34%, transparent) 0%, transparent 70%),
		radial-gradient(90% 70% at 18% 8%, color-mix(in srgb, var(--gfs-tint) 70%, transparent) 0%, transparent 65%),
		radial-gradient(120% 90% at 85% 0%, var(--gfs-deep) 0%, transparent 72%),
		linear-gradient(180deg, color-mix(in srgb, var(--gfs-deep) 70%, #000) 0%, #0b0710 62%, #050307 100%);
}
.gfs-bg::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%; background: linear-gradient(180deg, transparent, rgba(0,0,0,.55)); }
.gfs-canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.gfs-canvas.is-drag { cursor: grabbing; }

/* top-left label */
.gfs-eyebrow { position: absolute; z-index: 4; top: 28px; left: var(--gfs-pad); display: flex; gap: 14px; pointer-events: none; }
.gfs-bar { width: 2px; background: var(--gfs-accent); }
.gfs-label { display: block; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--gfs-muted); }
.gfs .gfs-cur { display: block; font-size: 20px; font-weight: 600; letter-spacing: .06em; line-height: 1.1; text-transform: uppercase; max-width: 9em; color: var(--gfs-text); }

.gfs .gfs-title { margin: 0; color: var(--gfs-text); font-size: clamp(32px, 4.4cqi, 64px); line-height: 1.02; font-weight: 300; letter-spacing: -.01em; text-wrap: balance; }
.gfs .gfs-title b { font-weight: 700; }
.gfs .gfs-sub { margin: 14px 0 0; color: var(--gfs-muted); font-size: 15px; line-height: 1.5; max-width: 44ch; }
@keyframes gfs-rise { from { opacity: 0; transform: translateY(18px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }

/* design cards: small swatches in a vertical, scrollable strip on the right; the name shows as a tooltip on hover */
.gfs-deck { position: absolute; z-index: 6; top: 84px; bottom: 96px; right: var(--gfs-pad); width: 100px; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8px 10px 8px 6px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--gfs-line) transparent; }
.gfs .gfs-card {
	position: relative; flex: 0 0 auto; width: 76px; height: 76px; padding: 0;
	border-radius: 10px; overflow: hidden; text-align: left;
	background-color: #555; background-size: cover; background-position: center;
	box-shadow: 0 12px 24px -10px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.12);
	transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .25s, opacity .4s;
	color: var(--gfs-ct, #fff);
}
.gfs-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.22) 0%, transparent 42%); mix-blend-mode: screen; pointer-events: none; }
.gfs .gfs-card:hover, .gfs .gfs-card:focus-visible { transform: scale(1.1); outline: none; box-shadow: 0 16px 28px -10px rgba(0,0,0,.8), inset 0 0 0 2px var(--gfs-accent); }
.gfs-dot, .gfs .gfs-card-name, .gfs .gfs-card-code { display: none; }
.gfs .gfs-card.is-active { box-shadow: 0 12px 24px -10px rgba(0,0,0,.7), inset 0 0 0 3px var(--gfs-accent); }
.gfs-card.is-enter { animation: gfs-card-in .6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes gfs-card-in { from { opacity: 0; transform: translateX(40px) scale(.9); } to { opacity: 1; transform: none; } }

/* name tooltip for a hovered swatch */
.gfs-tip { position: absolute; z-index: 9; pointer-events: none; display: flex; flex-direction: column; gap: 2px; padding: 8px 13px; border-radius: 8px; background: rgba(10, 6, 14, .92); color: #fff; box-shadow: 0 10px 24px -8px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.12); white-space: nowrap; opacity: 0; transform: translate(-100%, -50%) translateX(6px); transition: opacity .15s, transform .15s; }
.gfs-tip.is-on { opacity: 1; transform: translate(-100%, -50%); }
.gfs-tip::after { content: ""; position: absolute; right: -5px; top: 50%; width: 10px; height: 10px; background: inherit; transform: translateY(-50%) rotate(45deg); border-radius: 2px; }
.gfs .gfs-tip b { font-size: 14px; font-weight: 600; letter-spacing: .04em; color: #fff; font-family: var(--e-global-typography-secondary-font-family); }
.gfs .gfs-tip small { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.65); font-family: var(--e-global-typography-accent-font-family); }


/* category pills */
.gfs-cats { position: absolute; z-index: 7; top: 22px; right: var(--gfs-pad); max-width: min(60cqi, 840px); display: flex; gap: 4px; padding: 5px; overflow-x: auto; border-radius: 999px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--gfs-line); backdrop-filter: blur(10px); scrollbar-width: none; }
.gfs-cats::-webkit-scrollbar { display: none; }
.gfs .gfs-cats button { flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; color: var(--gfs-muted); transition: background .25s, color .25s; }
.gfs .gfs-cats button:hover { color: var(--gfs-text); background: rgba(255,255,255,.07); }
.gfs .gfs-cats button.is-on { background: var(--gfs-accent); color: #fff; }

/* thickness dropdown (bottom left, where the thickness fact is) */
.gfs-sel { position: relative; display: inline-block; }
.gfs-sel::after { content: ""; position: absolute; right: 2px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--gfs-text); border-bottom: 2px solid var(--gfs-text); transform: rotate(45deg); pointer-events: none; opacity: .8; }
.gfs .gfs-thick-select { appearance: none; -webkit-appearance: none; display: block; margin: 0; padding: 4px 26px 4px 0; border: 0; border-bottom: 1px dashed var(--gfs-line); border-radius: 0; background: transparent; color: var(--gfs-text); font: inherit; font-size: 24px; font-weight: 600; line-height: 1; cursor: pointer; box-shadow: none; min-width: 84px; font-family: var(--e-global-typography-secondary-font-family); }
.gfs .gfs-thick-select:hover { border-bottom-color: var(--gfs-accent); }
.gfs .gfs-thick-select:focus-visible { outline: 2px solid var(--gfs-accent); outline-offset: 4px; }
.gfs .gfs-thick-select option { color: #1b1220; background: #fff; font-size: 16px; }

/* bottom bar */
.gfs-hud { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 0 var(--gfs-pad) 30px; }
.gfs-stats { display: flex; gap: 34px; }
.gfs-stat { display: flex; gap: 10px; align-items: flex-end; }
.gfs-stat svg { width: 34px; height: 34px; stroke: var(--gfs-text); fill: none; stroke-width: 1.2; opacity: .8; flex: none; }
.gfs .gfs-stat b { display: block; font-size: 24px; font-weight: 600; line-height: 1; color: var(--gfs-text); }
.gfs .gfs-stat span { display: block; margin-top: 4px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--gfs-muted); }
.gfs-pieces { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--gfs-line); backdrop-filter: blur(10px); }
.gfs .gfs-pieces button { padding: 9px 16px; border-radius: 999px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gfs-muted); transition: background .25s, color .25s; white-space: nowrap; }
.gfs .gfs-pieces button:hover { color: var(--gfs-text); background: rgba(255,255,255,.06); }
.gfs .gfs-pieces button.is-on { background: var(--gfs-accent); color: #fff; }
.gfs-tools { display: flex; gap: 14px; align-items: center; }
.gfs .gfs-hint { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gfs-muted); }
.gfs .gfs-toggle { display: flex; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--gfs-line); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--gfs-muted); }
.gfs .gfs-toggle:hover { color: var(--gfs-text); background: none; }
.gfs-toggle i { width: 26px; height: 14px; border-radius: 9px; background: rgba(255,255,255,.18); position: relative; transition: background .25s; flex: none; }
.gfs-toggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: #fff; transition: transform .25s; }
.gfs-toggle[aria-pressed="true"] i { background: var(--gfs-accent); }
.gfs-toggle[aria-pressed="true"] i::after { transform: translateX(12px); }

/* medium widths */
@container gfs (max-width: 1100px) {
	.gfs-stats { gap: 22px; }
	.gfs-stat svg, .gfs-hint { display: none; }
}

/* narrow widths (phones, narrow columns) */
@container gfs (max-width: 780px) {
	.gfs-eyebrow, .gfs-head, .gfs-deck, .gfs-hud, .gfs-cats { --gfs-pad: 16px; }
	.gfs-eyebrow { top: 18px; }
	.gfs-head { top: 78px; bottom: auto; right: 16px; max-width: none; }
	.gfs .gfs-title { font-size: clamp(26px, 7.4cqi, 40px); }
	.gfs .gfs-sub { font-size: 13px; margin-top: 8px; }
	/* phones: the swatch strip runs sideways along the bottom and shows names (no hover on touch) */
	.gfs-deck { top: auto; bottom: 118px; left: 0; right: 0; width: auto; flex-direction: row; align-items: flex-start; gap: 10px; padding: 4px 16px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
	.gfs-deck::-webkit-scrollbar { display: none; }
	.gfs-has-thick .gfs-deck { bottom: 160px; }
	.gfs-cats { top: auto; bottom: 262px; left: 16px; right: 16px; max-width: none; }
	.gfs-has-thick .gfs-cats { bottom: 304px; }
	.gfs .gfs-card { width: 108px; height: 132px; }
	.gfs .gfs-card:hover, .gfs .gfs-card:focus-visible { transform: translateY(-3px); }
	.gfs-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.28)); }
	.gfs-dot { display: block; position: absolute; width: 14px; height: 14px; top: 9px; left: 9px; border-radius: 50%; background: var(--gfs-accent); box-shadow: 0 0 0 3px rgba(255,255,255,.85); }
	.gfs .gfs-card-name { display: block; position: absolute; z-index: 1; left: 9px; right: 6px; top: 36px; font-size: 18px; font-weight: 700; line-height: .95; letter-spacing: .02em; text-transform: uppercase; color: inherit; }
	.gfs .gfs-card-code { display: block; position: absolute; z-index: 1; left: 9px; right: 6px; bottom: 9px; font-size: 8px; letter-spacing: .1em; text-transform: uppercase; opacity: .85; color: inherit; }
	@keyframes gfs-card-in { from { opacity: 0; transform: translateX(40cqi); } to { opacity: 1; transform: none; } }
	.gfs-tip { display: none; }
	.gfs-hud { flex-direction: column; align-items: stretch; gap: 12px; padding-bottom: 16px; }
	.gfs-stats { gap: 0; }
	.gfs-stats .gfs-stat:not(.gfs-stat-thick) { display: none; }
	.gfs-stat-thick svg { display: none; }
	.gfs-stat-thick > div { display: flex; align-items: center; gap: 12px; }
	.gfs .gfs-thick-select { font-size: 18px; min-width: 76px; }
	.gfs-stat-thick > div > span:last-child { margin: 0; }
	.gfs-pieces { justify-content: space-between; }
	.gfs .gfs-pieces button { padding: 8px 10px; font-size: 11px; letter-spacing: .08em; flex: 1; }
	.gfs-tools { justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
	.gfs *, .gfs { animation-duration: .01s !important; transition-duration: .01s !important; }
}
