/*
 * Hubka Theme
 *
 * Phase: 11B.4 — WooCommerce Styling
 * Purpose: Checkout presentation — form grouping, section spacing,
 * payment methods, order summary, buttons, notices. Respects the
 * intentionally minimal checkout architecture (Phase 10B) — no extra
 * navigation is introduced here.
 *
 * All classes confirmed directly from WooCommerce's shipped checkout.css
 * bundle rather than guessed.
 *
 * Rules:
 * - Reuse theme.json tokens.
 * - Use logical properties.
 * - Keep selectors shallow.
 * - Do not duplicate component styling.
 */

/* Section/step grouping: calm, generous spacing — distraction-free. */
.wc-block-components-checkout-step {
	padding-block: var(--wp--preset--spacing--50);
	border-block-end: 1px solid var(--wp--preset--color--border);
}

.wc-block-components-checkout-step:first-child {
	padding-block-start: 0;
}

.wc-block-components-checkout-step__title {
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	margin-block-end: var(--wp--preset--spacing--30);
}

.wc-block-components-checkout-step__description {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

/* Address form: base/forms.css already styles the raw inputs; this only
 * covers the grouped-field layout. */
.wc-block-components-address-form {
	gap: var(--wp--preset--spacing--30);
}

/* Payment methods (radio control): quiet, clear selected state. */
.wc-block-components-radio-control__option {
	padding-block: var(--wp--preset--spacing--30);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 0.375rem;
	margin-block-end: var(--wp--preset--spacing--20);
}

.wc-block-components-radio-control__option-checked {
	border-color: var(--wp--preset--color--primary);
}

.wc-block-components-radio-control__label {
	font-weight: 600;
	color: var(--wp--preset--color--text);
}

.wc-block-components-radio-control__description {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

/* Order summary sidebar: same quiet-panel treatment as Cart's totals. */
.wc-block-checkout__sidebar {
	background-color: var(--wp--preset--color--background-secondary);
	border-radius: 0.5rem;
	padding: var(--wp--preset--spacing--40);
}

/* Terms and actions: understated, not a wall of legalese. */
.wc-block-checkout__terms {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	margin-block: var(--wp--preset--spacing--30);
}

.wc-block-components-checkout-place-order-button {
	inline-size: 100%;
	padding-block: var(--wp--preset--spacing--30);
}

/* Empty/error checkout states: calm, not alarming. */
.wc-block-checkout-empty__title,
.wc-block-checkout-error__title {
	font-size: var(--wp--preset--font-size--large);
	margin-block-end: var(--wp--preset--spacing--20);
}

.wc-block-checkout-empty__description,
.wc-block-checkout-error__description {
	color: var(--wp--preset--color--muted);
}
