/*
 * MyFunnelix — front-end styles.
 * Scoped under .migi-fe so nothing can leak into the Elementor design.
 */

.migi-fe {
	--migi-ink: #2b2118;
	--migi-muted: #7a6a5c;
	--migi-line: #e6ddd3;
	--migi-bg: #fffdfa;
	--migi-accent: #c08552;
	--migi-accent-dark: #a06c3f;
	--migi-error: #b3261e;
	--migi-ok: #2e7d32;

	box-sizing: border-box;
	width: 100%;
	max-width: 620px;
	margin: 0 auto;
	padding: 0 16px;
	color: var(--migi-ink);
	font-size: 16px;
	line-height: 1.5;
	text-align: left;
}

.migi-fe *,
.migi-fe *::before,
.migi-fe *::after {
	box-sizing: border-box;
}

.migi-form {
	background: var(--migi-bg);
	border: 1px solid var(--migi-line);
	border-radius: 16px;
	padding: 20px 16px 24px;
	box-shadow: 0 6px 24px rgba(43, 33, 24, 0.06);
}

.migi-form__title {
	margin: 0 0 16px;
	font-size: 20px;
	line-height: 1.25;
	text-align: center;
	color: var(--migi-ink);
}

.migi-field {
	margin-bottom: 14px;
	min-width: 0;
	position: relative;
}

.migi-label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 600;
}

.migi-req {
	color: var(--migi-accent-dark);
}

.migi-optional {
	font-weight: 400;
	color: var(--migi-muted);
	font-size: 13px;
}

.migi-fe input[type="text"],
.migi-fe input[type="tel"],
.migi-fe input[type="email"],
.migi-fe select,
.migi-fe textarea {
	width: 100%;
	max-width: 100%;
	/* Themes like to pin a height on selects; with our padding that leaves a
	   couple of pixels for the text and the chosen office turns invisible. */
	height: auto;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid var(--migi-line);
	border-radius: 10px;
	background: #fff;
	color: var(--migi-ink);
	font-size: 16px;
	font-family: inherit;
	line-height: 1.4;
	appearance: none;
	-webkit-appearance: none;
}

.migi-fe textarea {
	resize: vertical;
	min-height: 60px;
}

.migi-fe input:focus,
.migi-fe select:focus,
.migi-fe textarea:focus {
	outline: 2px solid var(--migi-accent);
	outline-offset: 1px;
	border-color: var(--migi-accent);
}

.migi-fe select:disabled {
	background: #f6f2ed;
	color: var(--migi-muted);
}

/* Packages ---------------------------------------------------------------- */

.migi-packs {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
}

.migi-pack {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border: 1px solid var(--migi-line);
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.migi-pack.is-selected {
	border-color: var(--migi-accent);
	box-shadow: 0 0 0 2px rgba(192, 133, 82, 0.18);
}

.migi-pack input {
	flex: 0 0 auto;
	margin: 0;
	width: 18px;
	height: 18px;
	accent-color: var(--migi-accent);
}

.migi-pack__body {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
	min-width: 0;
}

.migi-pack__name {
	font-weight: 600;
}

.migi-pack__price {
	color: var(--migi-accent-dark);
	font-weight: 700;
}

.migi-pack__ship {
	flex-basis: 100%;
	font-size: 12px;
	color: var(--migi-ok);
}

.migi-pack__ship--paid {
	color: var(--migi-muted);
}

/* Choice rows ------------------------------------------------------------- */

.migi-choice-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.migi-choice {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: 1 1 140px;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid var(--migi-line);
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	font-size: 15px;
}

.migi-choice input {
	margin: 0;
	accent-color: var(--migi-accent);
}

.migi-choice--terms {
	flex: 1 1 100%;
	align-items: flex-start;
	font-size: 14px;
	line-height: 1.45;
	border: 0;
	padding: 0;
	background: transparent;
}

.migi-choice--terms input {
	margin-top: 3px;
	flex: 0 0 auto;
}

.migi-fe a {
	color: var(--migi-accent-dark);
	text-decoration: underline;
}

/* Suggestions ------------------------------------------------------------- */

.migi-suggest {
	position: absolute;
	z-index: 30;
	left: 0;
	right: 0;
	margin: 4px 0 0;
	padding: 4px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--migi-line);
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(43, 33, 24, 0.12);
	max-height: 240px;
	overflow-y: auto;
}

.migi-suggest__item {
	padding: 9px 10px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 15px;
}

