/* GoFitOrganic Indonesia (blog 12) — only the blocks the parent has no style for. Parent tokens throughout. */

/* Static offer bar: no countdown, so the copy sits centred on its own. */
.gfo-offerbar--static .gfo-offerbar__copy { text-align: center; }

/* Payment method names beside the card marks (same look as the parent's PDP pay badges). */
.gfo-id-paybadge {
	display: inline-flex; align-items: center; height: 28px; padding: 0 9px;
	font-family: var(--gfo-font-body); font-size: 11px; font-weight: 800; letter-spacing: .02em;
	background: #fff; color: #1a1a1a; border: 1px solid rgba(58, 40, 32, .15); border-radius: 4px;
	white-space: nowrap;
}
.gfo-footer .gfo-id-paybadge { border-color: rgba(255, 255, 255, .25); }

/* Registration number in the buy box meta row. */
.gfo-id-nie {
	display: inline-flex; align-items: center; padding: 3px 9px; margin-right: 8px;
	font-family: var(--gfo-font-mono, monospace); font-size: 11px; font-weight: 700; letter-spacing: .03em;
	color: var(--gfo-ink, #1f1a17); background: var(--gfo-soft, #f4efe8); border-radius: var(--gfo-radius-pill, 999px);
}

/* Home: hero without a photo keeps a sensible measure. */
.gfo-id-hero .gfo-hero__lead { max-width: 640px; }

/* Home: payment / shipping / returns / contact facts. */
.gfo-id-facts { padding: var(--gfo-space-section, 64px) 0; background: var(--gfo-surface, #fff); }
.gfo-id-facts__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gfo-space-card-gap, 20px); }
.gfo-id-fact { padding: 22px; border-radius: var(--gfo-radius-card, 14px); background: var(--gfo-soft, #f4efe8); }
.gfo-id-fact h3 { margin: 0 0 8px; font-family: var(--gfo-font-display); font-size: var(--gfo-fs-h3, 18px); color: var(--gfo-ink, #1f1a17); }
.gfo-id-fact p { margin: 0 0 8px; font-size: var(--gfo-fs-small, 14px); line-height: 1.55; color: var(--gfo-text-muted, #5b514b); }
.gfo-id-fact a { color: var(--gfo-terracotta, #b4532a); font-weight: 600; }
.gfo-id-fact__pay { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
@media (max-width: 1024px) { .gfo-id-facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
	.gfo-id-facts { padding: 40px 0; }
	.gfo-id-facts__grid { grid-template-columns: 1fr; gap: 12px; }
	.gfo-id-fact { padding: 18px; }
}

/* Home: the three authenticity checks reuse the parent's system cards; three columns, not nine. */
.gfo-id-checks .gfo-systems__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .gfo-id-checks .gfo-systems__grid { grid-template-columns: 1fr; } }

/* Product page: pack buttons (assets/id-packs.js) replace the pack <select>. */
.gfo-id-packs { margin: 18px 0 14px; }
.gfo-id-packs__label {
	margin-bottom: 8px; font-family: var(--gfo-font-mono, monospace); font-size: 11px; font-weight: 700;
	letter-spacing: .12em; text-transform: uppercase; color: var(--gfo-text-hint, #8a7f78);
}
.gfo-id-packs__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.gfo-id-pack {
	display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; text-align: left;
	background: #fff; border: 1.5px solid rgba(58, 40, 32, .16); border-radius: var(--gfo-radius-btn, 10px); cursor: pointer;
	font: inherit; color: var(--gfo-ink, #1f1a17);
}
.gfo-id-pack:hover { border-color: var(--gfo-terracotta, #b4532a); }
.gfo-id-pack.is-selected { border-color: var(--gfo-terracotta, #b4532a); background: #fbf1ea; box-shadow: 0 0 0 1px var(--gfo-terracotta, #b4532a) inset; }
.gfo-id-pack__name { font-weight: 700; font-size: 15px; }
.gfo-id-pack__price { font-size: 13px; color: var(--gfo-text-muted, #5b514b); }
.gfo-id-pack__save { font-size: 11px; font-weight: 700; color: var(--gfo-success, #2e7d4f); }
/* WooCommerce's "Hapus" (clear) link is meaningless with one axis that always has a choice. */
.gfo-pdp__buy .reset_variations { display: none !important; }

/* Product cards: the designed product images are square — show them whole, not cropped to 4:3. */
.gfo-pcard__img { aspect-ratio: 1 / 1; }

/* Cookie bar (inc/ga4.php). Sits above the Messenger bubble on phones, bottom-left on wider screens. */
.gfo-id-consent {
	position: fixed; left: 12px; right: 12px; bottom: 88px; z-index: 9999; max-width: 560px; margin: 0 auto;
	padding: 14px 16px; background: #fffaf5; color: var(--gfo-ink, #1f1a17);
	border: 1px solid rgba(58, 40, 32, .18); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
	font-size: 14px; line-height: 1.5;
}
.gfo-id-consent[hidden] { display: none; }
.gfo-id-consent p { margin: 0 0 10px; }
.gfo-id-consent a { color: var(--gfo-terracotta, #b4532a); text-decoration: underline; }
.gfo-id-consent__btns { display: flex; gap: 8px; justify-content: flex-end; }
.gfo-id-consent .gfo-btn { padding: 8px 18px; font-size: 14px; min-height: 0; }
@media (min-width: 768px) { .gfo-id-consent { left: 16px; right: auto; bottom: 16px; margin: 0; } }

/* Footer: registration note under the copyright line. */
.gfo-id-seller { margin-top: 6px; opacity: .75; font-size: 12px; line-height: 1.5; }

/* ================= Checkout (inc/checkout-id.php + assets/id-checkout.js) ================= */
/* Indonesia only: the country row stays in the form (validation) but is not shown.
   !important because WooCommerce's address script calls .show() on locale rows (inline display). */
.woocommerce-checkout #billing_country_field { display: none !important; }
/* Field order (the parent pins its own CSS order on each row; the wrapper is a flex row). */
.gfo-id-co-address #billing_first_name_field { order: 1; }
.gfo-id-co-address #billing_phone_field { order: 2; }
.gfo-id-co-address #billing_email_field { order: 3; }
.gfo-id-co-address #billing_country_field { order: 4; }
.gfo-id-co-address #billing_address_2_field { order: 5; }
.gfo-id-co-address #billing_city_field { order: 6; }
.gfo-id-co-address #billing_state_field { order: 7; }
.gfo-id-co-address #billing_postcode_field { order: 8; }
.gfo-id-co-address #billing_address_1_field { order: 9; }
.gfo-id-co-address #order_comments_field { order: 11; }
/* Kota/kabupaten + provinsi are filled by the kecamatan picker; their rows show only in manual mode
   (area not in the list, list unavailable, or a checkout error on them). After a pick they read as one line. */
.gfo-id-co-address.gfo-id-auto:not(.gfo-id-manual) #billing_city_field,
.gfo-id-co-address.gfo-id-auto:not(.gfo-id-manual) #billing_state_field,
.gfo-id-co-address.gfo-id-picked #billing_city_field,
.gfo-id-co-address.gfo-id-picked #billing_state_field { display: none !important; }
.gfo-id-area__manual { display: block; margin-top: 6px; padding: 0; border: 0; background: none; color: var(--gfo-text-muted, #5b514b); font: 400 12.5px var(--gfo-font-body, sans-serif); text-decoration: underline; cursor: pointer; }
.gfo-id-co-address.gfo-id-picked .gfo-id-area__manual,
.gfo-id-co-address.gfo-id-manual .gfo-id-area__manual { display: none; }
.gfo-id-co-address textarea#billing_address_1 { min-height: 64px; resize: vertical; }
.woocommerce-checkout #billing_address_2_field { position: relative; }
.gfo-id-area {
	position: absolute; left: 0; right: 0; z-index: 30; margin-top: 4px; max-height: 320px; overflow: auto;
	background: #fff; border: 1px solid rgba(58, 40, 32, .22); border-radius: 10px; box-shadow: 0 12px 28px rgba(0, 0, 0, .14);
}
.gfo-id-area[hidden] { display: none; }
.gfo-id-area__opt {
	display: block; width: 100%; text-align: left; padding: 11px 13px; border: 0; border-top: 1px solid rgba(58, 40, 32, .08);
	background: #fff; font: 400 14px/1.35 var(--gfo-font-body, sans-serif); color: var(--gfo-ink, #1f1a17); cursor: pointer;
}
.gfo-id-area__opt:first-child { border-top: 0; }
.gfo-id-area__opt b { font-weight: 700; }
.gfo-id-area__opt:hover, .gfo-id-area__opt.is-active { background: #fbf1ea; }
.gfo-id-area__msg { padding: 11px 13px; font-size: 13px; color: var(--gfo-text-muted, #5b514b); }
.gfo-id-area__picked { margin-top: 6px; font-size: 13px; color: var(--gfo-text-muted, #5b514b); }
.gfo-id-area__picked[hidden] { display: none; }
.gfo-id-area__change { margin-left: 6px; padding: 0; border: 0; background: none; color: var(--gfo-terracotta, #b4532a); font: 700 13px var(--gfo-font-body, sans-serif); text-decoration: underline; cursor: pointer; }
.gfo-id-pc { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; font-size: 12.5px; color: var(--gfo-text-muted, #5b514b); }
.gfo-id-pc[hidden] { display: none; }
.gfo-id-pc button { padding: 5px 10px; border: 1px solid rgba(58, 40, 32, .22); border-radius: 999px; background: #fff; font: 600 13px var(--gfo-font-body, sans-serif); color: var(--gfo-ink, #1f1a17); cursor: pointer; }
.gfo-id-pc button.is-on { border-color: var(--gfo-terracotta, #b4532a); background: #fbf1ea; }
/* +62 in front of the WhatsApp number */
.gfo-id-tel { display: flex; align-items: stretch; width: 100%; }
.gfo-id-tel__cc {
	display: flex; align-items: center; padding: 0 12px; border: 1px solid rgba(58, 40, 32, .22); border-right: 0;
	border-radius: 8px 0 0 8px; background: #f6efe8; font: 600 14px var(--gfo-font-body, sans-serif); color: var(--gfo-ink, #1f1a17);
}
.woocommerce-checkout .gfo-id-tel input.input-text { border-radius: 0 8px 8px 0; }
/* Card box: what happens to the card data */
.gfo-id-cardsafe { display: block; margin: 12px 0 4px; font-size: 12.5px; color: var(--gfo-text-muted, #5b514b); }
.gfo-id-cardsafe::before { content: "\1F512\00a0"; }
/* The order is step 2 and always open (the parent collapses it on phones). */
.woocommerce-checkout #order_review_heading { cursor: default; }
.woocommerce-checkout #order_review_heading::after { content: none !important; }
.woocommerce-checkout #order_review.is-collapsed { display: block !important; }
/* Step numbers follow the layout (headings carry none in the markup). Phones stack 1 Alamat → 2 Ringkasan →
   3 Pembayaran; desktop reads 1 Alamat → 2 Pembayaran down the left, and the summary becomes an unnumbered
   sidebar card with its title inside, so it sticks with the card. */
@media (max-width: 900px) {
	.woocommerce-checkout #order_review_heading::before { content: "2. "; }
	.woocommerce-checkout .gfo-co-step--payment::before { content: "3. "; }
}
@media (min-width: 901px) {
	.woocommerce-checkout .gfo-co-step--payment::before { content: "2. "; }
	.woocommerce-checkout #order_review_heading { display: none; }
	.woocommerce-checkout #order_review::before {
		content: "Ringkasan Pesanan"; display: block; margin: 1.2em 0 14px;
		font-family: "Space Grotesk", system-ui, sans-serif; font-size: 19px; font-weight: 700; line-height: 1.1;
		color: #3a2820; /* same face, size and colour as .gfo-co-step */
	}
}
/* Phones: 1 Alamat → 2 Pesanan → 3 Pembayaran, then the pay bar. */
@media (max-width: 900px) {
	.woocommerce-checkout #customer_details { order: 1; }
	.woocommerce-checkout #order_review_heading { order: 2; margin-top: 4px; }
	.woocommerce-checkout #order_review { order: 3; }
	.woocommerce-checkout #payment { order: 4; }
	.gfo-id-paybar {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 9997; display: flex; align-items: center; gap: 12px;
		padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid rgba(58, 40, 32, .14);
		box-shadow: 0 -6px 18px rgba(0, 0, 0, .08);
	}
	.gfo-id-paybar__tot { flex: 1; min-width: 0; }
	.gfo-id-paybar__tot small { display: block; font-size: 12px; color: var(--gfo-text-muted, #5b514b); }
	.gfo-id-paybar__tot b { font-family: var(--gfo-font-display, inherit); font-size: 18px; color: var(--gfo-ink, #1f1a17); }
	.gfo-id-paybar__btn {
		padding: 13px 20px; border: 0; border-radius: 10px; background: var(--gfo-terracotta, #b4532a); color: #fff;
		font: 700 15px var(--gfo-font-body, sans-serif); cursor: pointer; white-space: nowrap;
	}
	body.gfo-id-has-paybar { padding-bottom: 76px; }
	body.gfo-id-has-paybar .gfo-chat { bottom: 84px; }
	/* The "Chat dengan kami" label floated over the card box; on checkout (and the Airwallex payment page)
	   only the round icon shows. */
	.woocommerce-checkout .gfo-chat__bubble,
	.gfo-awx-paypage .gfo-chat__bubble { display: none; }
}
@media (min-width: 901px) { .gfo-id-paybar { display: none; } }
