/* Gravity CPH — dark, gold, mobile first. */

@font-face {
	font-family: "Montserrat";
	src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Montserrat";
	src: url("../fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--g-bg: #121215;
	--g-surface: #1c1c21;
	--g-surface-2: #24242a;
	--g-line: #2a2a31;
	--g-line-2: #3a3a42;
	--g-text: #f4f1ea;
	--g-text-2: #c9c5bc;
	--g-muted: #a8a49c;
	--g-faint: #8e8a82;
	--g-accent: #e0ae52;
	--g-accent-ink: #121215;
	--g-accent-soft: #22201a;
	--g-danger: #ff6b6b;
	--g-gutter: 20px;
	--g-max: 560px;
	--g-header: 64px;
	--g-font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--g-header) + 64px); }
body {
	margin: 0;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	background: var(--g-bg);
	color: var(--g-text);
	font-family: var(--g-font);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
	transition: background-color .5s ease, color .5s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--g-accent); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--g-accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.g-icon { flex-shrink: 0; }

.g-sr, .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.g-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--g-accent); color: var(--g-accent-ink); font-weight: 700; }
.g-skip:focus { left: 8px; }

/* ---------- Header ---------- */

.g-header {
	position: sticky;
	top: 0;
	z-index: 20;
	display: grid;
	grid-template-columns: 56px 1fr 56px;
	align-items: center;
	min-height: var(--g-header);
	padding: env(safe-area-inset-top) 6px 0;
	background: rgba(18, 18, 21, .94);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--g-line);
}
.g-header__side { display: flex; }
.g-header__side--end { justify-content: flex-end; }
.g-brand { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--g-text); text-decoration: none; }
.g-brand__name { font-size: 20px; font-weight: 500; letter-spacing: 9px; padding-left: 9px; line-height: 1; }
.g-brand__sub { font-size: 7px; font-weight: 600; letter-spacing: 4.5px; padding-left: 4.5px; line-height: 1; color: var(--g-muted); }
.g-brand__logo { max-height: 34px; width: auto; }

.g-iconbtn {
	position: relative;
	width: 44px; height: 44px;
	display: inline-flex; align-items: center; justify-content: center;
	border: 0; border-radius: 12px;
	background: transparent;
	color: inherit;
	text-decoration: none;
}
.g-iconbtn--round { border-radius: 50%; background: var(--g-surface-2); color: var(--g-text); }
.g-cartbtn { color: var(--g-text); }
.g-cartbtn__count {
	position: absolute; top: 4px; right: 2px;
	min-width: 18px; height: 18px; padding: 0 5px;
	border-radius: 9px;
	background: var(--g-accent); color: var(--g-accent-ink);
	font-size: 11px; font-weight: 800; line-height: 18px; text-align: center;
}

/* ---------- Layout ---------- */

.g-main { flex: 1; width: 100%; max-width: var(--g-max); margin: 0 auto; padding: 0 var(--g-gutter) 40px; }
body.g-has-cartbar .g-main { padding-bottom: 120px; }

.g-footer {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px;
	padding: 20px var(--g-gutter) calc(28px + env(safe-area-inset-bottom));
	font-size: 12px; color: var(--g-muted);
}
.g-footer a { color: inherit; }
body.g-has-cartbar .g-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
body.g-order-page .g-footer { display: none; }

/* ---------- Menu ---------- */