.migi-suggest__item:hover {
	background: #f7f1e9;
}

.migi-hint {
	display: block;
	margin-top: 5px;
	font-size: 13px;
	color: var(--migi-muted);
}

.migi-error {
	display: block;
	margin-top: 5px;
	font-size: 13px;
	color: var(--migi-error);
}

/* Bump -------------------------------------------------------------------- */

.migi-bump {
	margin: 4px 0 14px;
	padding: 12px;
	border: 2px dashed var(--migi-accent);
	border-radius: 12px;
	background: #fffaf3;
}

.migi-bump__label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
}

.migi-bump__label input {
	margin-top: 3px;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	accent-color: var(--migi-accent);
}

.migi-bump__body {
	display: flex;
	gap: 10px;
	min-width: 0;
}

.migi-bump__img img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 8px;
	display: block;
}

.migi-bump__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	font-size: 14px;
}

.migi-bump__price {
	font-weight: 700;
	color: var(--migi-accent-dark);
}

/* Summary ----------------------------------------------------------------- */

.migi-summary {
	margin: 16px 0;
	padding: 12px 14px;
	border-radius: 12px;
	background: #f7f1e9;
	font-size: 15px;
}

.migi-summary__row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 3px 0;
	min-width: 0;
}

.migi-summary__row span:last-child {
	text-align: right;
	white-space: nowrap;
}

.migi-summary__row--total {
	margin-top: 6px;
	padding-top: 8px;
	border-top: 1px solid var(--migi-line);
	font-weight: 700;
	font-size: 17px;
}

.migi-flash {
	animation: migi-flash 0.6s ease;
}

@keyframes migi-flash {
	0% { background: #f1e2cd; }
	100% { background: #f7f1e9; }
}

/* Buttons ----------------------------------------------------------------- */

.migi-submit {
	position: relative;
	display: block;
	width: 100%;
	padding: 15px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--migi-accent);
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	font-family: inherit;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.15s ease;
}

.migi-submit:hover,
.migi-submit:focus {
	background: var(--migi-accent-dark);
}

.migi-submit__spinner {
	display: none;
	width: 16px;
	height: 16px;
	margin-left: 8px;
	border: 2px solid rgba(255, 255, 255, 0.5);
	border-top-color: #fff;
	border-radius: 50%;
	vertical-align: -3px;
	animation: migi-spin 0.7s linear infinite;
}

.is-busy .migi-submit__spinner,
.migi-submit.is-busy .migi-submit__spinner {
	display: inline-block;
}

@keyframes migi-spin {
	to { transform: rotate(360deg); }
}

.migi-decline {
	display: block;
	width: 100%;
	margin-top: 10px;
	padding: 12px;
	border: 0;
	background: transparent;
	color: var(--migi-muted);
	font-size: 15px;
	font-family: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.migi-form__foot {
	margin: 10px 0 0;
	text-align: center;
	font-size: 13px;
	color: var(--migi-muted);
}

.migi-alert {
	margin-top: 12px;
	padding: 10px 12px;
	border-radius: 10px;
	background: #fdecea;
	color: var(--migi-error);
	font-size: 14px;
}

.migi-note {
	padding: 14px;
	border: 1px solid var(--migi-line);
	border-radius: 12px;
	background: var(--migi-bg);
	text-align: center;
}

/* Upsell ------------------------------------------------------------------ */

.migi-upsell,
.migi-thankyou {
	background: var(--migi-bg);
	border: 1px solid var(--migi-line);
	border-radius: 16px;
	padding: 20px 16px;
}

.migi-upsell__confirm {
	margin: 0 0 12px;
	padding: 8px 12px;
	border-radius: 10px;
	background: #edf7ed;
	color: #1f5f23;
	font-size: 14px;
	text-align: center;
}

.migi-upsell__heading {
	margin: 0 0 12px;
	font-size: 19px;
	line-height: 1.3;
	text-align: center;
}

.migi-upsell__card {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding: 12px;
	border: 1px solid var(--migi-line);
	border-radius: 12px;
	background: #fff;
	margin-bottom: 14px;
}

.migi-upsell__img img {
	width: 96px;
	height: auto;
	max-width: 100%;
	border-radius: 10px;
	display: block;
}

.migi-upsell__body {
	flex: 1 1 200px;
	min-width: 0;
}

.migi-upsell__desc {
	margin: 6px 0;
	font-size: 14px;
	color: var(--migi-muted);
}

.migi-upsell__price {
	margin: 6px 0 0;
	font-size: 18px;
	font-weight: 700;
	color: var(--migi-accent-dark);
}

/* Thank you --------------------------------------------------------------- */

.migi-thankyou__title {
	margin: 0 0 8px;
	font-size: 22px;
	text-align: center;
}

.migi-thankyou__number {
	margin: 0 0 16px;
	text-align: center;
	font-size: 15px;
}

.migi-thankyou__block {
	margin-bottom: 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--migi-line);
}

.migi-thankyou__block:last-of-type {
	border-bottom: 0;
}

.migi-thankyou__block h4 {
	margin: 0 0 8px;
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--migi-muted);
}

