.fpc-co {
	--fpc-accent: #111;
	--fpc-accent-text: #fff;
	--fpc-border: #c0c1ca;
	--fpc-error: #c62828;
	--fpc-focus: #115dfa;
	position: relative;
	box-sizing: border-box;
	color: #111;
}
.fpc-co *,
.fpc-co *::before,
.fpc-co *::after { box-sizing: border-box; }
.fpc-co [hidden] { display: none !important; }

.fpc-co__title { margin: 0 0 16px; }

.fpc-co__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}
@media (max-width: 860px) {
	.fpc-co__grid { grid-template-columns: minmax(0, 1fr); }
	.fpc-co__summary { order: -1; }
}

.fpc-co__section { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.fpc-co__section legend { margin: 0 0 12px; padding: 0; font-size: 18px; font-weight: 700; }
.fpc-co__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }

.fpc-co__field { margin: 0 0 12px; }
.fpc-co__field label { display: block; margin: 0 0 6px; font-size: 15px; font-weight: 500; }
.fpc-co__field input[type="text"],
.fpc-co__field input[type="email"],
.fpc-co__field input[type="tel"],
.fpc-co__field select {
	display: block;
	width: 100%;
	height: 48px;
	padding: 0 14px;
	border: 1px solid var(--fpc-border);
	border-radius: 4px;
	background: #fff;
	color: #111;
	font: inherit;
	font-size: 16px;
}
.fpc-co__field input:focus-visible,
.fpc-co__field select:focus-visible {
	outline: 0;
	border-color: var(--fpc-focus);
	box-shadow: 0 0 0 2px rgba(17, 93, 250, .3);
}
.fpc-co__field [aria-invalid="true"] { border-color: var(--fpc-error); }
.fpc-co__error { display: block; margin-top: 4px; color: var(--fpc-error); font-size: 14px; }

.fpc-co__terms label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.fpc-co__terms input { margin-top: 3px; flex: none; }