.g-intro { padding: 20px 0 4px; }
.g-intro__title { margin: 0 0 14px; font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -.3px; }
.g-howto { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.g-howto li { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 12px; background: var(--g-surface); font-size: 12px; font-weight: 600; line-height: 1.3; }
.g-howto span { font-weight: 800; color: var(--g-accent); }

.g-cats {
	position: sticky;
	top: var(--g-header);
	z-index: 15;
	margin: 16px calc(var(--g-gutter) * -1) 0;
	background: var(--g-bg);
	border-bottom: 1px solid var(--g-line);
}
.g-cats__track { display: flex; gap: 8px; overflow-x: auto; padding: 10px var(--g-gutter); scrollbar-width: none; overscroll-behavior-x: contain; }
.g-cats__track::-webkit-scrollbar { display: none; }
.g-chip {
	flex-shrink: 0;
	padding: 10px 14px;
	border-radius: 999px;
	border: 1px solid var(--g-line-2);
	color: var(--g-text-2);
	font-size: 13px; font-weight: 600; line-height: 1.2;
	text-decoration: none; white-space: nowrap;
	transition: background-color .2s, color .2s, border-color .2s;
}
.g-chip.is-active { background: var(--g-accent); border-color: var(--g-accent); color: var(--g-accent-ink); font-weight: 700; }

.g-cat__title { margin: 22px 0 2px; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--g-muted); }
.g-list { list-style: none; margin: 0; padding: 0; }
.g-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--g-line); }
.g-item__img {
	width: 64px; height: 64px; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	overflow: hidden;
	border-radius: 12px;
	background: #1f1f25;
	color: #6e6b66;
}
.g-item__img img { width: 100%; height: 100%; object-fit: cover; }
.g-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.g-item__name { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; }
.g-item__desc { margin: 2px 0 0; font-size: 12px; line-height: 1.4; color: var(--g-muted); }
.g-item__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.g-item__price { font-size: 14px; color: var(--g-text-2); }
.g-soldout { margin: 0; font-size: 13px; color: var(--g-faint); }
.g-empty { margin: 32px 0; color: var(--g-muted); }

.g-opts { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 8px; }
.g-opt {
	position: relative;
	min-height: 46px;
	padding: 0 10px;
	display: flex; align-items: center; justify-content: space-between; gap: 6px;
	border: 1px solid var(--g-line-2);
	border-radius: 12px;
	background: var(--g-surface);
	color: var(--g-text);
	font-size: 13px;
	transition: transform .12s ease, background-color .2s, border-color .2s, color .2s;
}
.g-opts[style*="--n: 3"] .g-opt { flex-direction: column; justify-content: center; gap: 0; padding: 6px; }
.g-opt__label { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-opt__price { color: var(--g-text-2); white-space: nowrap; }
.g-opt:active { transform: scale(.96); }
.g-opt:disabled { opacity: .45; cursor: not-allowed; }
.g-opt.is-busy { opacity: .7; }
.g-opt.is-in-cart { background: var(--g-accent); border-color: var(--g-accent); color: var(--g-accent-ink); }
.g-opt.is-in-cart .g-opt__label { font-weight: 800; }
.g-opt.is-in-cart .g-opt__price { color: var(--g-accent-ink); }
.g-opt--icon { width: 44px; height: 44px; min-height: 0; padding: 0; justify-content: center; color: var(--g-accent); }
.g-opt.is-bump { animation: g-bump .35s ease; }
@keyframes g-bump { 40% { transform: scale(1.07); } }

/* "−" appears inside an option once it's in the cart; label and price stack to make room. */
.g-optwrap { position: relative; display: flex; min-width: 0; }
.g-optwrap > .g-opt { flex: 1; min-width: 0; }
.g-minus {
	position: absolute; top: 0; bottom: 0; left: 0; z-index: 1;
	width: 40px;
	display: flex; align-items: center; justify-content: center;
	border: 0;
	border-right: 1px solid rgba(18, 18, 21, .25);
	border-radius: 12px 0 0 12px;
	background: transparent;
	color: var(--g-accent-ink);
}
.g-minus:active { background: rgba(18, 18, 21, .12); }
.g-optwrap.is-in-cart > .g-opt { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; padding-left: 50px; }
.g-optwrap.is-in-cart .g-opt__price { font-size: 11px; line-height: 1.2; }
.g-opts[style*="--n: 3"] .g-minus { width: 32px; }
.g-opts[style*="--n: 3"] .g-optwrap.is-in-cart > .g-opt { align-items: center; padding-left: 34px; }

.g-optwrap--single { align-items: center; gap: 8px; }
.g-optwrap--single > .g-opt { flex: none; }
.g-optwrap--single .g-minus {
	position: static;
	width: 44px; height: 44px;
	border: 1px solid var(--g-line-2);
	border-radius: 12px;
	background: var(--g-surface);
	color: var(--g-text);
}
.g-optwrap.is-in-cart.g-optwrap--single > .g-opt { flex-direction: row; align-items: center; padding: 0; }

.g-count {
	position: absolute; top: -8px; right: -6px;
	min-width: 22px; height: 22px; padding: 0 5px;
	display: flex; align-items: center; justify-content: center;
	border: 2px solid var(--g-bg);
	border-radius: 11px;
	background: var(--g-text); color: var(--g-accent-ink);
	font-size: 11px; font-weight: 800;
}

.g-choose {
	position: relative;
	min-height: 44px;
	padding: 0 14px;
	display: inline-flex; align-items: center; gap: 6px;
	border: 1px solid var(--g-line-2);
	border-radius: 12px;
	background: var(--g-surface);
	color: var(--g-text);
	font-size: 13px; font-weight: 700;
	text-decoration: none;
}

/* ---------- Cart bar + toast ---------- */

.g-cartbar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
	padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
	background: var(--g-bg);
	border-top: 1px solid var(--g-line);
	animation: g-up .25s ease;
}
@keyframes g-up { from { transform: translateY(100%); } }
.g-cartbar__btn {
	max-width: calc(var(--g-max) - 8px);
	height: 56px;
	margin: 0 auto;
	padding: 0 18px 0 8px;
	display: flex; align-items: center; gap: 12px;
	border-radius: 16px;
	background: var(--g-accent); color: var(--g-accent-ink);
	font-weight: 800;
	text-decoration: none;
}
.g-cartbar__count { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 11px; background: var(--g-accent-ink); color: var(--g-accent); font-size: 15px; }
.g-cartbar__label { flex: 1; font-size: 16px; }
.g-cartbar__total { font-size: 16px; }