.migi-thankyou__items {
	list-style: none;
	margin: 0;
	padding: 0;
}

.migi-thankyou__items li,
.migi-thankyou__row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 4px 0;
	min-width: 0;
}

.migi-thankyou__items li span:last-child,
.migi-thankyou__row span:last-child {
	text-align: right;
	white-space: nowrap;
}

.migi-thankyou__row--total {
	margin-top: 6px;
	padding-top: 8px;
	border-top: 1px solid var(--migi-line);
	font-weight: 700;
	font-size: 17px;
}

.migi-thankyou__delivery {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
}

.migi-thankyou__foot {
	margin: 14px 0 0;
	text-align: center;
	font-size: 13px;
	color: var(--migi-muted);
}

/* Wider screens ----------------------------------------------------------- */

@media (min-width: 560px) {
	.migi-fe {
		padding: 0 20px;
	}

	.migi-form {
		padding: 26px 24px 28px;
	}

	.migi-grid {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0 14px;
	}

	.migi-grid .migi-field:first-child {
		grid-column: 1 / -1;
	}

	.migi-packs {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.migi-pack {
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
	}
}

@media (min-width: 1024px) {
	.migi-fe {
		max-width: 680px;
	}
}

/* ==========================================================================
   Funnel v2 — package chooser, checkout page, shared offer clock
   ========================================================================== */

/* Package chooser on the sales page ---------------------------------------- */

.migi-chooser__title {
	margin: 0 0 14px;
	font-size: 19px;
	text-align: center;
}

.migi-chooser__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

.migi-chooser__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 16px 14px;
	border: 1px solid var(--migi-line);
	border-radius: 14px;
	background: #fff;
	text-align: center;
}

.migi-chooser__card.is-best {
	border-color: var(--migi-accent);
	box-shadow: 0 0 0 2px rgba(192, 133, 82, 0.16);
}

.migi-chooser__name {
	font-weight: 700;
	font-size: 16px;
}

.migi-chooser__price {
	font-size: 22px;
	font-weight: 800;
	color: var(--migi-accent-dark);
}

.migi-chooser__ship {
	font-size: 12px;
	color: var(--migi-ok);
	min-height: 1.2em;
}

.migi-chooser__ship.is-paid {
	color: var(--migi-muted);
}

.migi-chooser__cta {
	margin-top: 8px;
	display: inline-block;
	width: 100%;
	text-align: center;
	text-decoration: none;
	color: #fff;
}

.migi-fe a.migi-chooser__cta {
	text-decoration: none;
	color: #fff;
}

.migi-chooser__missing {
	margin-top: 8px;
	font-size: 12px;
	color: var(--migi-error);
}

/* Order box on the checkout page ------------------------------------------- */

.migi-order-box {
	margin-bottom: 18px;
	padding: 14px;
	border: 1px solid var(--migi-line);
	border-radius: 14px;
	background: #fff;
}

.migi-order-box__title {
	margin: 0 0 10px;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--migi-muted);
}

.migi-order-line {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid var(--migi-line);
	min-width: 0;
}

.migi-order-line__img img {
	width: 52px;
	height: 52px;
	object-fit: cover;
	border-radius: 8px;
	display: block;
}

.migi-order-line__body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.migi-order-line__name {
	font-weight: 600;
	font-size: 15px;
}

.migi-order-line__qty {
	color: var(--migi-muted);
	font-weight: 400;
}

.migi-order-line__desc {
	font-size: 13px;
	color: var(--migi-muted);
}

.migi-order-line__price {
	flex: 0 0 auto;
	text-align: right;
	display: flex;
	flex-direction: column;
	white-space: nowrap;
}

.migi-order-line__price s {
	font-size: 12px;
	color: var(--migi-muted);
}

