/*
 * WyCart Builder — Proceed to Checkout widget styles.
 *
 * Structure + accessibility defaults; colours/spacing come from Elementor controls.
 *
 * @package Wycan\WYCB
 * @since   1.0.0
 */

.elementor-widget-wycb-checkout-button {
	width: 100%;
}

.wycb-checkout-button-wrap {
	display: flex;
	justify-content: stretch; /* overridden via Elementor selectors */
}

.wycb-checkout-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px; /* overridden via Elementor selectors */
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	line-height: 1.2;
	transition: color 0.15s ease, background-color 0.15s ease;
}

/* "Justified" alignment makes the button fill the row. */
.wycb-checkout-button-wrap[style*="stretch"] .wycb-checkout-button,
.wycb-checkout-button-wrap:not([style*="justify-content"]) .wycb-checkout-button {
	flex: 1 1 auto;
}

.wycb-checkout-button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.wycb-checkout-button__icon {
	display: inline-flex;
	align-items: center;
}

.wycb-checkout-button__icon svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* ── Disabled state (empty cart) ──────────────────────────── */

.wycb-checkout-button--disabled {
	cursor: not-allowed;
	opacity: 0.55;
	pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
	.wycb-checkout-button {
		transition: none;
	}
}