.g-toast {
	position: fixed; left: 16px; right: 16px; z-index: 40;
	bottom: calc(20px + env(safe-area-inset-bottom));
	max-width: 420px;
	margin: 0 auto;
	padding: 6px 6px 6px 16px;
	min-height: 52px;
	display: flex; align-items: center; gap: 12px;
	border-radius: 14px;
	background: #2c2c33;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
	font-size: 14px; font-weight: 600;
}
body.g-has-cartbar .g-toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
.g-toast > span { flex: 1; }
.g-toast button { min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--g-accent); font-weight: 800; }
.g-toast.is-in { animation: g-toast .22s ease; }
@keyframes g-toast { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Sheet ---------- */

.g-sheet {
	width: 100%; max-width: 100%;
	max-height: 90dvh;
	margin: auto 0 0;
	padding: 0;
	border: 0;
	border-top: 1px solid var(--g-line);
	border-radius: 24px 24px 0 0;
	background: #17171b;
	color: var(--g-text);
}
.g-sheet::backdrop { background: rgba(0, 0, 0, .6); }
.g-sheet[open] { animation: g-sheet .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes g-sheet { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 600px) {
	.g-sheet { max-width: 480px; margin: auto; border-radius: 24px; border: 1px solid var(--g-line); }
}
.g-sheet__inner { display: flex; flex-direction: column; gap: 18px; padding: 10px 20px calc(24px + env(safe-area-inset-bottom)); }
.g-sheet__handle { width: 40px; height: 5px; align-self: center; border-radius: 3px; background: var(--g-line-2); }
.g-sheet__head { display: flex; align-items: center; gap: 14px; }
.g-sheet__title { flex: 1; margin: 0; font-size: 20px; font-weight: 800; line-height: 1.2; }
.g-sheet fieldset { margin: 0; padding: 0; border: 0; }
.g-sheet legend { padding: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--g-muted); }
.g-radios { display: flex; flex-direction: column; gap: 8px; }
.g-radio {
	min-height: 56px;
	padding: 0 16px;
	display: flex; align-items: center; gap: 14px;
	border: 1px solid var(--g-line-2);
	border-radius: 14px;
	background: var(--g-surface);
	cursor: pointer;
}
.g-radio:has(input:checked) { border-color: var(--g-accent); background: var(--g-accent-soft); }
.g-radio:has(input:checked) .g-radio__label { color: var(--g-accent); font-weight: 800; }
.g-radio:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.g-radio input { width: 20px; height: 20px; margin: 0; accent-color: var(--g-accent); }
.g-radio__label { flex: 1; font-size: 15px; font-weight: 700; }
.g-radio__price { font-size: 15px; font-weight: 600; }
.g-sheet__qty { display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 700; }

.g-stepper { display: flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--g-line-2); border-radius: 14px; background: var(--g-surface); }
.g-stepper button { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 11px; background: transparent; color: var(--g-text); }
.g-stepper button:last-child { color: var(--g-accent); }
.g-stepper__val { min-width: 28px; text-align: center; font-size: 17px; font-weight: 800; }
.g-stepper--sm { gap: 0; padding: 0; border-radius: 12px; }
.g-stepper--sm button { width: 40px; }
.g-stepper--sm .g-stepper__val { min-width: 20px; font-size: 15px; }

