/**
 * WooCommerce – Cart and Checkout blocks (page-cart / page-checkout templates,
 * parts/header-checkout, parts/footer-checkout, order-pay). Loaded only where
 * the cart or the checkout renders, after common.css (variables, notices).
 *
 * Block form controls: fields #333 r15 with floating labels, gold focus ring,
 * custom but native (appearance: none) checkbox and radio, errors in
 * #FE7762 with WooCommerce's icon and text. WooCommerce's own selectors
 * reach (0,5,1); every override matches that and loads later.
 */

.dubianna-woo {
	--wc-separator-color: var(--color-border);
}

/* -------------------------------------------------------------------------
 * Block components: text input (floating label)
 * ---------------------------------------------------------------------- */

.dubianna-woo .wc-block-components-text-input {
	margin-block-start: var(--space-sm);
	line-height: 1;
}

.dubianna-woo .wc-block-components-text-input :is(input[type="email"], input[type="number"], input[type="password"], input[type="tel"], input[type="text"], input[type="url"]) {
	box-sizing: border-box;
	block-size: var(--woo-field-height);
	min-block-size: var(--woo-field-height);
	padding: 0 1rem;
	border: 1px solid var(--woo-field-border);
	border-radius: var(--woo-field-radius);
	background-color: var(--woo-field-bg);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: var(--fs-body);
	line-height: 1.5rem;
	transition: border-color var(--duration-fast) var(--ease);
}

.dubianna-woo .wc-block-components-text-input :is(input[type="email"], input[type="number"], input[type="password"], input[type="tel"], input[type="text"], input[type="url"]):hover {
	border-color: var(--woo-control-border);
}

.dubianna-woo .wc-block-components-text-input :is(input[type="email"], input[type="number"], input[type="password"], input[type="tel"], input[type="text"], input[type="url"]):focus {
	border: 1px solid var(--color-gold);
	outline: var(--woo-focus-ring);
	outline-offset: var(--woo-focus-offset);
	background-color: var(--woo-field-bg);
	color: var(--color-text);
	box-shadow: none;
}

.dubianna-woo .wc-block-components-text-input.is-active :is(input[type="email"], input[type="number"], input[type="password"], input[type="tel"], input[type="text"], input[type="url"]),
.dubianna-woo .wc-block-components-text-input input:-webkit-autofill {
	padding: 1.375rem 1rem 0.375rem;
}

/* WooCommerce re-pads a focused, filled field at (0,5,1); keep the text still. */
.dubianna-woo .wc-block-components-text-input.is-active :is(input[type="email"], input[type="number"], input[type="password"], input[type="tel"], input[type="text"], input[type="url"]):focus,
.dubianna-woo .wc-block-components-text-input.is-active input:-webkit-autofill:focus {
	padding: 1.375rem 1rem 0.375rem;
}

.dubianna-woo .wc-block-components-text-input label {
	inset-inline-start: 1rem;
	inset-block-start: calc(var(--woo-field-height) / 2);
	max-inline-size: calc(100% - 2rem);
	color: var(--color-text-muted);
	font-size: var(--fs-body);
	line-height: 1.5rem;
}

.dubianna-woo .wc-block-components-text-input.is-active label,
.dubianna-woo .wc-block-components-text-input input:-webkit-autofill + label {
	inset-block-start: 0.5rem;
	transform: scale(0.8125);
}

.dubianna-woo .wc-block-components-text-input input::placeholder {
	color: var(--color-text-muted);
	opacity: 1;
}

/* Autofill: keep the dark field instead of the browser's pale yellow. */
.dubianna-woo .wc-block-components-text-input input:-webkit-autofill {
	-webkit-text-fill-color: var(--color-text);
	box-shadow: 0 0 0 100vmax var(--woo-field-bg) inset;
	caret-color: var(--color-text);
}

/* -------------------------------------------------------------------------
 * Block components: select (country / state)
 * ---------------------------------------------------------------------- */

.dubianna-woo .wc-blocks-components-select .wc-blocks-components-select__container {
	border-radius: var(--woo-field-radius);
	background-color: var(--woo-field-bg);
	color: var(--color-text);
}

.dubianna-woo .wc-blocks-components-select .wc-blocks-components-select__select {
	block-size: var(--woo-field-height);
	padding: 1.375rem 2.75rem 0.375rem 1rem;
	border: 1px solid var(--woo-field-border);
	border-radius: var(--woo-field-radius);
	background: transparent;
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: var(--fs-body);
	line-height: 1.5rem;
}

