/* Growxmethod Checkout — dark one-page checkout */
.gxc {
	--gxc-bg: #0d0d0d;
	--gxc-card: #161616;
	--gxc-card-2: #1e1e1e;
	--gxc-input: #111111;
	--gxc-border: #2b2b2b;
	--gxc-border-strong: #3a3a3a;
	--gxc-accent: #e50914;
	--gxc-accent-soft: rgba(229, 9, 20, 0.12);
	--gxc-green: #22c55e;
	--gxc-green-soft: rgba(34, 197, 94, 0.12);
	--gxc-text: #ffffff;
	--gxc-muted: #a3a3a3;
	--gxc-danger: #ff6b6b;
	--gxc-radius: 14px;
	--gxc-radius-sm: 10px;

	box-sizing: border-box;
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: clamp(16px, 3vw, 32px);
	background: var(--gxc-bg);
	color: var(--gxc-text);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
	border-radius: var(--gxc-radius);
	-webkit-font-smoothing: antialiased;
	container-type: inline-size;
	container-name: gxc;
}
.gxc *,
.gxc *::before,
.gxc *::after { box-sizing: border-box; }
.gxc [hidden] { display: none !important; }
.gxc p { margin: 0; }

.gxc--notice { padding: 20px; color: var(--gxc-text); background: var(--gxc-bg); }
.gxc--notice a { color: var(--gxc-accent); }

/* Banner */
.gxc-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	margin-bottom: 24px;
	padding: 18px 22px;
	border: 1px solid rgba(34, 197, 94, 0.35);
	border-radius: var(--gxc-radius);
	background: linear-gradient(135deg, rgba(34, 197, 94, 0.14), rgba(34, 197, 94, 0.03));
}
.gxc-banner__title { font-size: 1.25em; font-weight: 800; color: var(--gxc-green); letter-spacing: 0.01em; }
.gxc-banner__subtitle { color: var(--gxc-muted); }
.gxc-banner__prices { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; }
.gxc-banner__prices li { display: flex; align-items: center; gap: 6px; font-size: 0.95em; }
.gxc-banner__prices s { color: var(--gxc-muted); }
.gxc-banner__prices strong { color: var(--gxc-green); font-weight: 700; }

/* Layout */
.gxc-form { margin: 0; }
.gxc-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}
.gxc-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.gxc-col--side { position: sticky; top: 24px; }

/* Cards */
.gxc-card {
	padding: 22px;
	background: var(--gxc-card);
	border: 1px solid var(--gxc-border);
	border-radius: var(--gxc-radius);
}
.gxc .gxc-card__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	padding: 0;
	color: var(--gxc-text);
	font-family: inherit;
	font-size: 1.05em;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}
.gxc-step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--gxc-accent);
	color: #fff;
	font-size: 0.8em;
	font-weight: 700;
}