.g-btn {
	min-height: 56px;
	padding: 0 20px;
	display: flex; align-items: center; justify-content: center; gap: 12px;
	border: 0;
	border-radius: 16px;
	font-size: 16px; font-weight: 800;
	text-decoration: none;
}
.g-btn--accent { justify-content: space-between; background: var(--g-accent); color: var(--g-accent-ink); }
.g-btn--center { justify-content: center; align-self: stretch; }
.g-btn:disabled { opacity: .6; }

.g-badge {
	display: inline-block;
	padding: 3px 8px;
	border: 1px solid #55545c;
	border-radius: 6px;
	color: #e2ded5;
	font-size: 11px; font-weight: 800; line-height: 1.4; letter-spacing: 1.2px;
	text-transform: uppercase; white-space: nowrap;
}
.g-badge.is-strong { background: var(--g-accent); border-color: var(--g-accent); color: var(--g-accent-ink); }

/* ---------- Pages ---------- */

.g-page__title { margin: 24px 0 16px; font-size: 26px; font-weight: 800; line-height: 1.2; letter-spacing: -.3px; }
.g-content { color: var(--g-text-2); }
.g-content h2, .g-content h3 { color: var(--g-text); }

/* ---------- WooCommerce: notices & buttons ---------- */

.woocommerce-error, .woocommerce-message, .woocommerce-info, .woocommerce-notice {
	list-style: none;
	margin: 16px 0;
	padding: 14px 16px;
	border: 1px solid var(--g-line-2);
	border-radius: 14px;
	background: var(--g-surface);
	color: var(--g-text);
	font-size: 14px;
}
.woocommerce-error { border-color: var(--g-danger); }
.woocommerce-error li + li { margin-top: 6px; }
.woocommerce .button, .woocommerce button.button, .woocommerce a.button {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; padding: 0 18px;
	border: 0; border-radius: 14px;
	background: var(--g-accent); color: var(--g-accent-ink);
	font-weight: 800; text-decoration: none;
}
.blockUI.blockOverlay { background: rgba(18, 18, 21, .6) !important; }

/* ---------- Checkout ---------- */

.g-summary { margin: 0 0 28px; }
.g-line { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--g-line); transition: opacity .2s; }
.g-line.is-busy { opacity: .55; pointer-events: none; }
.g-line__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.g-line__name { font-size: 16px; font-weight: 700; color: var(--g-text); }
.g-line__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--g-muted); }
.g-summary__more { display: inline-block; padding-top: 14px; font-size: 14px; font-weight: 700; text-decoration: none; }

