/* Flip Dock Funnel: add-on radios, checkout bumps, thank-you offer.
   Brand it by overriding these variables in your theme's Additional CSS. */
:root {
	--fdf-accent: #3B63F0;
	--fdf-accent-tint: rgba(59, 99, 240, 0.12);
	--fdf-border: #98A9C4;
	--fdf-text: inherit;
	--fdf-muted: #536684;
	--fdf-radius: 10px;
	--fdf-badge-bg: #3B63F0;
	--fdf-badge-border: #3B63F0;
	--fdf-badge-text: #FFFFFF;
}

/* ---------- Product page: add-on radios ---------- */
.fdf-addons { margin: 0 0 1.25em; width: 100%; flex-basis: 100%; }
.fdf-addons__group { border: 0; padding: 0; margin: 0; min-width: 0; }
.fdf-addons__heading { font-weight: 600; margin: 0 0 0.6em; padding: 0; font-size: 1em; }
.fdf-addons label.fdf-option {
	display: flex !important; /* themes often set form labels to display:block */ gap: 0.75em; align-items: flex-start;
	border: 1px solid var(--fdf-border); border-radius: var(--fdf-radius);
	padding: 0.85em 1em; margin: 0 0 0.6em; cursor: pointer;
	transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.fdf-option:hover { border-color: var(--fdf-accent); }
.fdf-option.is-selected { border-color: var(--fdf-accent); background: var(--fdf-accent-tint); box-shadow: inset 0 0 0 1px var(--fdf-accent); }
.fdf-option input[type="radio"] { margin: 0.2em 0 0; accent-color: var(--fdf-accent); width: 1.1em; height: 1.1em; flex: none; }
.fdf-option input[type="radio"]:focus-visible { outline: 2px solid var(--fdf-accent); outline-offset: 2px; }
.fdf-option__body { display: block; flex: 1; min-width: 0; }
.fdf-option__top { display: flex; justify-content: space-between; gap: 1em; align-items: baseline; }
.fdf-option__label { font-weight: 600; }
.fdf-option__price { font-weight: 600; white-space: nowrap; }
.fdf-option__desc { display: block; color: var(--fdf-muted); font-size: 0.92em; margin-top: 0.2em; line-height: 1.45; }
.fdf-total { display: flex; justify-content: space-between; margin: 0.4em 0 0; padding: 0.4em 0.2em 0; font-weight: 600; }
.fdf-total[hidden] { display: none; }
.fdf-addons__included { display: flex; gap: 0.5em; align-items: center; margin: 0 0 0.5em; color: var(--fdf-muted); }
.fdf-addons__included[hidden] { display: none; }
.fdf-addons__included .fdf-check { color: var(--fdf-accent); flex: none; }

/* ---------- Shared offer card (bump + thank-you) ---------- */
.fdf-card,
.fdf-bump label.fdf-card {
	display: flex !important; /* themes often set checkout labels to display:block */ gap: 0.9em; align-items: flex-start;
	border: 2px dashed var(--fdf-border); border-radius: var(--fdf-radius);
	padding: 1.1em 1.2em; margin: 0 0 1em; cursor: pointer; background: transparent;
	transition: border-color .15s, background-color .15s;
}
.fdf-card__body { display: block; flex: 1; min-width: 0; }
.fdf-card__top { display: flex; justify-content: space-between; gap: 1em; align-items: baseline; }
.fdf-card__title { font-weight: 700; font-size: 1.08em; line-height: 1.3; margin: 0; }
.fdf-card__price { font-weight: 600; white-space: nowrap; font-size: 1.05em; }
.fdf-card__desc { display: block; margin-top: 0.55em; line-height: 1.55; }
.fdf-badge {
	display: inline-block; font-size: 0.82em; font-weight: 600; letter-spacing: 0.02em;
	padding: 0.12em 0.55em; margin-right: 0.45em; border-radius: 5px;
	background: var(--fdf-badge-bg); border: 1px solid var(--fdf-badge-border); color: var(--fdf-badge-text);
}
.fdf-card__bullets { display: block; margin-top: 0.7em; }
.fdf-card__bullet { display: flex; gap: 0.55em; align-items: flex-start; margin-top: 0.45em; line-height: 1.45; }
.fdf-card__bullet .fdf-check { color: var(--fdf-accent); flex: none; margin-top: 0.1em; }

/* ---------- Checkout bump ---------- */
.fdf-bump { margin: 1em 0; }
.fdf-bump .fdf-card:hover { border-color: var(--fdf-accent); }
.fdf-bump.is-checked .fdf-card { border-color: var(--fdf-accent); background: var(--fdf-accent-tint); }
.fdf-bump__input { width: 1.4em; height: 1.4em; margin: 0.1em 0 0 !important; flex: none; accent-color: var(--fdf-accent); cursor: pointer; }
.fdf-bump__input:focus-visible { outline: 2px solid var(--fdf-accent); outline-offset: 2px; }
.fdf-bump.is-busy { opacity: 0.6; pointer-events: none; }
.fdf-bump__error { color: #b42318; font-size: 0.9em; margin: -0.5em 0 1em; }

/* ---------- Thank-you offer ---------- */
.fdf-offer { margin: 0 0 2em; }
.fdf-offer .fdf-card--offer { cursor: default; border-color: var(--fdf-accent); flex-direction: column; align-items: stretch; }
.fdf-card--offer .fdf-card__title { font-size: 1.25em; }
.fdf-offer__actions { display: flex; gap: 1em; align-items: center; flex-wrap: wrap; margin-top: 0.4em; }
.fdf-offer__accept.button { margin: 0; }
.fdf-offer__dismiss { background: none !important; border: 0 !important; color: var(--fdf-muted) !important; text-decoration: underline; cursor: pointer; padding: 0 !important; font-size: 0.95em; box-shadow: none !important; }

@media (max-width: 480px) {
	.fdf-card { padding: 0.9em; gap: 0.7em; }
	.fdf-card__top, .fdf-option__top { flex-direction: column; gap: 0.15em; }
	.fdf-offer__actions .fdf-offer__accept { width: 100%; text-align: center; }
}

/* ---------- Checkout reassurance ---------- */
.fdf-lock-button #place_order { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; }
.fdf-lock-button #place_order::before {
	content: ""; width: 1em; height: 1em; flex: none; background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5' y='11' width='14' height='10' rx='2' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5' y='11' width='14' height='10' rx='2' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.fdf-trust { margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; clear: both; float: none; width: 100%; flex: 1 1 100%; box-sizing: border-box; }
.fdf-trust__line { display: flex; gap: 8px; align-items: flex-start; justify-content: center; margin: 0 !important; padding: 0; font-size: 13px !important; line-height: 1.45 !important; color: var(--fdf-muted); text-align: left; }
.fdf-trust__line span { max-width: 34em; }
.fdf-trust__icon { flex: none; width: 15px !important; height: 15px !important; max-width: none; margin-top: 2px; color: var(--fdf-muted); }
.fdf-trust__line a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.fdf-consent { margin: 12px 0 0 !important; padding: 12px 14px !important; border-radius: var(--fdf-radius); background: var(--fdf-accent-tint); width: 100%; box-sizing: border-box; }
.fdf-consent label.checkbox, .fdf-consent label { display: flex !important; gap: 10px; align-items: flex-start; margin: 0 !important; font-size: 14px !important; line-height: 1.45 !important; font-weight: 400; cursor: pointer; }
.fdf-consent input[type="checkbox"] { margin: 2px 0 0 !important; width: 18px; height: 18px; flex: none; accent-color: var(--fdf-accent); }
.fdf-consent__text { flex: 1; min-width: 0; }
.fdf-consent__text abbr.required { text-decoration: none; border: 0; }
.fdf-consent a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Consistent type scale (px, so theme font sizes don't leak in) ---------- */
.fdf-addons, .fdf-bump, .fdf-offer, .fdf-trust { font-size: 15px; line-height: 1.5; }
.fdf-addons__heading { font-size: 16px !important; }
.fdf-option__label, .fdf-option__price { font-size: 15px; }
.fdf-option__desc { font-size: 14px; }
.fdf-total { font-size: 16px; }
.fdf-card__title { font-size: 16px !important; line-height: 1.35; }
.fdf-card__price { font-size: 16px; }
.fdf-card__desc, .fdf-card__bullet { font-size: 14px; line-height: 1.5; }
.fdf-badge { font-size: 11px; letter-spacing: 0.04em; vertical-align: 1px; }
.fdf-card--offer .fdf-card__title { font-size: 20px !important; }
.fdf-trust__line { font-size: 13px !important; }

/* ---------- Product image in offer cards (own row, under the bullets) ---------- */
.fdf-card__media { display: block; width: 100%; max-width: 420px; aspect-ratio: 4 / 3; margin-top: 14px; border-radius: 8px; overflow: hidden; background: #F1F4F9; }
.fdf-card__media img, .fdf-card__img { width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; display: block; margin: 0 !important; border-radius: 0; }
.fdf-card--offer .fdf-card__media { max-width: 520px; }