/* Fields */
.gxc-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.gxc-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gxc-field { margin-bottom: 14px; min-width: 0; }
.gxc-label { display: block; margin-bottom: 6px; color: #d4d4d4; font-size: 0.86em; font-weight: 600; }
.gxc-req { color: var(--gxc-accent); }
.gxc-optional { color: var(--gxc-muted); font-weight: 400; }

.gxc .gxc-input {
	display: block;
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 14px;
	background: var(--gxc-input);
	color: var(--gxc-text);
	border: 1px solid var(--gxc-border-strong);
	border-radius: var(--gxc-radius-sm);
	box-shadow: none;
	font-family: inherit;
	font-size: 15px;
	line-height: 46px;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}
.gxc .gxc-input::placeholder { color: #6b6b6b; opacity: 1; }
.gxc .gxc-input:hover { border-color: #4a4a4a; }
.gxc .gxc-input:focus { border-color: var(--gxc-accent); box-shadow: 0 0 0 3px var(--gxc-accent-soft); }
.gxc .gxc-field.has-error .gxc-input { border-color: var(--gxc-danger); }
.gxc-select { position: relative; }
.gxc-select::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 16px;
	width: 8px;
	height: 8px;
	margin-top: -6px;
	border-right: 2px solid var(--gxc-muted);
	border-bottom: 2px solid var(--gxc-muted);
	transform: rotate(45deg);
	pointer-events: none;
}
.gxc .gxc-select select { padding-right: 38px; line-height: normal; cursor: pointer; }
.gxc .gxc-select select option { background: #111; color: #fff; }
.gxc-error { margin-top: 6px !important; color: var(--gxc-danger); font-size: 0.82em; }

/* Screen-reader-only radios (still keyboard focusable) */
.gxc .gxc-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
	white-space: nowrap;
}

/* Custom radio */
.gxc-radio {
	position: relative;
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	margin-top: 2px;
	border: 2px solid #5a5a5a;
	border-radius: 50%;
	transition: border-color 0.15s ease;
}
.gxc-radio::after {
	content: "";
	position: absolute;
	inset: 4px;
	border-radius: 50%;
	background: var(--gxc-accent);
	transform: scale(0);
	transition: transform 0.15s ease;
}
.is-selected > .gxc-radio { border-color: var(--gxc-accent); }
.is-selected > .gxc-radio::after { transform: scale(1); }

/* Payment options & package cards */
.gxc-options, .gxc-packages { display: flex; flex-direction: column; gap: 12px; }
.gxc-option,
.gxc-package {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 0;
	padding: 16px;
	background: var(--gxc-card-2);
	border: 2px solid var(--gxc-border);
	border-radius: var(--gxc-radius);
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.1s ease;
}
.gxc-option:hover,
.gxc-package:hover { border-color: #4a4a4a; }
.gxc-option.is-selected,
.gxc-package.is-selected { border-color: var(--gxc-accent); background: linear-gradient(0deg, var(--gxc-accent-soft), var(--gxc-accent-soft)), var(--gxc-card-2); }
.gxc-option:focus-within,
.gxc-package:focus-within { box-shadow: 0 0 0 3px var(--gxc-accent-soft); }
.gxc-package.is-disabled { opacity: 0.5; cursor: not-allowed; }
.gxc-package.is-loading { opacity: 0.7; }

.gxc-option__body,
.gxc-package__body { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-width: 0; }
.gxc-option__title { font-weight: 700; }
.gxc-option__desc { color: var(--gxc-muted); font-size: 0.88em; }

.gxc-badge {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 6px;
	margin-top: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.8em;
	font-weight: 700;
}
.gxc-badge--green { color: var(--gxc-green); background: var(--gxc-green-soft); border: 1px solid rgba(34, 197, 94, 0.35); }

.gxc-gateways { display: flex; flex-direction: column; gap: 8px; margin: -4px 0 4px 36px; }
.gxc-gateway {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid var(--gxc-border);
	border-radius: var(--gxc-radius-sm);
	background: var(--gxc-input);
	cursor: pointer;
	font-size: 0.92em;
}
.gxc-gateway input { accent-color: var(--gxc-accent); margin: 0; }
.gxc-gateway__title { flex: 1 1 auto; }
.gxc-gateway__icon img { max-height: 22px; width: auto; display: inline-block; vertical-align: middle; }

.gxc-package__badge {
	align-self: flex-start;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--gxc-accent);
	color: #fff;
	font-size: 0.7em;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.gxc-package__title { font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; }
.gxc-package__subtitle { color: var(--gxc-muted); font-size: 0.88em; }
.gxc-package__highlight { color: var(--gxc-green); font-size: 0.88em; font-weight: 700; }
.gxc-package__stock { color: var(--gxc-danger); font-size: 0.82em; font-weight: 600; }
.gxc-package__price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; white-space: nowrap; }
.gxc-package__price s { color: var(--gxc-muted); font-size: 0.85em; }
.gxc-package__price strong { font-size: 1.2em; font-weight: 800; }
.gxc-package__price em { color: var(--gxc-green); font-size: 0.75em; font-style: normal; white-space: normal; max-width: 130px; }

/* Summary */
.gxc-summary { margin: 0; }
.gxc-summary__row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--gxc-border); }
.gxc-summary__row dt,
.gxc-summary__row dd { margin: 0; }
.gxc-summary__row dt { color: #d4d4d4; }
.gxc-summary__row dd { font-weight: 600; text-align: right; }
.gxc-summary__row--green dt,
.gxc-summary__row--green dd,
.gxc-summary__delivery.is-free { color: var(--gxc-green); }
.gxc-summary__row--total { border-bottom: 0; padding-top: 14px; font-size: 1.2em; }
.gxc-summary__row--total dt { color: var(--gxc-text); font-weight: 800; }
.gxc-summary__row--total dd { font-weight: 800; }
.gxc-summary__save {
	display: flex;
	justify-content: space-between;
	margin-top: 10px;
	padding: 10px 14px;
	border-radius: var(--gxc-radius-sm);
	background: var(--gxc-green-soft);
	color: var(--gxc-green);
	font-weight: 700;
}
.gxc-summary__empty { color: var(--gxc-muted); }
.gxc-summary.is-loading { opacity: 0.55; transition: opacity 0.15s ease; }
.gxc-tip {
	margin-top: 14px !important;
	padding: 10px 14px;
	border-left: 3px solid var(--gxc-accent);
	border-radius: 6px;
	background: var(--gxc-accent-soft);
	color: #f2f2f2;
	font-size: 0.88em;
}

/* Delivery info */
.gxc-info { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.gxc-info li { display: flex; align-items: center; gap: 10px; color: #e5e5e5; }
.gxc-info__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--gxc-green-soft);
	color: var(--gxc-green);
}

/* Submit */
.gxc-submit { display: flex; flex-direction: column; gap: 12px; }
.gxc .gxc-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	min-height: 56px;
	margin: 0;
	padding: 14px 24px;
	border: 0;
	border-radius: var(--gxc-radius);
	background: var(--gxc-accent);
	color: #fff;
	box-shadow: 0 10px 30px -10px rgba(229, 9, 20, 0.6);
	font-family: inherit;
	font-size: 1.08em;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: filter 0.15s ease, transform 0.1s ease;
}
.gxc .gxc-button:hover { filter: brightness(1.1); }
.gxc .gxc-button:active { transform: translateY(1px); }
.gxc .gxc-button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.gxc .gxc-button[disabled] { opacity: 0.6; cursor: not-allowed; }
.gxc-button__total:not(:empty)::before { content: "·"; margin-right: 12px; opacity: 0.7; }
.gxc .gxc-button.is-busy .gxc-button__total { display: none; }
.gxc .gxc-button.is-busy::before {
	content: "";
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: gxc-spin 0.7s linear infinite;
}
@keyframes gxc-spin { to { transform: rotate(360deg); } }
.gxc-secure { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--gxc-muted); font-size: 0.85em; text-align: center; }