/* Coupon: one quiet line under the order; opens an input + Apply row. */
.g-summary { margin-bottom: 4px; }
.woocommerce-form-coupon-toggle .woocommerce-info { margin: 12px 0 16px; padding: 0; border: 0; background: none; color: var(--g-muted); font-size: 14px; }
.woocommerce-form-coupon-toggle .showcoupon { font-weight: 700; text-decoration: none; }
form.checkout_coupon { margin: 0 0 24px; font-size: 0; }
form.checkout_coupon .form-row { display: inline-block; margin: 0; vertical-align: top; font-size: 16px; }
form.checkout_coupon .form-row-first { width: calc(100% - 108px); }
form.checkout_coupon .form-row-last { width: 100px; margin-left: 8px; }
form.checkout_coupon .button { width: 100%; height: 52px; min-height: 0; padding: 0 12px; }
form.checkout_coupon .clear { display: none; }

form.checkout { display: flex; flex-direction: column; margin-top: 8px; }
.col2-set, .col2-set .col-1, .col2-set .col-2 { width: auto; float: none; }
.woocommerce-billing-fields > h3,
.woocommerce-additional-fields > h3,
#order_review_heading {
	margin: 8px 0 16px;
	font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
	color: var(--g-muted);
}
#order_review_heading { display: none; }
.woocommerce-billing-fields__field-wrapper { display: flex; flex-direction: column; }
#billing_phone_field { order: -1; }
.form-row { display: flex; flex-direction: column; gap: 8px; margin: 0 0 18px; padding: 0; }
.form-row label { font-size: 14px; font-weight: 700; color: var(--g-text); }
.form-row .required { color: var(--g-accent); text-decoration: none; border: 0; }
.form-row .optional { font-weight: 500; color: var(--g-muted); }
.woocommerce-input-wrapper { display: flex; flex-direction: column; gap: 6px; }
.input-text, .woocommerce form .form-row select, .woocommerce form .form-row textarea {
	width: 100%;
	height: 52px;
	padding: 0 14px;
	border: 1px solid var(--g-line-2);
	border-radius: 14px;
	background: var(--g-surface);
	color: var(--g-text);
	font-size: 16px;
	transition: border-color .15s, box-shadow .15s;
}
textarea.input-text { height: auto; min-height: 88px; padding: 12px 14px; }
.input-text::placeholder { color: #7a776f; }
.input-text:focus { outline: none; border-color: var(--g-accent); box-shadow: 0 0 0 3px rgba(224, 174, 82, .25); }
#billing_phone_field .input-text { height: 56px; border-width: 1.5px; border-color: var(--g-accent); font-size: 17px; font-weight: 600; }
.form-row .description,
.woocommerce-input-wrapper .description {
	display: block !important;
	position: static !important;
	margin: 0;
	padding: 0 !important;
	background: none !important;
	color: var(--g-muted) !important;
	font-size: 12px; line-height: 1.45;
}
.form-row .description::before { display: none !important; }
.woocommerce-invalid .input-text { border-color: var(--g-danger); }

.woocommerce-checkout-review-order-table {
	width: 100%;
	margin: 8px 0 18px;
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 14px;
	background: var(--g-surface);
	overflow: hidden;
}
.woocommerce-checkout-review-order-table thead,
.woocommerce-checkout-review-order-table tbody,
.woocommerce-checkout-review-order-table .cart-subtotal { display: none; }
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td { padding: 10px 16px; border: 0; text-align: left; font-size: 14px; font-weight: 500; color: var(--g-text-2); }
.woocommerce-checkout-review-order-table td { text-align: right; }
.woocommerce-checkout-review-order-table tr:first-child > * { padding-top: 16px; }
.woocommerce-checkout-review-order-table tr:last-child > * { padding-bottom: 16px; }
.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td { font-size: 17px; font-weight: 800; color: var(--g-text); }
.woocommerce-checkout-review-order-table .includes_tax { display: block; font-size: 12px; font-weight: 500; color: var(--g-muted); }

#payment { background: transparent; }
.wc_payment_methods { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wc_payment_method { padding: 14px 16px; border: 1px solid var(--g-line-2); border-radius: 14px; background: var(--g-surface); }
.wc_payment_method > input { accent-color: var(--g-accent); }
.wc_payment_method > label { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 700; }
.wc_payment_method > label img { display: inline-block; max-height: 22px; width: auto; }
.payment_box { margin-top: 12px; font-size: 14px; color: var(--g-text-2); }
.payment_box p:last-child { margin-bottom: 0; }
.woocommerce-privacy-policy-text, .woocommerce-terms-and-conditions-wrapper { font-size: 12px; color: var(--g-muted); }
#place_order {
	width: 100%;
	min-height: 56px;
	margin-top: 8px;
	border: 0;
	border-radius: 16px;
	background: var(--g-accent); color: var(--g-accent-ink);
	font-size: 17px; font-weight: 800;
}

/* ---------- Order screen ---------- */

.g-order { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 24px 0 8px; color: var(--g-text); text-align: center; }
.g-order__making, .g-order__ready, .g-order__cancelled { display: none; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.g-order[data-g-state="making"] .g-order__making,
.g-order[data-g-state="ready"] .g-order__ready,
.g-order[data-g-state="cancelled"] .g-order__cancelled { display: flex; }
.g-order[data-g-state="ready"] .g-live, .g-order[data-g-state="cancelled"] .g-live { display: none; }

.g-order__title { margin: 4px 0 0; font-size: 26px; font-weight: 800; line-height: 1.15; letter-spacing: -.3px; }
.g-order__sub { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; font-weight: 600; color: var(--g-text-2); }
.g-order__sub .g-icon { color: var(--g-accent); }
.g-order__alert { color: var(--g-danger); }

.g-anim { position: relative; width: 210px; height: 210px; display: flex; align-items: center; justify-content: center; }
.g-anim__track, .g-anim__arc { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke-width: 6; }
.g-anim__track { stroke: var(--g-surface-2); }
.g-anim__arc { stroke: var(--g-accent); stroke-linecap: round; stroke-dasharray: 140 476; animation: g-spin 2.6s linear infinite; }
.g-anim__glass { position: relative; }
.g-anim__inside { fill: var(--g-surface); }
.g-anim__wave path { fill: var(--g-accent); }
.g-anim__bub { fill: #fff4da; animation: g-bub 2.2s ease-in infinite; }
.g-anim__bub:nth-of-type(2) { animation-delay: .7s; }
.g-anim__bub:nth-of-type(3) { animation-delay: 1.4s; }
.g-anim__bub:nth-of-type(4) { animation-delay: 1.9s; }
.g-anim__liquid { animation: g-fill 4.5s cubic-bezier(.45, .05, .4, 1) infinite; }
.g-anim__wave { animation: g-wave 1.4s linear infinite; }
.g-anim__straw { stroke: var(--g-text); stroke-width: 4; stroke-linecap: round; fill: none; }
.g-anim__outline { fill: none; stroke: var(--g-text); stroke-width: 3; stroke-linejoin: round; }
@keyframes g-spin { to { transform: rotate(360deg); } }
@keyframes g-fill {
	0% { transform: translateY(94px); opacity: 1; }
	72%, 88% { transform: translateY(12px); opacity: 1; }
	100% { transform: translateY(12px); opacity: 0; }
}
@keyframes g-wave { to { transform: translateX(-40px); } }
@keyframes g-bub {
	0% { transform: translateY(0); opacity: 0; }
	25% { opacity: .85; }
	100% { transform: translateY(-46px); opacity: 0; }
}

.g-timer { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--g-muted); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }

.g-steps { list-style: none; width: 100%; margin: 8px 0 0; padding: 0; display: flex; align-items: flex-start; }
.g-step { width: 58px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.g-step__dot {
	width: 40px; height: 40px;
	display: flex; align-items: center; justify-content: center;
	border: 2px solid var(--g-line-2);
	border-radius: 50%;
	color: var(--g-faint);
}
.g-step__label { font-size: 11px; font-weight: 700; color: var(--g-faint); }
.g-step.is-done .g-step__dot { border-color: var(--g-accent); background: var(--g-accent); color: var(--g-accent-ink); }
.g-step.is-done .g-step__label { color: var(--g-text); }
.g-step.is-current .g-step__dot { border-color: var(--g-accent); background: var(--g-accent-soft); color: var(--g-accent); animation: g-pulse 1.8s ease-out infinite; }
.g-step.is-current .g-step__label { color: var(--g-accent); font-weight: 800; }
.g-step__line { flex: 1; height: 3px; margin-top: 19px; border-radius: 2px; background: var(--g-line-2); }
.g-step__line.is-done { background: var(--g-accent); }
.g-step__line.is-flowing {
	background: repeating-linear-gradient(90deg, var(--g-accent) 0 6px, transparent 6px 12px);
	background-size: 12px 100%;
	animation: g-flow .7s linear infinite;
}
@keyframes g-flow { to { background-position: 12px 0; } }
@keyframes g-pulse {
	0% { box-shadow: 0 0 0 0 rgba(224, 174, 82, .6); }
	70% { box-shadow: 0 0 0 12px rgba(224, 174, 82, 0); }
	100% { box-shadow: 0 0 0 0 rgba(224, 174, 82, 0); }
}

.g-ordercard { width: 100%; padding: 14px 16px 6px; border: 1px solid var(--g-line); border-radius: 16px; background: var(--g-surface); color: var(--g-text); text-align: left; }
.g-ordercard__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 8px; border-bottom: 1px solid var(--g-line); }
.g-ordercard__no { font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: 1px; color: var(--g-accent); font-variant-numeric: tabular-nums; }
.g-ordercard__hint { font-size: 12px; font-weight: 600; color: var(--g-muted); }
.g-ordercard__line { display: flex; align-items: center; gap: 10px; min-height: 44px; border-bottom: 1px solid var(--g-line); }
.g-ordercard__line:last-child { border-bottom: 0; }
.g-ordercard__qty { width: 28px; flex-shrink: 0; font-size: 15px; font-weight: 800; color: var(--g-accent); }
.g-ordercard__name { flex: 1; font-size: 15px; font-weight: 600; }

.g-live { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; font-weight: 600; color: var(--g-muted); }
.g-live__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--g-accent); animation: g-pulse 1.8s ease-out infinite; }