.migi-order-line__price strong {
	color: var(--migi-accent-dark);
}

/* Quantity ------------------------------------------------------------------ */

.migi-qty {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--migi-line);
}

.migi-qty__label {
	font-weight: 600;
	font-size: 14px;
}

.migi-qty__control {
	display: flex;
	align-items: stretch;
	border: 1px solid var(--migi-line);
	border-radius: 10px;
	overflow: hidden;
}

.migi-qty__btn {
	width: 40px;
	border: 0;
	background: #f7f1e9;
	color: var(--migi-ink);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	font-family: inherit;
}

.migi-fe .migi-qty__control input {
	width: 62px;
	border: 0;
	border-left: 1px solid var(--migi-line);
	border-right: 1px solid var(--migi-line);
	border-radius: 0;
	text-align: center;
	padding: 10px 4px;
	-moz-appearance: textfield;
}

.migi-fe .migi-qty__control input::-webkit-outer-spin-button,
.migi-fe .migi-qty__control input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.migi-qty__hint {
	flex-basis: 100%;
	font-size: 12px;
	color: var(--migi-muted);
}

/* Bump ---------------------------------------------------------------------- */

.migi-bump {
	position: relative;
	margin: 14px 0 6px;
}

.migi-bump__badge {
	position: absolute;
	top: -10px;
	right: 10px;
	padding: 3px 10px;
	border-radius: 4px;
	background: #d93025;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.migi-bump__title {
	margin: 0 0 6px;
	padding-right: 100px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
}

/* Sections ------------------------------------------------------------------ */

.migi-section-title {
	margin: 18px 0 10px;
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--migi-muted);
}

.migi-payment {
	margin: 4px 0 14px;
}

.migi-payment__row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border: 1px solid var(--migi-line);
	border-radius: 10px;
	background: #fff;
	font-size: 15px;
}

.migi-payment__check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--migi-ink);
	color: #fff;
	font-size: 13px;
	flex: 0 0 auto;
}

/* Invalid fields ------------------------------------------------------------ */

.migi-fe .migi-invalid,
.migi-fe input.migi-invalid,
.migi-fe select.migi-invalid,
.migi-fe textarea.migi-invalid {
	border-color: var(--migi-error);
	box-shadow: 0 0 0 2px rgba(179, 38, 30, 0.12);
}

/* Upsell price box ---------------------------------------------------------- */

.migi-upsell__price-box {
	text-align: center;
	padding: 4px 0 12px;
}

.migi-upsell__was {
	margin: 0 0 6px;
	font-size: 15px;
	color: var(--migi-muted);
}

.migi-upsell__now-label {
	margin: 0;
	font-size: 15px;
}

.migi-upsell__now {
	margin: 2px 0 6px;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.1;
	color: var(--migi-accent-dark);
}

.migi-upsell__ship {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--migi-ok);
}

.migi-upsell__note {
	margin: 12px 0 0;
	text-align: center;
	font-size: 13px;
	color: var(--migi-muted);
}

/* Shared offer clock -------------------------------------------------------- */

.migi-offer-clock-wrap {
	width: 100%;
	max-width: 100%;
	margin: 6px 0 18px;
	padding: 0 12px;
	box-sizing: border-box;
}

/* Fallback design, matching the countdown already on the page. */
.migi-cd.migi-clock {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	gap: clamp(2px, 1.2vw, 8px);
	flex-wrap: nowrap;
}