.fpc-co__card { min-height: 160px; }
/* Chargify sets a fixed width on each field's frame; make it follow its column */
.fpc-co__card iframe { display: block; width: 100% !important; max-width: 100%; }
.fpc-co__card-row > div { min-width: 0; }
.fpc-co__card-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 480px) {
	.fpc-co__card-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.fpc-co__fallback {
	margin: 12px 0 0;
	padding: 12px 14px;
	border: 1px solid var(--fpc-error);
	border-radius: 8px;
	color: var(--fpc-error);
}
.fpc-co__fallback a { display: block; margin-top: 6px; color: inherit; font-weight: 600; }

.fpc-co__alert {
	margin: 0 0 12px;
	padding: 12px 14px;
	border: 1px solid var(--fpc-error);
	border-radius: 8px;
	background: #fdeceb;
	color: var(--fpc-error);
}

.fpc-co .fpc-btn {
	appearance: none;
	display: inline-block;
	border: 1px solid var(--fpc-accent);
	border-radius: 999px;
	background: var(--fpc-accent);
	color: var(--fpc-accent-text);
	padding: 14px 24px;
	font: inherit;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
}
.fpc-co .fpc-btn:disabled { opacity: .4; cursor: not-allowed; }
.fpc-co .fpc-btn:focus-visible { outline: 2px solid var(--fpc-focus); outline-offset: 2px; }
.fpc-co__pay { width: 100%; }
.fpc-co__secure { margin: 10px 0 0; color: #555; font-size: 14px; text-align: center; }

.fpc-co__summary { padding: 20px; border: 1px solid #e2e2e2; border-radius: 12px; background: #fafafa; }
.fpc-co__summary h3 { margin: 0 0 12px; font-size: 18px; }
.fpc-co__lines { margin: 0 0 12px; padding: 0; list-style: none; }
.fpc-co__line { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #e8e8e8; }
.fpc-co__line img { flex: none; width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.fpc-co__name { flex: 1; min-width: 0; font-weight: 600; }
.fpc-co__price { flex: none; font-weight: 600; }
.fpc-co__price s { margin-right: 6px; color: #777; font-weight: 400; }
.fpc-co__total { display: flex; justify-content: space-between; gap: 12px; font-size: 18px; }

.fpc-co__empty { padding: 24px 0; }
.fpc-co__setup-note,
.fpc-co__editor-note { margin: 12px 0; padding: 10px 14px; border: 1px dashed var(--fpc-border); border-radius: 8px; background: #fffbe6; font-size: 14px; }
.fpc-co__done { padding: 24px; border: 1px solid #2e7d32; border-radius: 12px; background: #eef8ef; color: #1b5e20; font-weight: 600; }
.fpc-co__done.is-error { border-color: #c62828; background: #fdecec; color: #8e1b1b; }

.fpc-co__busy {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: flex;
	flex-direction: column;
	gap: 14px;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, .88);
	font-weight: 600;
}
.fpc-co__spin {
	width: 32px;
	height: 32px;
	border: 3px solid #ddd;
	border-top-color: #111;
	border-radius: 50%;
	animation: fpc-co-spin .8s linear infinite;
}
@keyframes fpc-co-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	.fpc-co__spin { animation-duration: 3s; }
}

.fpc-co__methods { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.fpc-co__method {
	display: flex;
	gap: 8px;
	align-items: center;
	min-width: 120px;
	padding: 12px 16px;
	border: 1px solid var(--fpc-border);
	border-radius: 8px;
	background: #fff;
	font-weight: 600;
	cursor: pointer;
}
.fpc-co__method:has(input:checked) { border-color: var(--fpc-accent); box-shadow: 0 0 0 1px var(--fpc-accent); }
.fpc-co__method:has(input:focus-visible) { outline: 2px solid var(--fpc-focus); outline-offset: 2px; }
.fpc-co__pp-note { margin: 0 0 12px; color: #444; font-size: 15px; }
.fpc-co__pp-wait { margin: 0; padding: 12px 14px; border: 1px dashed var(--fpc-border); border-radius: 8px; background: #fafafa; font-size: 15px; }
.fpc-co__pp-slot { min-height: 48px; max-width: 100%; }
.fpc-co__pp-slot iframe { display: block; width: 100% !important; max-width: 100% !important; }

.fpc-co__hs { min-height: 120px; }
.fpc-co__hs .hs-form-field { margin: 0 0 12px; }
.fpc-co__hs label { display: block; margin: 0 0 6px; font-size: 15px; font-weight: 500; }
.fpc-co__hs input[type="text"],
.fpc-co__hs input[type="email"],
.fpc-co__hs input[type="tel"],
.fpc-co__hs select {
	display: block;
	width: 100%;
	height: 48px;
	padding: 0 14px;
	border: 1px solid var(--fpc-border);
	border-radius: 4px;
	background: #fff;
	color: #111;
	font: inherit;
	font-size: 16px;
}
.fpc-co__hs .hs_submit,
.fpc-co__hs .hs_accepted_terms,
.fpc-co__hs input[type="submit"] { display: none !important; }
.fpc-co__hs-status { margin: 0; color: #555; }
.fpc-co__hs-errors { margin: 8px 0 0; padding: 12px 14px 12px 32px; border: 1px solid var(--fpc-error); border-radius: 8px; background: #fdeceb; color: var(--fpc-error); }

.fpc-co__phone { display: flex; gap: 8px; align-items: stretch; }
.fpc-co__phone input { flex: 1; min-width: 0; }
.fpc-co__dial {
	flex: none;
	width: 11.5rem;
	max-width: 45%;
	height: 48px;
	padding: 0 10px;
	border: 1px solid var(--fpc-border);
	border-radius: 4px;
	background: #fff;
	color: #111;
	font: inherit;
	font-size: 16px;
}
.fpc-co__dial:focus-visible { outline: 0; border-color: var(--fpc-focus); box-shadow: 0 0 0 2px rgba(17, 93, 250, .3); }

.fpc-co__test { margin: 0 0 16px; padding: 10px 14px; border: 1px solid #ffecb5; border-radius: 8px; background: #fff3cd; color: #664d03; font-size: 14px; }
.fpc-co__test-note { margin: 0 0 12px; padding: 12px 14px; border: 1px dashed var(--fpc-border); border-radius: 8px; background: #fafafa; }
.fpc-co__unavailable { margin: 0; padding: 16px 18px; border: 1px solid var(--fpc-border); border-radius: 8px; background: #fafafa; }

/* Coupon field and discount lines in the order summary */
.fpc-co__coupon { margin: 16px 0 0; }
.fpc-co__coupon label { display: block; margin: 0 0 6px; font-size: 15px; font-weight: 500; }
.fpc-co__coupon-row { display: flex; gap: 8px; }
.fpc-co__coupon-row input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--fpc-border); border-radius: 8px; font: inherit; text-transform: uppercase; }
.fpc-co__coupon-apply { flex: none; padding: 10px 16px; border: 1px solid var(--fpc-accent); border-radius: 8px; background: transparent; color: var(--fpc-accent); font: inherit; font-weight: 600; cursor: pointer; }
.fpc-co__coupon-apply:disabled { opacity: .5; cursor: default; }
.fpc-co__coupon-msg { margin: 6px 0 0; font-size: 14px; }
.fpc-co__discounts { margin: 12px 0 0; padding: 0; list-style: none; }
.fpc-co__discount { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 6px; font-size: 15px; }
.fpc-co__discount button { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.fpc-co__discount.is-note { font-size: 13px; opacity: .75; }

.fpc-co__card-loading { margin: 10px 0 0; padding: 14px 16px; border-radius: 8px; background: rgb(0 0 0 / .04); font-size: .875rem; color: #5b5853; }
.fpc-co__card-loading[hidden] { display: none; }