.dubianna-woo .wc-blocks-components-select .wc-blocks-components-select__select:focus {
	padding: 1.375rem 2.75rem 0.375rem 1rem;
	border: 1px solid var(--color-gold);
	outline: var(--woo-focus-ring);
	outline-offset: var(--woo-focus-offset);
}

.dubianna-woo .wc-blocks-components-select .wc-blocks-components-select__select option {
	background-color: var(--woo-field-bg);
	color: var(--color-text);
}

.dubianna-woo .wc-blocks-components-select .wc-blocks-components-select__label {
	inset-inline-start: 1rem;
	inset-block-start: 0.5rem;
	color: var(--color-text-muted);
	font-size: var(--fs-eyebrow);
}

.dubianna-woo .wc-blocks-components-select .wc-blocks-components-select__expand {
	inset-inline-end: 1rem;
	fill: var(--color-text);
}

/* -------------------------------------------------------------------------
 * Block components: textarea
 * ---------------------------------------------------------------------- */

.dubianna-woo .wc-block-components-textarea {
	padding: 1rem;
	border: 1px solid var(--woo-field-border);
	border-radius: var(--woo-field-radius);
	background-color: var(--woo-field-bg);
	color: var(--color-text);
	font-size: var(--fs-body);
	line-height: 1.5;
}

.dubianna-woo .wc-block-components-textarea::placeholder {
	color: var(--color-text-muted);
}

.dubianna-woo .wc-block-components-textarea:not(:placeholder-shown) {
	color: var(--color-text);
}

.dubianna-woo .wc-block-components-textarea:focus {
	border: 1px solid var(--color-gold);
	outline: var(--woo-focus-ring);
	outline-offset: var(--woo-focus-offset);
	background-color: var(--woo-field-bg);
	box-shadow: none;
}

/* -------------------------------------------------------------------------
 * Block components: checkbox
 * The native input stays in place (appearance: none) – keyboard, label
 * click and screen readers keep working; the tick is WooCommerce's SVG.
 * ---------------------------------------------------------------------- */

.dubianna-woo .wc-block-components-checkbox label {
	gap: var(--space-xs);
	color: var(--color-text);
	font-size: var(--fs-small);
	line-height: 1.5;
}

.dubianna-woo .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] {
	inline-size: 1.375rem;
	min-inline-size: 1.375rem;
	block-size: 1.375rem;
	border: 1px solid var(--woo-control-border);
	border-radius: calc(var(--radius-sm) / 2);
	background-color: var(--woo-field-bg);
	cursor: pointer;
	transition: background-color var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease);
}

.dubianna-woo .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked {
	border-color: var(--color-gold-strong);
	background: var(--color-gold-strong);
}

.dubianna-woo .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:focus-visible {
	outline: var(--woo-focus-ring);
	outline-offset: var(--woo-focus-offset);
}

.dubianna-woo .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:focus:not(:focus-visible) {
	outline: none;
}

.dubianna-woo .wc-block-components-checkbox .wc-block-components-checkbox__mark {
	inline-size: 1.125rem;
	block-size: 1.125rem;
	margin-block-start: 0.125rem;
	margin-inline-start: 0.125rem;
	fill: var(--color-light);
}

.dubianna-woo .wc-block-components-checkbox.has-error,
.dubianna-woo .wc-block-components-checkbox.has-error a {
	color: var(--color-error);
}

.dubianna-woo .wc-block-components-checkbox.has-error .wc-block-components-checkbox__input {
	border-color: var(--color-error);
}

.dubianna-woo .wc-block-components-checkbox.has-error .wc-block-components-checkbox__input:focus {
	outline: var(--focus-width) solid var(--color-error);
	outline-offset: var(--woo-focus-offset);
}

/* -------------------------------------------------------------------------
 * Block components: radio (payment methods, shipping options)
 * ---------------------------------------------------------------------- */

.dubianna-woo .wc-block-components-radio-control .wc-block-components-radio-control__input {
	inline-size: 1.375rem;
	min-inline-size: 1.375rem;
	block-size: 1.375rem;
	border: 1px solid var(--woo-control-border);
	background-color: var(--woo-field-bg);
	cursor: pointer;
}

.dubianna-woo .wc-block-components-radio-control .wc-block-components-radio-control__input:checked {
	border: 2px solid var(--color-gold);
}

.dubianna-woo .wc-block-components-radio-control .wc-block-components-radio-control__input:checked::before {
	inline-size: 0.625rem;
	block-size: 0.625rem;
	background: var(--color-gold);
}