.g-ready__check {
	width: 76px; height: 76px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: var(--g-accent-ink); color: var(--g-accent);
	animation: g-pop .5s cubic-bezier(.2, 1.4, .4, 1);
}
@keyframes g-pop { from { transform: scale(.4); opacity: 0; } }
.g-ready__title { margin: 4px 0 0; font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: 1px; }
.g-ready__text { max-width: 300px; margin: 0; font-size: 17px; font-weight: 500; line-height: 1.45; }

/* The whole page turns gold when the order is ready. */
body.g-is-ready, body.g-is-ready .g-order { background: var(--g-accent); color: var(--g-accent-ink); }
body.g-is-ready .g-header { background: var(--g-accent); border-color: rgba(18, 18, 21, .15); }
body.g-is-ready .g-brand, body.g-is-ready .g-brand__sub, body.g-is-ready .g-iconbtn { color: var(--g-accent-ink); }
body.g-is-ready .g-brand__logo { filter: brightness(0); }
body.g-is-ready .g-ordercard { border-color: var(--g-accent-ink); background: var(--g-accent-ink); }
body.g-is-ready .g-ordercard__no { font-size: 44px; }

.g-order--plain { padding-top: 48px; }
.g-order__extra:empty { display: none; }
.g-order__extra { color: var(--g-text-2); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	.g-anim__liquid { animation: none; transform: translateY(40px); }
}