.gxc-alert { padding: 12px 14px; border-radius: var(--gxc-radius-sm); background: var(--gxc-card-2); color: var(--gxc-muted); }
.gxc-alert--error { background: rgba(255, 107, 107, 0.1); border: 1px solid rgba(255, 107, 107, 0.4); color: #ffd1d1; }
.gxc-alert ul { margin: 0; padding-left: 18px; }

/* Responsive: based on the width the checkout is placed in (theme column, Elementor column),
   with a viewport fallback for browsers without container queries.
   Single column: packages first, then the form, summary and button. */
@container gxc (max-width: 860px) {
	.gxc-grid { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
	.gxc-col { display: contents; }
	.gxc-col--side { position: static; }
	.gxc-card--packages { order: 1; }
	.gxc-card--contact { order: 2; }
	.gxc-card--address { order: 3; }
	.gxc-card--payment { order: 4; }
	.gxc-card--summary { order: 5; }
	.gxc-submit { order: 6; }
	.gxc-card--delivery { order: 7; }
}
@container gxc (max-width: 560px) {
	.gxc-form, .gxc-banner { font-size: 14px; }
	.gxc-card { padding: 16px; }
	.gxc-row,
	.gxc-row--3 { grid-template-columns: minmax(0, 1fr); }
	.gxc-banner { padding: 14px 16px; }
	.gxc-gateways { margin-left: 0; }
	.gxc-package__price em { max-width: 96px; }
}
@supports not (container-type: inline-size) {
	@media (max-width: 900px) {
		.gxc-grid { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
	.gxc-col { display: contents; }
	.gxc-col--side { position: static; }
	.gxc-card--packages { order: 1; }
	.gxc-card--contact { order: 2; }
	.gxc-card--address { order: 3; }
	.gxc-card--payment { order: 4; }
	.gxc-card--summary { order: 5; }
	.gxc-submit { order: 6; }
	.gxc-card--delivery { order: 7; }
	}
	@media (max-width: 600px) {
		.gxc-form, .gxc-banner { font-size: 14px; }
	.gxc-card { padding: 16px; }
	.gxc-row,
	.gxc-row--3 { grid-template-columns: minmax(0, 1fr); }
	.gxc-banner { padding: 14px 16px; }
	.gxc-gateways { margin-left: 0; }
	.gxc-package__price em { max-width: 96px; }
	}
}
@media (max-width: 600px) {
	.gxc { padding: 14px; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.gxc *, .gxc *::before, .gxc *::after { transition: none !important; animation: none !important; }
}