.dubianna-woo .wc-block-components-radio-control .wc-block-components-radio-control__input:focus {
	outline: var(--woo-focus-ring);
	outline-offset: var(--woo-focus-offset);
}

.dubianna-woo .wc-block-components-radio-control .wc-block-components-radio-control__input:focus:not(:focus-visible) {
	outline: none;
}

.dubianna-woo .wc-block-components-radio-control__option,
.dubianna-woo .wc-block-components-radio-control-accordion-option {
	color: var(--color-text);
}

.dubianna-woo :is(.wc-block-components-radio-control__label, .wc-block-components-radio-control__secondary-label) {
	font-size: var(--fs-body);
	font-weight: 600;
}

.dubianna-woo :is(.wc-block-components-radio-control__description, .wc-block-components-radio-control__secondary-description) {
	color: var(--color-text-muted);
	font-size: var(--fs-small);
}

/* Highlighted (bordered) radio group: gold border on the chosen option. */
.dubianna-woo .wc-block-components-radio-control--highlight-checked::after {
	border-color: var(--color-border);
	border-radius: var(--woo-field-radius);
}

.dubianna-woo .wc-block-components-radio-control--highlight-checked :is(.wc-block-components-radio-control-accordion-option--checked-option-highlighted, label.wc-block-components-radio-control__option--checked-option-highlighted) {
	border-radius: var(--woo-field-radius);
	box-shadow: inset 0 0 0 1px var(--color-gold);
}

.dubianna-woo .wc-block-components-radio-control--highlight-checked :is(div.wc-block-components-radio-control-accordion-option, .wc-block-components-radio-control__option)::after {
	background: var(--color-border);
}

.dubianna-woo .wc-block-components-radio-control-accordion-content {
	color: var(--color-text-subtle);
	font-size: var(--fs-small);
}

/* -------------------------------------------------------------------------
 * Validation (fields and checkboxes): colour + icon + text
 * ---------------------------------------------------------------------- */

.dubianna-woo .wc-block-components-validation-error {
	padding-block-start: var(--space-2xs);
	color: var(--color-error);
	font-size: var(--fs-small);
	line-height: 1.4;
}

.dubianna-woo .wc-block-components-validation-error > p {
	gap: var(--space-2xs);
	line-height: 1.4;
}

.dubianna-woo .wc-block-components-text-input.has-error :is(input, input:hover, input:focus, input:active),
.dubianna-woo .has-error .wc-blocks-components-select .wc-blocks-components-select__select {
	border-color: var(--color-error);
}

.dubianna-woo .wc-block-components-text-input.has-error input:focus {
	outline-color: var(--color-error);
	box-shadow: none;
}

.dubianna-woo .wc-block-components-text-input.has-error label,
.dubianna-woo .has-error .wc-blocks-components-select .wc-blocks-components-select__label,
.dubianna-woo .has-error .wc-blocks-components-select .wc-blocks-components-select__select {
	color: var(--color-error);
}

.dubianna-woo .has-error .wc-blocks-components-select .wc-blocks-components-select__expand {
	fill: var(--color-error);
}

/* -------------------------------------------------------------------------
 * Buttons: WooCommerce's block buttons already carry .wp-element-button
 * (theme.json → gold-strong fill, r15). Only the variants need care.
 * ---------------------------------------------------------------------- */

.dubianna-woo .wc-block-components-button:not(.is-link) {
	min-block-size: var(--control-height);
	border-radius: var(--radius-md);
	font-weight: 700;
}

.dubianna-woo .wc-block-components-button:not(.is-link):focus-visible {
	outline: var(--woo-focus-ring);
	outline-offset: var(--woo-focus-offset);
	box-shadow: none;
}

.dubianna-woo .wc-block-components-button.outlined:not(.is-link),
.dubianna-woo .wc-block-components-button.wc-block-components-totals-coupon__button {
	border: 1px solid var(--color-gold);
	background: transparent;
	color: var(--color-text);
}

.dubianna-woo .wc-block-components-button.outlined:not(.is-link):hover,
.dubianna-woo .wc-block-components-button.wc-block-components-totals-coupon__button:hover {
	background: var(--color-gold-tint);
	color: var(--color-text);
}

.dubianna-woo .wc-block-components-button:disabled,
.dubianna-woo .wc-block-components-button[aria-disabled="true"] {
	opacity: 0.6;
	cursor: not-allowed;
}

.dubianna-woo .wc-block-components-button.is-link,
.dubianna-woo button.wc-block-components-panel__button,
.dubianna-woo .wc-block-components-address-card__edit {
	color: var(--color-gold);
	font-weight: 600;
	text-underline-offset: 0.2em;
}

