/**
 * Make a Payment – Lyonswood brand, clear hierarchy, no clipping.
 * Overrides theme hero height/overflow so form and image use full space.
 */

/* ========== LAYOUT (override theme) ========== */
.lyonswood-payment-section.hero-section-new {
	height: auto !important;
	min-height: auto !important;
	max-height: none !important;
	overflow: visible !important;
	overflow-x: visible !important;
	overflow-y: visible !important;
	display: flex !important;
	align-items: stretch !important;
}

.lyonswood-payment-section .hero-left {
	width: 50% !important;
	height: auto !important;
	min-height: auto !important;
	display: flex !important;
	flex-direction: column !important;
	justify-content: center !important;
	align-items: center !important;
	padding: 3rem clamp(2rem, 5vw, 4rem) !important;
	overflow: visible !important;
	background: #212327 !important;
	background-image: 
		linear-gradient(180deg, rgba(255,107,53,0.03) 0%, transparent 12%),
		radial-gradient(circle at 20% 80%, rgba(255,255,255,0.04) 0%, transparent 50%),
		radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px) !important;
	background-size: 100% 100%, 100% 100%, 24px 24px !important;
}

.lyonswood-payment-section .hero-right {
	width: 50% !important;
	height: auto !important;
	min-height: auto !important;
	padding: 0 !important;
	position: relative !important;
	overflow: hidden !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	background: #1a1c1e !important;
}

/* ========== HERO IMAGE (full height, with overlay) ========== */
.lyonswood-payment-hero-img {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	object-position: center !important;
	opacity: 0.5;
	z-index: 0;
	display: block;
	pointer-events: none;
}

.lyonswood-payment-section .hero-right::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.35) 100%);
	z-index: 0.5;
	pointer-events: none;
}

.lyonswood-payment-receipt-wrap {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 380px;
	margin: 2rem;
}

/* ========== FORM CONTAINER ========== */
.lyonswood-payment-section .hero-content-new {
	width: 100%;
	max-width: 440px;
	height: auto !important;
	overflow: visible !important;
}

.lyonswood-payment-section .hero-heading {
	font-family: "Poppins", sans-serif;
	font-size: clamp(1.625rem, 4vw, 2.125rem);
	font-weight: 600;
	line-height: 1.2;
	color: #ffffff;
	margin-bottom: 0.375rem;
	letter-spacing: -0.02em;
}

.lyonswood-payment-section .hero-heading::after {
	content: '';
	display: block;
	width: 48px;
	height: 3px;
	background: #ff6b35;
	border-radius: 2px;
	margin-top: 0.5rem;
}

.lyonswood-payment-section .hero-subtitle {
	font-family: "Poppins", sans-serif;
	font-size: 1rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.78);
	margin-bottom: 1.75rem;
}

/* ========== SECTION LABELS ========== */
.lyonswood-payment-form .form-section-label {
	font-family: "Poppins", sans-serif;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: rgba(255, 255, 255, 0.5);
	margin: 0 0 0.75rem 0;
	padding: 0;
}

.lyonswood-payment-form .form-section-label:not(:first-child) {
	margin-top: 1.5rem;
}

/* ========== FORM ROWS ========== */
.lyonswood-payment-form {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.lyonswood-payment-form .form-row {
	margin-bottom: 1rem;
	width: 100%;
	box-sizing: border-box;
}

.lyonswood-payment-form .form-row.form-row-inline {
	display: flex;
	gap: 0.75rem;
}

.lyonswood-payment-form .form-row.form-row-inline > div:first-child {
	flex: 1;
}

.lyonswood-payment-form .form-row.form-row-inline > div:nth-child(2),
.lyonswood-payment-form .form-row.form-row-inline > div:nth-child(3) {
	flex: 0 0 84px;
}

.lyonswood-payment-form label {
	display: block;
	font-family: "Poppins", sans-serif;
	font-size: 0.9375rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.92);
	margin-bottom: 0.35rem;
}