.migi-cd.migi-clock .u {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.migi-cd.migi-clock .d {
	display: flex;
	gap: 4px;
}

.migi-cd.migi-clock .d span {
	background: linear-gradient(180deg, var(--migi-cd-from, #e6c860), var(--migi-cd-to, #d4af37));
	color: var(--migi-cd-digit, #1a1a1a);
	font-weight: 800;
	font-size: clamp(20px, 6vw, 34px);
	line-height: 1;
	padding: 10px 8px;
	border-radius: 6px;
	min-width: clamp(26px, 8vw, 44px);
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.migi-cd.migi-clock .u small {
	color: var(--migi-cd-label, #b39b72);
	font-size: clamp(11px, 2.6vw, 12px);
	text-transform: uppercase;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.migi-cd.migi-clock .c {
	color: var(--migi-cd-sep, #d4af37);
	font-weight: 800;
	font-size: clamp(18px, 5vw, 30px);
	padding-top: 10px;
}

.migi-clock.is-expired {
	opacity: 0.55;
}

@media (min-width: 560px) {
	.migi-chooser__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Long delivery wording must wrap on narrow screens; only money stays on one line. */
.migi-summary__row [data-migi-ship],
.migi-thankyou__row span:last-child {
	white-space: normal;
	overflow-wrap: anywhere;
}

.migi-summary__row span:last-child {
	min-width: 0;
}

.migi-summary__row span:first-child {
	flex: 0 1 auto;
	min-width: 0;
}

.migi-summary__row--total span:last-child,
.migi-thankyou__row--total span:last-child {
	white-space: nowrap;
}

/* ==========================================================================
   Dark offer theme — used on the upsell and thank-you pages so the plugin's
   own blocks match the Elementor design around them.
   ========================================================================== */

.migi-fe.migi-dark,
.migi-dark .migi-fe {
	--migi-ink: #ffffff;
	--migi-muted: #cfc6b8;
	--migi-line: rgba(255, 255, 255, 0.18);
	--migi-bg: #2e2e2e;
	--migi-accent: var(--migi-gold, #d4af37);
	--migi-accent-dark: var(--migi-gold, #d4af37);
	--migi-ok: #d4af37;
	max-width: 100%;
	padding: 0;
}

.migi-dark .migi-upsell,
.migi-dark .migi-thankyou {
	background: transparent;
	border: 0;
	padding: 0;
	color: #fff;
}

.migi-dark .migi-upsell__was {
	color: #fff;
	font-size: 32px;
	font-weight: 700;
}

.migi-dark .migi-upsell__was s {
	text-decoration-thickness: 2px;
}

.migi-dark .migi-upsell__now-label {
	color: var(--migi-gold, #d4af37);
	font-size: 32px;
	font-weight: 700;
}

.migi-dark .migi-upsell__now {
	color: var(--migi-gold, #d4af37);
	font-size: 48px;
	font-weight: 700;
}

.migi-dark .migi-upsell__ship {
	display: inline-block;
	padding: 6px 14px;
	background: #8c7853;
	color: #fff;
	font-size: 22px;
	font-weight: 400;
}

.migi-dark .migi-upsell__note {
	color: var(--migi-muted);
}

.migi-dark .migi-submit {
	border-radius: 0;
	background: var(--migi-gold, #d4af37);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.migi-dark .migi-submit:hover,
.migi-dark .migi-submit:focus {
	background: #c19f2c;
}

.migi-dark .migi-decline {
	color: #fff;
	font-size: 16px;
	font-weight: 400;
}

.migi-dark .migi-thankyou__title,
.migi-dark .migi-thankyou__number,
.migi-dark .migi-thankyou__items li,
.migi-dark .migi-thankyou__row,
.migi-dark .migi-thankyou__delivery {
	color: #fff;
}

.migi-dark .migi-thankyou__block {
	border-bottom-color: rgba(255, 255, 255, 0.16);
}

.migi-dark .migi-thankyou__block h4 {
	color: var(--migi-gold, #d4af37);
}

.migi-dark .migi-thankyou__foot {
	color: var(--migi-muted);
}

.migi-dark .migi-note {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.18);
	color: #fff;
}

@media (max-width: 560px) {
	.migi-dark .migi-upsell__now {
		font-size: 38px;
	}

	.migi-dark .migi-upsell__was,
	.migi-dark .migi-upsell__now-label {
		font-size: 24px;
	}

	.migi-dark .migi-upsell__ship {
		font-size: 17px;
	}
}

/* Small decorations used by the generated Elementor pages. */

.migi-progress {
	width: 100%;
	max-width: 100%;
	height: 22px;
	padding: 4px;
	border-radius: 4px;
	background: var(--migi-gold, #d4af37);
	box-sizing: border-box;
}

.migi-progress span {
	display: block;
	height: 100%;
	border-radius: 2px;
	background: repeating-linear-gradient(135deg, #1a1a1a, #1a1a1a 8px, #2e2e2e 8px, #2e2e2e 16px);
}

.migi-alert-band {
	display: inline-block;
	margin: 0 auto;
	padding: 6px 14px;
	background: #e25041;
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
}

.migi-heart {
	margin: 10px 0;
	color: var(--migi-gold, #d4af37);
	font-size: 42px;
	line-height: 1;
	text-align: center;
}

.migi-rule {
	margin: 14px 0;
	border: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.25);
}

/* The generated pages centre their text blocks. */
.migi-alert-band {
	display: block;
	max-width: 100%;
}

.migi-dark .migi-upsell__pack {
	margin: 4px 0 8px;
	color: #fff;
	font-size: 28px;
	font-weight: 400;
}

@media (max-width: 560px) {
	.migi-dark .migi-upsell__pack {
		font-size: 20px;
	}
}

/* ==========================================================================
   Checkout skin — the two-column layout from the reference funnel
   ========================================================================== */

.migi-checkout-skin {
	--migi-page-bg: #000000;
	--migi-form-bg: #8c7853;
	--migi-card-bg: #ffffff;
	--migi-btn-bg: #d4ae36;
	--migi-badge-bg: #d82e2e;

	max-width: 1140px;
	padding: 0;
}

.migi-co {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0;
	background: var(--migi-page-bg);
	border: 0;
	border-radius: 0;
	padding: 0;
	box-shadow: none;
}

.migi-co__form {
	flex: 1 1 340px;
	min-width: 0;
	background: var(--migi-form-bg);
	padding: 28px 26px 34px;
	box-sizing: border-box;
}

.migi-co__side {
	flex: 0 1 400px;
	min-width: 0;
	padding: 28px 22px;
	box-sizing: border-box;
}

.migi-co__section {
	margin: 20px 0 12px;
	color: #fff;
	font-size: 19px;
	font-weight: 400;
	line-height: 1.3;
}

.migi-co__section:first-child {
	margin-top: 0;
}

.migi-co .migi-field {
	margin-bottom: 10px;
}

.migi-checkout-skin input[type="text"],
.migi-checkout-skin input[type="tel"],
.migi-checkout-skin input[type="email"],
.migi-checkout-skin input[type="number"],
.migi-checkout-skin select,
.migi-checkout-skin textarea {
	width: 100%;
	height: auto;
	box-sizing: border-box;
	padding: 16px;
	border: 1px solid #fff;
	border-radius: 3px;
	background: #fff;
	color: #000;
	font-size: 15px;
	line-height: 1.4;
}

.migi-checkout-skin ::placeholder {
	color: #8a8a8a;
	opacity: 1;
}

.migi-hint--light {
	color: rgba(255, 255, 255, 0.85);
}

.migi-co .migi-error {
	color: #ffe0dd;
	font-weight: 600;
}

.migi-checkout-skin .migi-invalid {
	border-color: var(--migi-badge-bg);
	box-shadow: 0 0 0 2px rgba(216, 46, 46, 0.35);
}

/* Delivery and payment options ---------------------------------------------- */

.migi-methods {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 6px;
}

.migi-method {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid #fff;
	border-radius: 3px;
	color: #000;
	font-size: 15px;
	cursor: pointer;
	min-width: 0;
}

.migi-method.is-static {
	cursor: default;
}

.migi-method input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.migi-method__tick {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 1px solid #c9c9c9;
	background: #fff;
	position: relative;
}

.migi-method.is-selected .migi-method__tick {
	background: #1a1a1a;
	border-color: #1a1a1a;
}

.migi-method.is-selected .migi-method__tick::after {
	content: "";
	position: absolute;
	left: 7px;
	top: 3px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.migi-method__label {
	flex: 1 1 auto;
	min-width: 0;
}

.migi-method__price {
	flex: 0 0 auto;
	font-weight: 600;
	white-space: nowrap;
}

/* Bump ---------------------------------------------------------------------- */

.migi-co .migi-bump {
	position: relative;
	margin: 22px 0 14px;
	padding: 25px;
	background: #fff;
	border: 2px dashed #888;
	border-radius: 5px;
}

.migi-co .migi-bump__badge {
	position: absolute;
	top: -14px;
	right: 14px;
	padding: 10px 15px;
	border-radius: 3px;
	background: var(--migi-badge-bg);
	color: #fff;
	font-size: 12px;
	font-weight: 400;
	line-height: 1;
}

.migi-co .migi-bump__title {
	margin: 0 0 10px;
	padding-right: 0;
	color: #1a1a1a;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
}

.migi-co .migi-bump__text strong,
.migi-co .migi-bump__text em {
	color: #1a1a1a;
}

.migi-co .migi-bump__price {
	color: #1a1a1a;
	font-weight: 700;
}

/* Legal, consent, submit, trust --------------------------------------------- */

.migi-legal {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 16px 0 10px;
	font-size: 13px;
}

.migi-checkout-skin .migi-legal a {
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
}

.migi-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: #fff;
	font-size: 14px;
	line-height: 1.45;
	cursor: pointer;
}

.migi-consent input {
	margin-top: 3px;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
}

.migi-co__submit {
	margin-top: 8px;
	border-radius: 0;
	background: var(--migi-btn-bg);
	color: #fff;
	font-size: 18px;
	font-weight: 400;
	padding: 20px 24px;
}

.migi-co__submit:hover,
.migi-co__submit:focus {
	background: #c19f2c;
}

.migi-trust {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 22px;
	margin-top: 14px;
	color: rgba(255, 255, 255, 0.6);
	font-size: 12px;
	letter-spacing: 0.04em;
}

/* Order card ----------------------------------------------------------------- */

.migi-card-order {
	background: var(--migi-card-bg);
	border-radius: 7px;
	padding: 35px;
	color: #000;
}

.migi-card-order__title {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 400;
	color: #1a1a1a;
}

.migi-card-order .migi-order-line {
	align-items: center;
	border-bottom: 0;
	padding: 14px 0;
}

.migi-card-order .migi-order-line__img {
	position: relative;
	flex: 0 0 auto;
}

.migi-order-line__badge {
	position: absolute;
	top: -8px;
	right: -8px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 999px;
	background: #6b6b6b;
	color: #fff;
	font-size: 11px;
	line-height: 20px;
	text-align: center;
}

.migi-card-order .migi-order-line__name {
	font-size: 14px;
	font-weight: 400;
	color: #1a1a1a;
}

.migi-card-order .migi-order-line__desc {
	font-size: 12px;
	color: #6b6b6b;
}

.migi-card-order .migi-order-line__price s {
	display: block;
	font-size: 12px;
	color: #9a9a9a;
}

.migi-card-order .migi-order-line__price strong {
	font-size: 14px;
	color: #000;
	font-weight: 700;
}

.migi-card-order .migi-summary {
	margin: 10px 0 0;
	padding: 14px 0 0;
	border-top: 1px solid #ececec;
	background: transparent;
	border-radius: 0;
}

.migi-card-order .migi-summary__row {
	font-size: 14px;
	color: #000;
	padding: 5px 0;
}

.migi-card-order .migi-summary__row span:last-child {
	font-size: 17px;
	font-weight: 700;
}

.migi-card-order .migi-summary__row--total {
	margin-top: 8px;
	padding-top: 12px;
	border-top: 1px solid #ececec;
}

.migi-card-order .migi-summary__row--total span:last-child {
	font-size: 26px;
}

.migi-card-order .migi-qty {
	border-bottom: 0;
	padding-top: 0;
}

.migi-card-order .migi-qty__hint {
	color: #6b6b6b;
}

/* Layout at wider sizes ------------------------------------------------------ */

@media (max-width: 899px) {
	.migi-co__side {
		order: -1;
		flex: 1 1 100%;
		padding: 16px 0 10px;
	}

	.migi-co__form {
		flex: 1 1 100%;
		padding: 22px 16px 26px;
	}

	.migi-card-order {
		padding: 22px 18px;
	}
}

@media (min-width: 900px) {
	.migi-co__form {
		flex: 1 1 58%;
		max-width: 60%;
	}

	.migi-co__side {
		flex: 1 1 40%;
		max-width: 42%;
	}
}

/* The office picker keeps the field white while it waits for a city. */
.migi-checkout-skin select:disabled {
	background: #fff;
	color: #8a8a8a;
	opacity: 1;
}

.migi-checkout-skin select {
	/* Room for one line of text whatever the theme asks for, and a long
	   office name is cut with an ellipsis instead of sliding under the arrow. */
	height: auto;
	min-height: 54px;
	line-height: 1.4;
	text-overflow: ellipsis;
	appearance: none;
	-webkit-appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, #6b6b6b 50%), linear-gradient(135deg, #6b6b6b 50%, transparent 50%);
	background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 14px) calc(50% + 2px);
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	padding-right: 38px;
}

/* Standalone countdown placed with [migi_timer]. */

.migi-clock-wrap {
	display: flex;
	width: 100%;
	max-width: 100%;
	margin: 6px 0;
}

.migi-clock-wrap--center { justify-content: center; }
.migi-clock-wrap--left { justify-content: flex-start; }
.migi-clock-wrap--right { justify-content: flex-end; }

/* Bump: the running total the second product makes ------------------------- */

/* The thumbnail keeps its size instead of being squeezed by the text. */
.migi-bump__img {
	flex: 0 0 auto;
}

.migi-co .migi-bump__img img {
	width: 84px;
	height: 84px;
	object-fit: contain;
	background: #fff;
	border-radius: 6px;
}

.migi-bump__new {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	margin: 14px 0 0;
	padding: 10px 12px;
	border-radius: 4px;
	background: #f3efe6;
	color: #1a1a1a;
	font-size: 14px;
	line-height: 1.3;
}

.migi-bump__new-label {
	font-weight: 600;
}

.migi-bump__new-was {
	text-decoration: line-through;
	color: #7a7a7a;
}

.migi-bump__new-arrow {
	color: #7a7a7a;
}

.migi-bump__new-total {
	font-size: 18px;
	font-weight: 700;
	color: var(--migi-badge-bg, #d82e2e);
}

@media (max-width: 480px) {
	.migi-co .migi-bump {
		padding: 22px 14px 16px;
	}

	.migi-co .migi-bump__badge {
		top: -12px;
		right: 8px;
		padding: 7px 10px;
		font-size: 11px;
	}

	.migi-co .migi-bump__title {
		font-size: 15px;
	}

	.migi-co .migi-bump__img img {
		width: 64px;
		height: 64px;
	}

	.migi-bump__new {
		font-size: 13px;
		gap: 6px;
	}

	.migi-bump__new-label {
		flex: 1 1 100%;
	}
}

/* The line under the delivery row while the courier is being asked. */
.migi-summary__note {
	margin: -4px 0 6px;
	color: #6b6b6b;
	font-size: 12px;
	line-height: 1.35;
	text-align: right;
}

/* The dropdown list itself stays readable on every theme. */
.migi-checkout-skin select option,
.migi-fe select option {
	color: #1a1a1a;
	background: #fff;
}

/* Older funnel code on this site styles #migi-office directly and paints the
   chosen office grey on grey. Our picker carries its own name and states its
   colours outright so no leftover rule can hide the selection. */
.migi-checkout-skin .migi-office-picker,
.migi-fe .migi-office-picker {
	color: #1a1a1a;
	-webkit-text-fill-color: #1a1a1a;
	opacity: 1;
}

.migi-checkout-skin .migi-office-picker.is-waiting,
.migi-fe .migi-office-picker.is-waiting {
	color: #8a8a8a;
	-webkit-text-fill-color: #8a8a8a;
}

/* -------------------------------------------------------------------------
   Второто обобщение — над бутона, само на тесен екран

   Под 900 пиксела дясната колона отива най-горе (order: -1 по-горе), а
   бутонът остава далеч под нея. Купувачът попълва данните и стига до
   „Завърши поръчката“, без сумата да се вижда. Затова същите редове се
   повтарят точно над бутона. На голям екран нямат работа — там колоната
   стои пред очите през цялото време.
   ------------------------------------------------------------------------- */

.migi-summary--compact {
	display: none;
}

@media (max-width: 899px) {
	.migi-summary--compact {
		display: block;
		margin: 18px 0 14px;
		padding: 14px 16px;
		border: 1px solid var(--migi-line, rgba(0, 0, 0, .12));
		border-radius: 12px;
		background: var(--migi-soft, rgba(0, 0, 0, .03));
	}

	.migi-summary--compact .migi-summary__title {
		margin: 0 0 8px;
		font-weight: 700;
		font-size: 15px;
		opacity: .75;
	}

	.migi-summary--compact .migi-summary__row--total {
		font-size: 19px;
	}

	/* Бележката обяснява защо сумата още не е окончателна. На телефон, върху
	   светлата карта, сивото ѝ се губеше — а тя е част от обещанието. */
	.migi-summary--compact .migi-summary__note {
		color: #3f3f3f;
		margin-top: 2px;
	}
}

/* Редът с отстъпката. Единственото число в обобщението, което е в полза на
   купувача — затова не изглежда като останалите. */
.migi-summary__row--off span:last-child {
	color: #1f7a45;
	font-weight: 700;
}

/* Ред, който кодът е скрил, трябва да е скрит.

   `.migi-summary__row` задава display, а той бие вградения стил на атрибута
   `hidden` — затова редовете за bump и за отстъпка стояха видими с нула,
   макар JavaScript-ът да ги маркира като скрити. „Допълнително: 0,00“ и
   „Отстъпка: −0,00“ не казват нищо на купувача. */
.migi-summary__row[hidden],
.migi-summary__note[hidden] {
	display: none;
}