.dubianna-woo .wc-block-components-button.is-link:focus-visible,
.dubianna-woo button.wc-block-components-panel__button:focus-visible,
.dubianna-woo .wc-block-components-address-card__edit:focus-visible {
	outline: var(--woo-focus-ring);
	outline-offset: var(--woo-focus-offset);
	border-radius: calc(var(--radius-sm) / 2);
}

/* -------------------------------------------------------------------------
 * Loading states: WooCommerce's skeletons animate a currentColor gradient.
 * ---------------------------------------------------------------------- */

.dubianna-woo .wc-block-components-spinner::after {
	border-color: var(--color-gold);
	border-inline-start-color: transparent;
}

/* -------------------------------------------------------------------------
 * Distraction-free header: logo · "Biztonságos fizetés" · back link
 * ---------------------------------------------------------------------- */

.dubianna-checkout-header {
	padding-block: var(--space-sm);
	border-block-end: 1px solid var(--color-border);
	background-color: var(--color-background);
}

.dubianna-checkout-header__inner {
	align-items: center;
	gap: var(--space-xs) var(--space-md);
}

.dubianna-checkout-header__logo {
	flex: 0 0 auto;
	margin: 0;
}

.dubianna-checkout-header__secure,
.dubianna-checkout-header__back {
	margin: 0;
	font-size: var(--fs-small);
	line-height: 1.4;
}

.dubianna-checkout-header__secure {
	display: inline-flex;
	flex-basis: 100%;
	align-items: center;
	gap: var(--space-2xs);
	order: 3;
	color: var(--color-text-subtle);
	font-weight: 600;
}

.dubianna-checkout-header__secure::before {
	content: "";
	flex: 0 0 auto;
	inline-size: 1.125rem;
	block-size: 1.125rem;
	background-color: var(--color-gold);
	-webkit-mask: url("../../icons/lock.svg") center / contain no-repeat;
	mask: url("../../icons/lock.svg") center / contain no-repeat;
}

.dubianna-checkout-header__back {
	order: 2;
	margin-inline-start: auto;
}

.dubianna-checkout-header__back a {
	display: inline-flex;
	align-items: center;
	min-block-size: 2.75rem;
	color: var(--color-text);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--color-gold);
	text-underline-offset: 0.25em;
}

.dubianna-checkout-header__back a:hover {
	color: var(--color-gold);
}

@media (min-width: 782px) {
	.dubianna-checkout-header__secure {
		flex-basis: auto;
		order: 2;
		margin-inline-start: auto;
	}

	.dubianna-checkout-header__back {
		order: 3;
		margin-inline-start: var(--space-md);
		padding-inline-start: var(--space-md);
		border-inline-start: 1px solid var(--color-border);
	}
}

/* -------------------------------------------------------------------------
 * Minimal footer: legal links + company
 * ---------------------------------------------------------------------- */

.dubianna-checkout-footer {
	margin-block-start: var(--space-2xl);
	padding-block: var(--space-lg);
	border-block-start: 1px solid var(--color-border);
	color: var(--color-text-muted);
	font-size: var(--fs-small);
	line-height: 1.5;
}

.dubianna-checkout-footer__inner {
	align-items: center;
	gap: var(--space-xs) var(--space-lg);
}

.dubianna-checkout-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2xs) var(--space-md);
	margin: 0;
	padding: 0;
	list-style: none;
}

.dubianna-checkout-footer__links a {
	color: var(--color-text-subtle);
	text-underline-offset: 0.2em;
}

.dubianna-checkout-footer__links a:hover {
	color: var(--color-gold);
}

.dubianna-checkout-footer__company {
	margin: 0;
}

/* -------------------------------------------------------------------------
 * Page shell
 * ---------------------------------------------------------------------- */

:is(.dubianna-woo--checkout, .dubianna-woo--cart) {
	padding-block: var(--space-lg) 0;
}

:is(.dubianna-woo--checkout, .dubianna-woo--cart) .dubianna-woo__title {
	margin-block: 0 var(--space-md);
	font-size: var(--fs-h3);
	font-weight: 700;
	line-height: 1.2;
}

/* -------------------------------------------------------------------------
 * Checkout: steps
 * ---------------------------------------------------------------------- */

.dubianna-woo .wc-block-components-form .wc-block-components-checkout-step {
	margin-block-end: var(--space-lg);
}

.dubianna-woo .wc-block-components-checkout-step__heading-container {
	margin-block-end: var(--space-sm);
}

