/* ------------------------------------------------------------------
   Styling for WooCommerce (registration, merch, checkout) and
   Gravity Forms (registration questionnaire), so both match the site.
   These plugins change their markup between versions, so check the
   registration form, basket and checkout on the preview site after
   any big plugin update.
------------------------------------------------------------------- */

/* ===== Gravity Forms (Orbital theme uses these variables) ===== */
.gform-theme--framework,
.gform_wrapper {
	--gf-color-primary: #d0aa69;
	--gf-color-primary-rgb: 208, 170, 105;
	--gf-color-primary-contrast: #17130b;
	--gf-color-primary-darker: #b8924f;
	--gf-color-primary-lighter: #e2c38b;
	--gf-color-secondary: #1d1d21;
	--gf-color-secondary-contrast: #f3efe6;
	--gf-color-in-ctrl: #141416;
	--gf-color-in-ctrl-contrast: #f3efe6;
	--gf-color-in-ctrl-dark: #3d3d44;
	--gf-color-in-ctrl-darker: #5a5a62;
	--gf-color-in-ctrl-light: #26262b;
	--gf-color-in-ctrl-primary: #d0aa69;
	--gf-color-out-ctrl-dark: #bcb5a8;
	--gf-color-out-ctrl-light: #34343a;
	--gf-color-out-ctrl-light-darker: #3d3d44;
	--gf-ctrl-border-color: #3d3d44;
	--gf-ctrl-label-color-primary: #f3efe6;
	--gf-ctrl-label-color-secondary: #bcb5a8;
	--gf-ctrl-desc-color: #bcb5a8;
	--gf-radius: 2px;
	--gf-font-size-primary: 16px;
	--gf-ctrl-size: 50px;
	--gf-form-gap-y: 26px;
	color: var(--wp--preset--color--cream);
}

/* Fallbacks for the legacy Gravity Forms markup */
.gform_wrapper .gform_body { background: var(--wp--preset--color--panel); border: 1px solid var(--wp--preset--color--line); padding: clamp(22px, 3vw, 36px); }
.gform_wrapper .gfield_label,
.gform_wrapper legend.gfield_label { font-weight: 600; font-size: 1rem; color: var(--wp--preset--color--cream); }
.gform_wrapper .gfield_required { color: var(--wp--preset--color--gold); }
.gform_wrapper .gfield_description,
.gform_wrapper .gform-field-label--type-sub { color: var(--wp--preset--color--muted); font-size: 0.875rem; }
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="url"],
.gform_wrapper input[type="number"],
.gform_wrapper select,
.gform_wrapper textarea {
	background: #141416; border: 1px solid #3d3d44; color: var(--wp--preset--color--cream);
	border-radius: 2px; min-height: 50px; padding: 12px 14px; font-size: 16px;
}
.gform_wrapper input:focus,
.gform_wrapper select:focus,
.gform_wrapper textarea:focus { outline: 2px solid var(--wp--preset--color--gold); outline-offset: 1px; }