/* ========== INPUTS ========== */
.lyonswood-payment-form input[type="text"],
.lyonswood-payment-form input[type="email"],
.lyonswood-payment-form input[type="tel"],
.lyonswood-payment-form input[type="number"],
.lyonswood-payment-form textarea {
	width: 100%;
	padding: 0.7rem 0.9rem;
	font-family: "Poppins", sans-serif;
	font-size: 1rem;
	line-height: 1.45;
	color: #212327;
	background: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 8px;
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.lyonswood-payment-form input:hover,
.lyonswood-payment-form textarea:hover {
	border-color: rgba(255, 255, 255, 0.4);
}

.lyonswood-payment-form input:focus,
.lyonswood-payment-form textarea:focus {
	outline: none;
	border-color: #ff6b35;
	box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.22);
}

.lyonswood-payment-form input::placeholder,
.lyonswood-payment-form textarea::placeholder {
	color: #9ca3af;
}

/* ========== BREAKDOWN CARD ========== */
.payment-breakdown {
	margin-bottom: 1rem;
	padding: 1rem 1.15rem;
	background: rgba(255, 255, 255, 0.06);
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	font-family: "Poppins", sans-serif;
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.payment-breakdown-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.9);
	margin-bottom: 0.25rem;
}

.payment-breakdown-row:last-child {
	margin-bottom: 0;
}

.payment-breakdown-label {
	font-weight: 500;
}

.payment-breakdown-value {
	font-weight: 600;
}

.payment-breakdown-total {
	margin-top: 0.5rem;
	padding-top: 0.6rem;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	font-size: 1.0625rem;
	font-weight: 600;
	color: #ffffff;
}

.payment-breakdown-total .payment-breakdown-value {
	color: #ff6b35;
	font-size: 1.125rem;
}

/* ========== CARD CONTAINER + PAY BUTTON ========== */
.lyonswood-payment-form #card-container {
	width: 100%;
	min-height: 100px;
	margin-bottom: 1rem;
	box-sizing: border-box;
	color: rgba(255, 255, 255, 0.92);
}

/* Square leaves .sq-card-wrapper with [hidden] – force it visible */
.lyonswood-payment-form #card-container .sq-card-wrapper[hidden] {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

/* Square sets iframe height="0px" – give it real height so the card form shows */
.lyonswood-payment-form #card-container .sq-card-iframe-container,
.lyonswood-payment-form #card-container .sq-card-iframe-container iframe {
	display: block !important;
	min-height: 100px !important;
	height: 100px !important;
	width: 100% !important;
}

/* Square may render helper/error message in page – keep it readable on dark background */
.lyonswood-payment-form #card-container .message-text,
.lyonswood-payment-form #card-container [class*="message"] {
	color: rgba(255, 255, 255, 0.92) !important;
	font-size: 0.875rem !important;
	font-family: "Poppins", sans-serif !important;
}
.lyonswood-payment-form #card-container .message-icon,
.lyonswood-payment-form #card-container [class*="message-icon"] {
	color: rgba(255, 255, 255, 0.85) !important;
}

.lyonswood-payment-form #lyonswood-pay-button {
	width: 100%;
	font-family: "Poppins", sans-serif;
	font-size: 1.0625rem;
	font-weight: 600;
	padding: 0.9rem 1.5rem;
	background: #ff6b35;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
	box-shadow: 0 2px 8px rgba(255, 107, 53, 0.35);
}

.lyonswood-payment-form #lyonswood-pay-button:hover:not(:disabled) {
	background: #e85f2e;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.lyonswood-payment-form #lyonswood-pay-button:active:not(:disabled) {
	transform: translateY(0);
}

.lyonswood-payment-form #lyonswood-pay-button:disabled {
	cursor: not-allowed;
	opacity: 0.65;
	transform: none;
	box-shadow: none;
}

/* ========== STATUS + CONFIRMATION ========== */
#payment-status {
	font-size: 1rem;
	line-height: 1.5;
	margin-top: 0.75rem;
	min-height: 1.5rem;
	color: rgba(255, 255, 255, 0.9);
	font-family: "Poppins", sans-serif;
}

#payment-confirmation {
	display: none;
	margin-top: 0.75rem;
	padding: 1rem 1.15rem;
	background: rgba(34, 197, 94, 0.12);
	border: 1px solid rgba(34, 197, 94, 0.35);
	border-radius: 8px;
	font-size: 1rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.95);
	font-family: "Poppins", sans-serif;
}