.dubianna-woo .wc-block-components-checkout-step__title {
	color: var(--color-text);
	font-size: var(--fs-lead);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0;
}

.dubianna-woo :is(.wc-block-components-checkout-step__description, .wc-block-components-checkout-step__heading-content, .wc-block-checkout__guest-checkout-notice) {
	color: var(--color-text-muted);
	font-size: var(--fs-small);
	line-height: 1.5;
}

.dubianna-woo :is(.wc-block-checkout__login-prompt, .wc-block-components-checkout-step__heading-content a) {
	color: var(--color-gold);
	font-weight: 600;
}

.dubianna-woo .wc-block-components-address-card {
	padding: var(--space-md);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background-color: var(--color-surface);
	color: var(--color-text);
}

.dubianna-woo .wc-block-components-address-form__address_2-toggle {
	color: var(--color-gold);
}

/* Payment method panel under the chosen option. */
.dubianna-woo .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-content {
	padding-block-end: var(--space-sm);
}

/* Terms & conditions line above the button. */
.dubianna-woo .wc-block-checkout__terms {
	margin-block: var(--space-md);
	color: var(--color-text-muted);
	font-size: var(--fs-small);
	line-height: 1.5;
}

.dubianna-woo .wc-block-checkout__terms a {
	color: var(--color-gold);
}

.dubianna-woo .wc-block-checkout__terms.wc-block-checkout__terms--with-separator {
	padding-block-start: var(--space-md);
	border-block-start: 1px solid var(--color-border);
}

/* -------------------------------------------------------------------------
 * Checkout: place order = the primary button, full width
 * The cart is skipped (direct checkout), so "back to cart" is hidden.
 * ---------------------------------------------------------------------- */

.dubianna-woo .wc-block-checkout__actions .wc-block-checkout__actions_row {
	flex-direction: column-reverse;
	align-items: stretch;
	gap: var(--space-sm);
}

.dubianna-woo .wc-block-components-checkout-return-to-cart-button {
	display: none;
}

.dubianna-woo .wc-block-components-checkout-place-order-button {
	inline-size: 100%;
	min-block-size: var(--woo-field-height);
	padding: 0.875rem var(--space-lg);
	font-size: var(--fs-lead);
}

/* -------------------------------------------------------------------------
 * Order summary (checkout sidebar, cart totals): surface card
 * ---------------------------------------------------------------------- */

.dubianna-woo :is(.wp-block-woocommerce-checkout-order-summary-block, .wp-block-woocommerce-cart-order-summary-block) {
	padding: var(--space-md);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-sm);
	background-color: var(--color-surface);
	color: var(--color-text);
}

.dubianna-woo .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title {
	margin-block-start: 0;
}

.dubianna-woo .wp-block-woocommerce-checkout-order-summary-block .wc-block-components-checkout-order-summary__title .wc-block-components-checkout-order-summary__title-text,
.dubianna-woo :is(.wc-block-components-order-summary .wc-block-components-panel__button, .wc-block-cart__totals-title) {
	margin: 0;
	color: var(--color-text);
	font-size: var(--fs-lead);
	font-weight: 700;
}

.dubianna-woo .wc-block-components-checkout-order-summary__title-price {
	font-weight: 700;
}

.dubianna-woo .wc-block-components-checkout-order-summary__title-icon {
	fill: var(--color-gold);
}

.dubianna-woo .wc-block-components-order-summary-item__image img {
	border-radius: var(--radius-sm);
}

.dubianna-woo .wc-block-components-order-summary-item__quantity {
	border: 1px solid var(--color-gold);
	background: var(--color-surface);
	box-shadow: 0 0 0 2px var(--color-surface);
	color: var(--color-text);
}

.dubianna-woo :is(.wc-block-components-product-name, .wc-block-components-order-summary-item__description) {
	color: var(--color-text);
	font-weight: 600;
}

.dubianna-woo :is(.wc-block-components-product-metadata, .wc-block-components-order-summary-item__individual-prices, .wc-block-components-totals-item__description) {
	color: var(--color-text-muted);
	font-size: var(--fs-small);
}

.dubianna-woo .wc-block-components-totals-wrapper {
	border-color: var(--color-border);
}

.dubianna-woo .wc-block-components-totals-item {
	color: var(--color-text-subtle);
}

.dubianna-woo .wc-block-components-totals-footer-item {
	color: var(--color-text);
}

.dubianna-woo .wc-block-components-totals-footer-item :is(.wc-block-components-totals-item__label, .wc-block-components-totals-item__value) {
	font-size: var(--fs-lead);
	font-weight: 700;
}

