/* Calentix Checkout Wizard */
.calentix-checkout {
	--cx-bg: #f6f6f7;
	--cx-surface: #ffffff;
	--cx-border: #d9d9d9;
	--cx-border-light: #e8e8e8;
	--cx-text: #121212;
	--cx-muted: #6b7177;
	--cx-accent: #121212;
	--cx-accent-hover: #000000;
	--cx-gold: #c8a951;
	--cx-radius: 10px;
	--cx-btn-bg: var(--cx-gold);
	--cx-btn-text: #1a1a1a;
	--cx-btn-radius: 999px;
	--cx-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	box-sizing: border-box;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	color: var(--cx-text);
	font-family: var(--cx-font);
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.calentix-checkout *,
.calentix-checkout *::before,
.calentix-checkout *::after {
	box-sizing: border-box;
	font-family: inherit;
}

.calentix-checkout.is-contained {
	width: 100%;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
	background: var(--cx-bg);
}

.calentix-checkout.is-full-width {
	background: var(--cx-bg);
}

.calentix-wizard {
	width: var(--cx-container-width, 100%);
	max-width: var(--cx-container-max-width, 560px);
	margin: 0 auto;
	padding: 32px 20px 64px;
}

.calentix-wizard-progress {
	display: flex;
	gap: 6px;
	margin-bottom: 28px;
}

.calentix-progress-segment {
	flex: 1;
	height: 4px;
	border-radius: 999px;
	background: #e3e3e3;
	transition: background 0.2s ease;
}

.calentix-progress-segment.is-active,
.calentix-progress-segment.is-done {
	background: var(--cx-gold);
}

.calentix-wizard-progress--numbers {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 28px;
}

.calentix-progress-number {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-align: center;
	color: var(--cx-muted);
	font-size: 12px;
}

.calentix-progress-number-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 999px;
	border: 2px solid #e3e3e3;
	background: #fff;
	font-size: 13px;
	font-weight: 600;
}

