/* =========================================================
   WPForms Custom Voucher – Warmduscher Product Card
   Styled to match warmduscher.de/warmduscher-mieten/ (#wpforms-11736-field_23)
   ========================================================= */

html body div.wcvoucher-wrap {
	max-width: 680px;
}

/* ── Product card ──────────────────────────────────────── */

html body div.wcvoucher-wrap .wcvoucher-product {
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	padding: 20px;
	background-color: #f9fafb;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
	margin: 20px auto;
}

html body div.wcvoucher-wrap .wcvoucher-product__title {
	color: #1f2937;
	font-size: 24px;
	margin: 0 0 10px;
	line-height: 1.3;
	font-weight: 700;
}

html body div.wcvoucher-wrap .wcvoucher-product__description {
	color: #4b5563;
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 15px;
}

/* ── Price box ─────────────────────────────────────────── */

html body div.wcvoucher-wrap .wcvoucher-price-box {
	background-color: #ffffff;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	padding: 15px;
	margin-bottom: 15px;
}

html body div.wcvoucher-wrap .wcvoucher-price-box p {
	margin: 5px 0;
	font-size: 16px;
	color: #1f2937;
	line-height: 1.5;
}

html body div.wcvoucher-wrap .wcvoucher-price-box p strong {
	font-weight: 600;
}

/* ── Price display ─────────────────────────────────────── */

html body div.wcvoucher-wrap .wcvoucher-price-original {
	font-weight: 700;
	transition: color 0.2s;
}

html body div.wcvoucher-wrap .wcvoucher-price-original.is-struck {
	text-decoration: line-through;
	color: #9ca3af;
	font-weight: 400;
}

html body div.wcvoucher-wrap .wcvoucher-price-discounted {
	display: none;
	margin-left: 6px;
	font-weight: 700;
	color: #16a34a;
}

html body div.wcvoucher-wrap .wcvoucher-price-discounted.is-visible {
	display: inline;
}

html body div.wcvoucher-wrap .wcvoucher-savings-badge {
	display: inline-block;
	background: #dcfce7;
	color: #16a34a;
	border-radius: 4px;
	font-size: 0.78rem;
	font-weight: 600;
	padding: 1px 6px;
	margin-left: 4px;
	vertical-align: middle;
}

/* ── Coupon form ───────────────────────────────────────── */

html body div.wcvoucher-wrap .wcvoucher-coupon {
	background: #f9fafb;
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	padding: 20px;
	margin: 0 auto 20px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

html body div.wcvoucher-wrap .wcvoucher-coupon__label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #1f2937;
	margin-bottom: 10px;
}

html body div.wcvoucher-wrap .wcvoucher-coupon__row {
	display: flex;
}

html body div.wcvoucher-wrap .wcvoucher-coupon__input {
	flex: 1;
    padding: 10px 14px !important;
    font-size: 14px !important;
    border: 1px solid #d1d5db !important;
    border-right: none;
    border-radius: 8px 0 0 8px !important;
    outline: none;
    transition: border-color 0.15s;
    background: #fff;
    color: #1f2937 !important;
    box-shadow: none;
    height: 44px !important;
}

html body div.wcvoucher-wrap .wcvoucher-coupon__input:focus {
	border-color: #6b7280;
	box-shadow: none;
}

html body div.wcvoucher-wrap .wcvoucher-coupon__input:disabled {
	background: #f3f4f6;
	color: #9ca3af;
}

html body div.wcvoucher-wrap .wcvoucher-coupon__btn {
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 600;
	background: #1f2937;
	color: #fff;
	border: 1px solid #1f2937;
	border-radius: 0 8px 8px 0;
	cursor: pointer;
	transition: background 0.15s;
	white-space: nowrap;
	box-shadow: none;
	text-shadow: none;
}

html body div.wcvoucher-wrap .wcvoucher-coupon__btn:hover:not(:disabled) {
	background: #374151;
	border-color: #374151;
	color: #fff;
}

html body div.wcvoucher-wrap .wcvoucher-coupon__btn:disabled {
	background: #9ca3af;
	border-color: #9ca3af;
	cursor: default;
}

/* ── Feedback message ──────────────────────────────────── */

html body div.wcvoucher-wrap .wcvoucher-coupon__message {
	display: none;
	margin-top: 10px;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.5;
}

html body div.wcvoucher-wrap .wcvoucher-coupon__message.is-visible {
	display: block;
}

html body div.wcvoucher-wrap .wcvoucher-coupon__message.is-success {
	background: #f0fdf4;
	color: #15803d;
	border: 1px solid #bbf7d0;
}

html body div.wcvoucher-wrap .wcvoucher-coupon__message.is-error {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

/* ── Responsive ────────────────────────────────────────── */

@media ( max-width: 480px ) {
	html body div.wcvoucher-wrap .wcvoucher-product,
	html body div.wcvoucher-wrap .wcvoucher-coupon {
		padding: 16px;
		margin: 12px auto;
	}

	html body div.wcvoucher-wrap .wcvoucher-product__title {
		font-size: 20px;
	}

	html body div.wcvoucher-wrap .wcvoucher-coupon__row {
		flex-direction: column;
	}

	html body div.wcvoucher-wrap .wcvoucher-coupon__input {
		border-right: 1px solid #d1d5db;
		border-bottom: none;
		border-radius: 8px 8px 0 0;
	}

	html body div.wcvoucher-wrap .wcvoucher-coupon__btn {
		border-radius: 0 0 8px 8px;
		text-align: center;
	}
}