.dubianna-woo .wc-block-components-totals-coupon .wc-block-components-panel__button {
	color: var(--color-gold);
	font-size: var(--fs-small);
	font-weight: 600;
}

.dubianna-woo .wc-block-components-totals-coupon .wc-block-components-panel__button-icon {
	fill: currentColor;
}

.dubianna-woo .wc-block-components-totals-discount__coupon-list .wc-block-components-chip {
	border: 1px solid var(--color-gold);
	border-radius: var(--radius-lg);
	background: transparent;
	color: var(--color-text);
}

@media (min-width: 782px) {
	.dubianna-woo :is(.wp-block-woocommerce-checkout-order-summary-block, .wp-block-woocommerce-cart-order-summary-block) {
		padding: var(--space-lg);
	}
}

/* -------------------------------------------------------------------------
 * Cart (rarely visited: buy buttons skip it)
 * ---------------------------------------------------------------------- */

.dubianna-woo table.wc-block-cart-items {
	color: var(--color-text);
}

.dubianna-woo table.wc-block-cart-items :is(th, td) {
	border-color: var(--color-border);
}

.dubianna-woo table.wc-block-cart-items .wc-block-cart-items__header {
	color: var(--color-text-muted);
	font-size: var(--fs-eyebrow);
	letter-spacing: var(--ls-eyebrow);
	text-transform: uppercase;
}

.dubianna-woo .wc-block-cart-item__image img {
	border-radius: var(--radius-sm);
}

.dubianna-woo .wc-block-cart-item__product .wc-block-components-product-name {
	color: var(--color-text);
	text-decoration: none;
}

.dubianna-woo .wc-block-cart-item__product .wc-block-components-product-name:hover {
	color: var(--color-gold);
}

.dubianna-woo .wc-block-cart-item__remove-link {
	color: var(--color-text-muted) !important; /* WooCommerce sets it with !important. */
	font-size: var(--fs-small) !important; /* WooCommerce sets it with !important. */
}

.dubianna-woo .wc-block-cart__submit-button {
	inline-size: 100%;
	min-block-size: var(--woo-field-height);
	font-size: var(--fs-lead);
}

/* Empty cart: short message and one way back to the programs. */
.dubianna-woo .wp-block-woocommerce-empty-cart-block {
	padding-block: var(--space-xl);
	text-align: center;
}

.dubianna-woo .wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title {
	font-size: var(--fs-h3);
}

.dubianna-woo .wp-block-woocommerce-empty-cart-block .with-empty-cart-icon::before {
	inline-size: 3.5rem;
	block-size: 3.5rem;
	margin-block-end: var(--space-md);
	background-color: var(--color-gold);
}

.dubianna-woo .dubianna-empty-cart__text {
	color: var(--color-text-subtle);
}

.dubianna-woo .wp-block-buttons.dubianna-empty-cart__actions {
	justify-content: center;
}

/* Empty checkout (cart emptied in another tab). */
.dubianna-woo .wc-block-checkout-empty .wc-block-checkout-empty__image {
	fill: var(--color-gold);
}

/* -------------------------------------------------------------------------
 * Classic checkout (D-49): the shop's Barion gateway has no Checkout block
 * integration, so /penztar/ renders [woocommerce_checkout]. Wide screens:
 * customer details on the left, order + payment on a card on the right.
 * Fields, checkboxes and notices come from common.css.
 * ---------------------------------------------------------------------- */

.dubianna-woo .dubianna-classic-checkout form.checkout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-md) var(--space-xl);
	align-items: start;
}

.dubianna-woo .dubianna-classic-checkout form.checkout > .woocommerce-NoticeGroup {
	grid-column: 1 / -1;
}

@media (min-width: 960px) {
	.dubianna-woo .dubianna-classic-checkout form.checkout {
		grid-template-columns: minmax(0, 1fr) minmax(22rem, 30rem);
	}

	.dubianna-woo .dubianna-classic-checkout form.checkout > #customer_details {
		grid-column: 1;
		grid-row: 1 / span 2;
	}

	.dubianna-woo .dubianna-classic-checkout form.checkout > #order_review_heading {
		grid-column: 2;
		grid-row: 1;
	}

	.dubianna-woo .dubianna-classic-checkout form.checkout > #order_review {
		position: sticky;
		inset-block-start: var(--space-lg);
		grid-column: 2;
		grid-row: 2;
	}
}

/* Customer details: one column of WooCommerce's col2-set is enough (no shipping). */
.dubianna-woo .dubianna-classic-checkout .col2-set :is(.col-1, .col-2) {
	float: none;
	inline-size: auto;
}