.calentix-progress-number.is-active .calentix-progress-number-badge,
.calentix-progress-number.is-done .calentix-progress-number-badge {
	border-color: var(--cx-gold);
	background: var(--cx-gold);
	color: var(--cx-btn-text, #1a1a1a);
}

.calentix-progress-number.is-active {
	color: var(--cx-text);
	font-weight: 600;
}

.calentix-wizard-progress--labels {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 28px;
}

.calentix-progress-label {
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid var(--cx-border-light);
	background: #fff;
	color: var(--cx-muted);
	font-size: 13px;
}

.calentix-progress-label.is-active,
.calentix-progress-label.is-done {
	border-color: var(--cx-gold);
	background: color-mix(in srgb, var(--cx-gold) 18%, white);
	color: var(--cx-text);
	font-weight: 600;
}

.calentix-wizard-steps {
	background: var(--cx-surface);
	border: 1px solid var(--cx-border-light);
	border-radius: var(--cx-radius);
	padding: 24px 22px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.calentix-step-title {
	margin: 0 0 20px;
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.calentix-wizard-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 20px;
	gap: 12px;
}

.calentix-wizard-back {
	border: none;
	background: none;
	color: var(--cx-muted);
	font: inherit;
	font-size: 14px;
	cursor: pointer;
	padding: 8px 0;
}

.calentix-wizard-back:hover {
	color: var(--cx-text);
}

.calentix-wizard-next,
.calentix-checkout-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 160px;
	padding: 14px 22px;
	border: none;
	border-radius: var(--cx-btn-radius, 999px);
	background: var(--cx-btn-bg, var(--cx-gold));
	color: var(--cx-btn-text, #1a1a1a);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: filter 0.15s ease, transform 0.05s ease;
}

.calentix-wizard-next:hover,
.calentix-checkout-submit:hover {
	filter: brightness(0.96);
}

.calentix-wizard-next:active,
.calentix-checkout-submit:active {
	transform: scale(0.99);
}

.calentix-checkout-submit {
	width: 100%;
	margin-top: 16px;
	border-radius: var(--cx-btn-radius, var(--cx-radius));
	background: var(--cx-btn-bg, var(--cx-accent));
	color: var(--cx-btn-text, #fff);
}

.calentix-checkout-submit:hover {
	background: var(--cx-accent-hover);
	filter: none;
}

/* Cart */
.calentix-cart-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 20px;
}

.calentix-cart-row {
	display: grid;
	grid-template-columns: 56px 1fr auto 28px;
	gap: 12px;
	align-items: center;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--cx-border-light);
}

.calentix-cart-row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.calentix-cart-row-img {
	width: 56px;
	height: 56px;
	border-radius: 8px;
	object-fit: cover;
	border: 1px solid var(--cx-border-light);
	background: #f3f4f6;
}

.calentix-cart-row-img.is-placeholder {
	background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.calentix-cart-row-body strong {
	display: block;
	font-size: 14px;
	margin-bottom: 6px;
}

.calentix-qty-controls {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid var(--cx-border-light);
	border-radius: 8px;
	padding: 2px;
}

.calentix-qty-controls button {
	width: 28px;
	height: 28px;
	border: none;
	background: transparent;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
}

.calentix-cart-row-price {
	font-weight: 600;
	font-size: 14px;
	white-space: nowrap;
}

.calentix-cart-remove {
	border: none;
	background: transparent;
	color: var(--cx-muted);
	font-size: 20px;
	cursor: pointer;
	line-height: 1;
}

/* Fields */
.calentix-checkout-fields {
	display: grid;
	gap: 14px;
}

.calentix-checkout-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 500;
	color: var(--cx-muted);
}

.calentix-checkout-field .req {
	color: #b32d2e;
}

.calentix-checkout-field input,
.calentix-checkout-field textarea,
.calentix-checkout-field select {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid var(--cx-border);
	border-radius: 8px;
	background: var(--cx-surface);
	color: var(--cx-text);
	font: inherit;
}

.calentix-checkout-field input:focus,
.calentix-checkout-field textarea:focus,
.calentix-checkout-field select:focus {
	outline: none;
	border-color: var(--cx-accent);
	box-shadow: 0 0 0 1px var(--cx-accent);
}

/* Terms */
.calentix-terms-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.calentix-term-row {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 14px;
	cursor: pointer;
}

.calentix-term-row input {
	margin-top: 3px;
	flex-shrink: 0;
}

.calentix-term-row a {
	color: inherit;
	text-decoration: underline;
}

/* Payment */
.calentix-payment-summary {
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--cx-border-light);
}

.calentix-checkout-totals {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.calentix-checkout-total-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 14px;
	color: var(--cx-muted);
}

.calentix-checkout-total-row.is-discount {
	color: #166534;
}

.calentix-checkout-total-row.is-grand {
	margin-top: 8px;
	padding-top: 12px;
	border-top: 1px solid var(--cx-border-light);
	font-size: 17px;
	font-weight: 600;
	color: var(--cx-text);
}

.calentix-coupon-box {
	margin-bottom: 20px;
}

.calentix-coupon-box label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 500;
	color: var(--cx-muted);
}

.calentix-coupon-row {
	display: flex;
	gap: 8px;
}

.calentix-coupon-row input {
	flex: 1;
	padding: 10px 12px;
	border: 1px solid var(--cx-border);
	border-radius: 8px;
	font: inherit;
}

.calentix-coupon-apply {
	padding: 10px 16px;
	border: none;
	border-radius: var(--cx-btn-radius, 999px);
	background: var(--cx-btn-bg, var(--cx-gold));
	color: var(--cx-btn-text, #1a1a1a);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: filter 0.15s ease, transform 0.05s ease;
}

.calentix-coupon-apply:hover {
	filter: brightness(0.96);
}

.calentix-coupon-apply:active {
	transform: scale(0.99);
}

/* Breakdance / Theme: Überschriften und Buttons im Checkout isolieren */
#calentix-checkout .calentix-step-title {
	margin: 0 0 20px !important;
	font-family: var(--cx-font) !important;
	font-size: 1.25rem !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	letter-spacing: -0.02em !important;
	color: var(--cx-text) !important;
	text-transform: none !important;
}