/* Radio and checkbox answers as big tappable boxes */
.gform_wrapper .gfield_radio,
.gform_wrapper .gfield_checkbox { display: flex; flex-wrap: wrap; gap: 8px; }
.gform_wrapper .gchoice {
	display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 16px;
	border: 1px solid #3d3d44; background: #141416; border-radius: 2px; margin: 0;
}
.gform_wrapper .gchoice:has(input:checked) { border-color: var(--wp--preset--color--gold); background: rgba(208, 170, 105, 0.12); }
.gform_wrapper .gchoice input { accent-color: #d0aa69; width: 18px; height: 18px; margin: 0; }
.gform_wrapper .gchoice label { margin: 0; font-size: 0.9375rem; }
/* Long answers (like the five playing levels) stack as full-width cards */
.gform_wrapper .sjp-stack .gfield_radio { flex-direction: column; }
.gform_wrapper .sjp-stack .gchoice { align-items: flex-start; padding: 14px 16px; }

/* Progress bar */
.gform_wrapper .gf_progressbar_wrapper { margin-bottom: 28px; }
.gform_wrapper .gf_progressbar_title { color: var(--wp--preset--color--cream); font-weight: 600; font-size: 1rem; }
.gform_wrapper .gf_progressbar { background: var(--wp--preset--color--panel-light); border-radius: 0; height: 6px; }
.gform_wrapper .gf_progressbar_percentage { background: var(--wp--preset--color--gold) !important; border-radius: 0; height: 6px; }
.gform_wrapper .gf_progressbar_percentage span { display: none; }

/* Buttons */
.gform_wrapper .gform_next_button,
.gform_wrapper .gform_button,
.gform_wrapper input[type="submit"] {
	background: var(--wp--preset--color--gold) !important; color: #17130b !important; border: 0 !important;
	font-weight: 700 !important; text-transform: uppercase; letter-spacing: 0.04em; min-height: 48px; padding: 0 24px !important; border-radius: 2px !important; cursor: pointer;
}
.gform_wrapper .gform_previous_button {
	background: transparent !important; color: var(--wp--preset--color--muted) !important; border: 0 !important; font-weight: 600 !important;
}
.gform_wrapper .gform_page_footer { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; }
.gform_wrapper .gfield_validation_message,
.gform_wrapper .validation_message { background: rgba(131, 40, 58, 0.35); border: 1px solid #e7a3ad; color: #f6e6d0; }
.gform_wrapper .gform_validation_errors { background: rgba(131, 40, 58, 0.35); border: 1px solid #e7a3ad; }
.gform_wrapper .gform_validation_errors > h2 { color: #f6e6d0; }

/* ===== WooCommerce ===== */
.woocommerce,
.wc-block-components-sidebar-layout { color: var(--wp--preset--color--cream); }
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.wc-block-components-button:not(.is-link),
.wp-block-woocommerce-product-button .wp-block-button__link,
.add_to_cart_button {
	background: var(--wp--preset--color--gold) !important; color: #17130b !important; border: 0 !important;
	border-radius: 2px !important; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; min-height: 46px;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.wc-block-components-button:not(.is-link):hover { background: var(--wp--preset--color--gold-light) !important; }

/* Product grid (merch shop) */
.wc-block-product-template .wc-block-product,
.woocommerce ul.products li.product {
	background: var(--wp--preset--color--panel); border: 1px solid var(--wp--preset--color--line); padding: 0 0 22px;
}
.wc-block-product-template .wc-block-product > *:not(.wc-block-components-product-image),
.woocommerce ul.products li.product > *:not(a:first-child) { padding-left: 22px; padding-right: 22px; }
.wc-block-components-product-image img { aspect-ratio: 1 / 1; object-fit: cover; }
.wp-block-post-title a,
.woocommerce-loop-product__title { color: var(--wp--preset--color--cream); text-decoration: none; }
.wc-block-components-product-price,
.woocommerce .price,
.woocommerce-Price-amount { color: var(--wp--preset--color--gold); font-weight: 600; }
.wc-block-components-product-sale-badge,
.woocommerce span.onsale { background: var(--wp--preset--color--charcoal); color: var(--wp--preset--color--gold); border: 0; border-radius: 0; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; }

/* Size and rate pickers on product pages */
.woocommerce div.product form.cart .variations select,
.wc-block-add-to-cart-form select {
	background: #141416; color: var(--wp--preset--color--cream); border: 1px solid #3d3d44; min-height: 46px; padding: 0 12px; border-radius: 2px;
}
.woocommerce .quantity .qty { background: #141416; color: var(--wp--preset--color--cream); border: 1px solid #3d3d44; min-height: 46px; }

/* Basket and checkout */
.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-blocks-components-select .wc-blocks-components-select__select,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	background: #141416 !important; color: var(--wp--preset--color--cream) !important; border: 1px solid #3d3d44 !important; border-radius: 2px !important;
}
.wc-block-components-text-input label,
.wc-blocks-components-select__label { color: var(--wp--preset--color--muted) !important; }
.wc-block-components-totals-wrapper,
.wc-block-components-order-summary,
.wc-block-cart-items,
.woocommerce table.shop_table { border-color: var(--wp--preset--color--line) !important; }
.wc-block-components-sidebar,
.woocommerce-checkout-review-order { background: var(--wp--preset--color--panel); border: 1px solid var(--wp--preset--color--line); padding: 20px; }
.wc-block-components-notice-banner,
.woocommerce-message,
.woocommerce-info { background: var(--wp--preset--color--panel); color: var(--wp--preset--color--cream); border: 1px solid var(--wp--preset--color--gold); }
.wc-block-components-radio-control__option,
.wc-block-components-checkbox label { color: var(--wp--preset--color--cream); }
.wc-block-components-panel__button,
.wc-block-components-totals-item__label { color: var(--wp--preset--color--cream); }