.dubianna-woo .dubianna-classic-checkout .col2-set::after {
	content: none;
}

.dubianna-woo .dubianna-classic-checkout :is(.woocommerce-billing-fields, .woocommerce-additional-fields) > h3,
.dubianna-woo .dubianna-classic-checkout #order_review_heading {
	margin: 0 0 var(--space-sm);
	font-size: var(--fs-h3);
	line-height: var(--lh-heading);
}

.dubianna-woo .dubianna-classic-checkout .woocommerce-billing-fields__field-wrapper {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: var(--space-md);
}

.dubianna-woo .dubianna-classic-checkout .woocommerce-billing-fields__field-wrapper > .form-row {
	grid-column: 1 / -1;
	float: none;
	inline-size: auto;
	margin: 0 0 var(--space-sm);
	padding: 0;
}

.dubianna-woo .dubianna-classic-checkout .woocommerce-billing-fields__field-wrapper > .form-row-first {
	grid-column: 1;
}

.dubianna-woo .dubianna-classic-checkout .woocommerce-billing-fields__field-wrapper > .form-row-last {
	grid-column: 2;
}

@media (max-width: 599px) {
	.dubianna-woo .dubianna-classic-checkout .woocommerce-billing-fields__field-wrapper > :is(.form-row-first, .form-row-last) {
		grid-column: 1 / -1;
	}
}

/* Order + payment card. */
.dubianna-woo .dubianna-classic-checkout #order_review {
	padding: var(--space-md);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	background-color: var(--color-surface);
}

@media (min-width: 782px) {
	.dubianna-woo .dubianna-classic-checkout #order_review {
		padding: var(--space-lg);
	}
}

.dubianna-woo .dubianna-classic-checkout table.woocommerce-checkout-review-order-table {
	inline-size: 100%;
	margin: 0 0 var(--space-md);
	border: 0;
	border-collapse: collapse;
	border-radius: 0;
	color: var(--color-text);
	font-size: var(--fs-small);
}

.dubianna-woo .dubianna-classic-checkout table.woocommerce-checkout-review-order-table :is(th, td) {
	padding: var(--space-xs) 0;
	border: 0;
	border-block-end: 1px solid var(--color-border);
	background: transparent;
	text-align: start;
	vertical-align: top;
}

.dubianna-woo .dubianna-classic-checkout table.woocommerce-checkout-review-order-table :is(th, td):last-child {
	padding-inline-start: var(--space-sm);
	text-align: end;
}

.dubianna-woo .dubianna-classic-checkout table.woocommerce-checkout-review-order-table thead th {
	color: var(--color-text-muted);
	font-size: var(--fs-eyebrow);
	font-weight: 600;
	letter-spacing: var(--ls-eyebrow);
	text-transform: uppercase;
}

.dubianna-woo .dubianna-classic-checkout table.woocommerce-checkout-review-order-table .product-name .product-quantity {
	color: var(--color-text-muted);
	font-weight: 400;
}

.dubianna-woo .dubianna-classic-checkout table.woocommerce-checkout-review-order-table tfoot th {
	font-weight: 400;
}

.dubianna-woo .dubianna-classic-checkout table.woocommerce-checkout-review-order-table tr:is(.order-total, .recurring-total) :is(th, td) {
	border-block-end: 0;
	font-size: var(--fs-body);
	font-weight: 700;
}

.dubianna-woo .dubianna-classic-checkout table.woocommerce-checkout-review-order-table :is(.includes_tax, .first-payment-date) {
	display: block;
	color: var(--color-text-muted);
	font-size: var(--fs-eyebrow);
	font-weight: 400;
}

/* WooCommerce Subscriptions: the monthly price under the program name ("14 990 Ft / hó"). */
.dubianna-woo .dubianna-classic-checkout table.woocommerce-checkout-review-order-table .wcs-checkout-item-price {
	color: var(--color-text-muted);
	font-size: var(--fs-eyebrow);
}

/* WooCommerce Subscriptions: "Ismétlődő díj" opens the recurring rows, styled like the table head. */
.dubianna-woo .dubianna-classic-checkout table.woocommerce-checkout-review-order-table tr.recurring-totals th {
	padding-block-start: var(--space-md);
	padding-inline-start: 0;
	color: var(--color-text-muted);
	font-size: var(--fs-eyebrow);
	font-weight: 600;
	letter-spacing: var(--ls-eyebrow);
	text-align: start;
	text-transform: uppercase;
}

