:root {
	--moma-pay-accent: #f58a50;
	--moma-pay-navy: #173a5e;
	--moma-pay-cream: #fffaf5;
}
.moma-pay-open { overflow: hidden; }
.moma-pay-modal[hidden], [data-moma-pay-step][hidden] { display: none !important; }
.moma-pay-modal {
	position: fixed; inset: 0; z-index: 999999; display: grid; place-items: center;
	padding: 18px; font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
.moma-pay-backdrop { position: absolute; inset: 0; background: rgba(16,36,56,.72); backdrop-filter: blur(10px); }
.moma-pay-panel {
	position: relative; box-sizing: border-box; width: min(620px,100%); max-height: calc(100vh - 36px);
	overflow-y: auto; border: 1px solid rgba(23,58,94,.16); border-radius: 26px;
	padding: clamp(26px,5vw,46px); background:
	radial-gradient(circle at 100% 0,rgba(245,138,80,.16),transparent 35%),var(--moma-pay-cream);
	box-shadow: 0 30px 100px rgba(12,34,54,.35); color: #203750;
}
.moma-pay-close {
	position: absolute; top: 15px; right: 16px; width: 38px; height: 38px; border: 0;
	border-radius: 50%; background: rgba(23,58,94,.08); color: var(--moma-pay-navy); font-size: 25px; cursor: pointer;
}
.moma-pay-brand { display: flex; align-items: center; gap: 12px; min-height: 38px; margin-bottom: 24px; color: #6d7d8a; font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.moma-pay-brand img { width: auto; max-width: 180px; max-height: 48px; object-fit: contain; }
.moma-pay-eyebrow { margin: 0 0 8px; color: #e8793e; font-size: 10px; font-weight: 900; letter-spacing: .17em; }
.moma-pay-panel h2 { margin: 0 0 18px; color: var(--moma-pay-navy); font-family: Georgia,serif; font-size: clamp(30px,5vw,43px); line-height: 1; }
.moma-pay-summary {
	display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px;
	border: 1px solid #dce6ec; border-radius: 15px; padding: 16px 18px; background: rgba(255,255,255,.7);
}
.moma-pay-summary strong,.moma-pay-summary span { display: block; }
.moma-pay-summary span { margin-top: 4px; color: #708496; font-size: 12px; }
.moma-pay-summary b { color: var(--moma-pay-navy); white-space: nowrap; }
.moma-pay-panel label { display: block; margin-bottom: 14px; color: #364f67; font-size: 12px; font-weight: 800; }
.moma-pay-panel input:not([type=checkbox]),.moma-pay-panel select {
	box-sizing: border-box; width: 100%; height: 50px; margin-top: 7px; border: 1px solid #d3dfe6;
	border-radius: 12px; padding: 0 14px; background: #fff; color: #173a5e; font: inherit; outline: none;
}
.moma-pay-panel input:focus,.moma-pay-panel select:focus { border-color: var(--moma-pay-accent); box-shadow: 0 0 0 3px rgba(245,138,80,.15); }
.moma-pay-row { display: grid; grid-template-columns: .9fr 1.1fr; gap: 12px; }
.moma-pay-consent { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 550 !important; line-height: 1.4; }
.moma-pay-consent input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--moma-pay-accent); }
.moma-pay-honeypot { position: absolute !important; left: -10000px !important; opacity: 0 !important; }
.moma-pay-primary {
	box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
	width: 100%; min-height: 54px; border: 0; border-radius: 13px; padding: 14px 20px;
	background: linear-gradient(135deg,var(--moma-pay-accent),#f6ad79); box-shadow: 0 10px 25px rgba(245,138,80,.24);
	color: #fff !important; font-size: 14px; font-weight: 900; text-decoration: none !important; cursor: pointer;
}
.moma-pay-primary:disabled { opacity: .6; cursor: wait; }
.moma-pay-safe { display: block; margin-top: 12px; color: #7b8e9e; font-size: 11px; text-align: center; }
.moma-pay-error { min-height: 20px; margin: 4px 0 10px; color: #b42318; font-size: 12px; font-weight: 700; }
.moma-pay-error a { color: inherit; font-weight: 900; }
#moma-stripe-embed { min-height: 320px; }
.moma-confirmation {
	box-sizing: border-box; display: grid; width: 100%; min-height: 100vh; place-items: center; padding: 30px 18px;
	background: radial-gradient(circle at 10% 10%,rgba(245,138,80,.18),transparent 32%),linear-gradient(145deg,#fff7f0,#eef7fa);
	font-family: Inter,ui-sans-serif,system-ui,sans-serif;
}
.moma-confirmation-card {
	box-sizing: border-box; width: min(760px,100%); border: 1px solid #d9e4e9; border-radius: 28px;
	padding: clamp(34px,7vw,70px); background: rgba(255,255,255,.92); box-shadow: 0 28px 80px rgba(23,58,94,.14); text-align: center;
}
.moma-confirmation h1 { margin: 0; color: var(--moma-pay-navy); font-family: Georgia,serif; font-size: clamp(40px,7vw,64px); line-height: 1; }
.moma-confirmation-message { margin: 20px auto 0; max-width: 590px; color: #637b8e; line-height: 1.65; }
.moma-confirmation-icon { display: grid; width: 68px; height: 68px; margin: 0 auto 20px; place-items: center; border-radius: 50%; background: rgba(245,138,80,.14); }
.moma-confirmation-icon.is-loading span { width: 27px; height: 27px; border: 3px solid rgba(245,138,80,.25); border-top-color: var(--moma-pay-accent); border-radius: 50%; animation: moma-spin .8s linear infinite; }
.moma-confirmation-icon.is-success { background: rgba(34,197,94,.13); }
.moma-confirmation-icon.is-success::after { content: "✓"; color: #16883e; font-size: 34px; font-weight: 900; }
.moma-confirmation-icon.is-error { background: rgba(239,68,68,.12); }
.moma-confirmation-icon.is-error::after { content: "!"; color: #c72d2d; font-size: 34px; font-weight: 900; }
.moma-confirmation-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; margin-top: 26px; border: 1px solid #e0e8ed; border-radius: 16px; padding: 15px; background: #f9fcfd; text-align: left; }
.moma-confirmation-summary>div { padding: 2px 12px; }
.moma-confirmation-summary>div+div { border-left: 1px solid #e0e8ed; }
.moma-confirmation-summary span,.moma-confirmation-summary strong { display: block; }
.moma-confirmation-summary span { color: #8a9ba8; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.moma-confirmation-summary strong { margin-top: 4px; color: var(--moma-pay-navy); font-size: 12px; overflow-wrap: anywhere; }
.moma-confirmation-actions { margin: 26px auto 0; max-width: 360px; }
@keyframes moma-spin { to { transform: rotate(360deg); } }
@media(max-width:560px) {
	.moma-pay-modal { padding: 0; align-items: end; }
	.moma-pay-panel { max-height: 94vh; border-radius: 24px 24px 0 0; padding: 30px 20px; }
	.moma-pay-row,.moma-confirmation-summary { grid-template-columns: 1fr; }
	.moma-confirmation-summary>div+div { margin-top: 9px; border-top: 1px solid #e0e8ed; border-left: 0; padding-top: 10px; }
}