#calentix-checkout .calentix-coupon-apply,
#calentix-checkout .calentix-wizard-next,
#calentix-checkout .calentix-checkout-submit {
	border: none !important;
	border-radius: var(--cx-btn-radius, 999px) !important;
	background: var(--cx-btn-bg, var(--cx-gold)) !important;
	color: var(--cx-btn-text, #1a1a1a) !important;
	font-family: var(--cx-font) !important;
	text-transform: none !important;
	box-shadow: none !important;
}

#calentix-checkout .calentix-checkout-submit {
	background: var(--cx-btn-bg, var(--cx-accent)) !important;
	color: var(--cx-btn-text, #fff) !important;
}

#calentix-checkout .calentix-checkout-submit:hover,
#calentix-checkout .calentix-wizard-next:hover,
#calentix-checkout .calentix-coupon-apply:hover {
	background: var(--cx-btn-bg, var(--cx-gold)) !important;
	filter: brightness(0.96);
}

#calentix-checkout .calentix-checkout-submit:hover {
	background: var(--cx-btn-bg, var(--cx-accent-hover)) !important;
	filter: none;
}

.calentix-coupon-applied {
	margin: 8px 0 0;
	font-size: 13px;
	color: #166534;
}

.calentix-payment-methods {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 16px;
}

.calentix-pay-method {
	display: block;
	cursor: pointer;
}

.calentix-pay-method input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.calentix-pay-method-body {
	display: block;
	padding: 14px;
	border: 2px solid var(--cx-border-light);
	border-radius: var(--cx-radius);
	background: var(--cx-surface);
	min-height: 72px;
}

.calentix-pay-method.is-selected .calentix-pay-method-body {
	border-color: var(--cx-text);
}

.calentix-pay-method-body strong {
	display: block;
	font-size: 14px;
	margin-bottom: 4px;
}

.calentix-pay-method-body small {
	color: var(--cx-muted);
	font-size: 12px;
}

.calentix-stripe-mount {
	margin: 12px 0;
	padding: 12px;
	border: 1px solid var(--cx-border-light);
	border-radius: var(--cx-radius);
	background: #fafafa;
	min-height: 48px;
}

.calentix-paypal-mount {
	margin: 12px 0;
	min-height: 48px;
	width: 100%;
}

#calentix-checkout .calentix-paypal-mount paypal-button {
	display: block;
	width: 100%;
	max-width: none;
	--paypal-button-border-radius: var(--cx-btn-radius, 999px);
}

.calentix-paypal-hint {
	font-size: 13px;
	color: var(--cx-muted);
	text-align: center;
}

.calentix-checkout-status {
	margin-top: 16px;
	padding: 12px 14px;
	border-radius: 8px;
	font-size: 13px;
}

.calentix-checkout-status:empty {
	display: none;
}

.calentix-checkout-status.is-error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.calentix-checkout-status.is-success {
	background: #f0fdf4;
	color: #166534;
	border: 1px solid #bbf7d0;
}

/* Thanks / Empty */
.calentix-checkout-empty-wrap,
.calentix-step-thanks,
.calentix-checkout-empty {
	text-align: center;
	padding: 48px 24px;
}

.calentix-thanks-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: #dcfce7;
	color: #166534;
	font-size: 28px;
	line-height: 64px;
	font-weight: 700;
}

.calentix-order-ref {
	font-size: 13px;
	color: var(--cx-muted);
}

.calentix-order-ref code {
	background: #f3f4f6;
	padding: 2px 6px;
	border-radius: 4px;
}

@media (min-width: 768px) {
	.calentix-wizard {
		padding: 48px 24px 80px;
	}

	.calentix-wizard-steps {
		padding: 28px 28px;
	}
}

@media (max-width: 520px) {
	.calentix-payment-methods {
		grid-template-columns: 1fr;
	}
}