/* Payment methods: one bordered row each; the description on the page background. */
.dubianna-woo .dubianna-classic-checkout #payment {
	border-radius: 0;
	background: transparent;
}

.dubianna-woo .dubianna-classic-checkout #payment ul.payment_methods {
	margin: 0 0 var(--space-md);
	padding: 0;
	border: 0;
	list-style: none;
}

.dubianna-woo .dubianna-classic-checkout #payment ul.payment_methods > li {
	margin: 0 0 var(--space-xs);
	padding: var(--space-sm);
	border: 1px solid var(--color-border-strong);
	border-radius: var(--radius-md);
	background-color: var(--color-surface-2);
	line-height: 1.5;
}

.dubianna-woo .dubianna-classic-checkout #payment ul.payment_methods > li:has(> input:checked) {
	border-color: var(--color-gold);
}

.dubianna-woo .dubianna-classic-checkout #payment ul.payment_methods > li > input[type="radio"] {
	margin: 0 var(--space-2xs) 0 0;
	accent-color: var(--color-gold);
	vertical-align: middle;
}

.dubianna-woo .dubianna-classic-checkout #payment ul.payment_methods > li > label {
	display: inline;
	color: var(--color-text);
	font-weight: 600;
	cursor: pointer;
}

.dubianna-woo .dubianna-classic-checkout #payment ul.payment_methods > li img {
	display: inline-block;
	max-block-size: 1.375rem;
	margin: 0.25rem 0.25rem 0 0;
	vertical-align: middle;
}

.dubianna-woo .dubianna-classic-checkout #payment div.payment_box {
	margin: var(--space-xs) 0 0;
	padding: var(--space-xs) var(--space-sm);
	border-radius: var(--radius-sm);
	background-color: var(--color-background);
	color: var(--color-text-muted);
	font-size: var(--fs-small);
}

.dubianna-woo .dubianna-classic-checkout #payment div.payment_box::before {
	content: none;
}

.dubianna-woo .dubianna-classic-checkout #payment div.payment_box p:last-child {
	margin-block-end: 0;
}

.dubianna-woo .dubianna-classic-checkout #payment div.form-row.place-order {
	margin: 0;
	padding: 0;
}

.dubianna-woo .dubianna-classic-checkout .woocommerce-privacy-policy-text :is(p, p a) {
	color: var(--color-text-muted);
	font-size: var(--fs-eyebrow);
	line-height: 1.55;
}

.dubianna-woo .dubianna-classic-checkout .woocommerce-privacy-policy-text p a {
	color: var(--color-gold);
}

.dubianna-woo .dubianna-classic-checkout .place-order :is(.woocommerce-terms-and-conditions-wrapper .form-row, .dubianna-consent) {
	margin: 0 0 var(--space-sm);
	padding: 0;
	font-size: var(--fs-small);
}

.dubianna-woo .dubianna-classic-checkout #place_order {
	float: none;
	inline-size: 100%;
	min-block-size: var(--woo-field-height);
	margin-block-start: var(--space-xs);
	font-size: var(--fs-lead);
}

/* Login and coupon forms opened from the notices above the checkout. */
.dubianna-woo .dubianna-classic-checkout :is(form.woocommerce-form-login, form.checkout_coupon) {
	margin: 0 0 var(--space-md);
	padding: var(--space-md);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	background-color: var(--color-surface);
}

/* Select2 (country, state) – the same dark field as the account forms. */
.dubianna-woo .dubianna-classic-checkout .select2-container .select2-selection--single {
	block-size: var(--woo-field-height);
	border: 1px solid var(--woo-field-border);
	border-radius: var(--woo-field-radius);
	background-color: var(--woo-field-bg);
}

.dubianna-woo .dubianna-classic-checkout .select2-container .select2-selection--single .select2-selection__rendered {
	padding: 0 2.75rem 0 1rem;
	color: var(--color-text);
	line-height: calc(var(--woo-field-height) - 2px);
}

.dubianna-woo .dubianna-classic-checkout .select2-container .select2-selection--single .select2-selection__arrow {
	inset-inline-end: 0.75rem;
	block-size: 100%;
}

.select2-container--open .select2-dropdown {
	border-color: var(--woo-field-border);
	background-color: var(--woo-field-bg);
	color: var(--color-text);
}

.select2-container--open .select2-search--dropdown .select2-search__field {
	border: 1px solid var(--woo-field-border);
	border-radius: var(--radius-sm);
	background-color: var(--color-background);
	color: var(--color-text);
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] {
	background-color: var(--color-gold-strong);
	color: var(--color-light);
}