#payment-confirmation a {
	color: #ff6b35;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

#payment-confirmation a:hover {
	color: #e85f2e;
}

/* ========== RECEIPT PANEL ========== */
.lyonswood-receipt-panel {
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
	padding: 1.75rem;
	font-family: "Poppins", sans-serif;
	color: #212327;
	transform: translateY(12px);
	opacity: 0;
	transition: transform 0.4s ease, opacity 0.4s ease;
	border: 1px solid rgba(0, 0, 0, 0.06);
}

.lyonswood-receipt-panel.is-visible {
	transform: translateY(0);
	opacity: 1;
}

.lyonswood-receipt-panel.receipt-empty .receipt-content { display: none; }
.lyonswood-receipt-panel.receipt-empty .receipt-placeholder { display: block; }

.lyonswood-receipt-panel .receipt-placeholder {
	display: none;
	text-align: center;
	padding: 2rem 1.25rem;
	color: #6b7280;
	font-size: 1rem;
	line-height: 1.6;
	font-family: "Poppins", sans-serif;
}

.receipt-placeholder-icon {
	display: block;
	width: 48px;
	height: 48px;
	margin: 0 auto 1rem;
	background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
	border-radius: 12px;
	position: relative;
}

.receipt-placeholder-icon::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 24px;
	height: 28px;
	border: 2px solid #9ca3af;
	border-radius: 2px;
	background: linear-gradient(to bottom, transparent 40%, #9ca3af 40%, #9ca3af 45%, transparent 45%, transparent 55%, #9ca3af 55%, #9ca3af 60%, transparent 60%);
	opacity: 0.6;
}

.lyonswood-receipt-panel .receipt-placeholder p {
	margin: 0;
}

.lyonswood-receipt-panel.receipt-filled .receipt-placeholder { display: none; }
.lyonswood-receipt-panel.receipt-filled .receipt-content { display: block; }

.lyonswood-receipt-panel .receipt-content {
	display: none;
}

.lyonswood-receipt-panel .receipt-logo {
	font-weight: 700;
	font-size: 1.25rem;
	color: #212327;
	margin-bottom: 0.25rem;
	letter-spacing: -0.02em;
}

.lyonswood-receipt-panel .receipt-title {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #9ca3af;
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px dashed #e5e7eb;
	font-weight: 600;
}

.lyonswood-receipt-panel .receipt-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	font-size: 0.9375rem;
	line-height: 1.5;
	margin-bottom: 0.5rem;
	color: #374151;
}

.lyonswood-receipt-panel .receipt-row span:last-child {
	text-align: right;
	word-break: break-word;
}

.lyonswood-receipt-panel .receipt-row.receipt-total {
	font-weight: 700;
	font-size: 1.125rem;
	color: #212327;
	margin-top: 1rem;
	padding-top: 0.75rem;
	border-top: 2px solid #212327;
}

.lyonswood-receipt-panel .receipt-row.receipt-total span:last-child {
	color: #ff6b35;
}

.lyonswood-receipt-panel .receipt-view-link {
	display: inline-block;
	margin-top: 1.25rem;
	padding: 0.6rem 1.25rem;
	background: #ff6b35;
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: 8px;
	transition: background 0.2s ease, transform 0.15s ease;
	box-shadow: 0 2px 6px rgba(255, 107, 53, 0.3);
}

.lyonswood-receipt-panel .receipt-view-link:hover {
	background: #e85f2e;
	color: #fff;
	transform: translateY(-1px);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
	.lyonswood-payment-section.hero-section-new {
		flex-direction: column !important;
	}
	.lyonswood-payment-section .hero-left {
		width: 100% !important;
		order: 0;
		padding: 2rem 1.5rem !important;
	}
	.lyonswood-payment-section .hero-right {
		width: 100% !important;
		order: 1;
		min-height: 400px !important;
		padding: 2rem 1.25rem 2.5rem !important;
	}
	.lyonswood-payment-receipt-wrap {
		margin: 0;
		width: 100%;
		max-width: 100%;
	}
	.lyonswood-payment-hero-img {
		opacity: 0.4;
	}
	.lyonswood-receipt-panel {
		width: 100%;
	}
}
