.ag-mc {
	--ag-mc-gold: #b8933a;
	--ag-mc-gold-soft: #e9d8a6;
	--ag-mc-green: #006c5b;
	--ag-mc-ink: #1c1a17;
	--ag-mc-muted: #6f6a61;
	--ag-mc-line: #e4e0d7;
	--ag-mc-bg: #ffffff;
	--ag-mc-bg-soft: #faf7f0;
	--ag-mc-radius: 14px;
	color: var(--ag-mc-ink);
	font-family: inherit;
	max-width: 960px;
	margin: 0 auto;
}

.ag-mc *,
.ag-mc *::before,
.ag-mc *::after {
	box-sizing: border-box;
}

.ag-mc__intro {
	margin-bottom: 1.5rem;
	color: var(--ag-mc-muted);
}

.ag-mc__layout {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 1.5rem;
	align-items: start;
}

@media (max-width: 720px) {
	.ag-mc__layout {
		grid-template-columns: 1fr;
	}
}

.ag-mc__config {
	background: var(--ag-mc-bg);
	border: 1px solid var(--ag-mc-line);
	border-radius: var(--ag-mc-radius);
	padding: 1.5rem;
}

.ag-mc__heading {
	margin: 0 0 1.25rem;
	font-size: 1.15rem;
	letter-spacing: 0.01em;
}

.ag-mc__field {
	margin-bottom: 1.25rem;
}

.ag-mc__field:last-child {
	margin-bottom: 0;
}

.ag-mc__label {
	display: block;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ag-mc-muted);
	margin-bottom: 0.5rem;
}

.ag-mc__unit {
	text-transform: none;
	letter-spacing: 0;
	opacity: 0.7;
}

.ag-mc__options {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.ag-mc__option {
	appearance: none;
	box-sizing: border-box;
	cursor: pointer;
	border: 1px solid var(--ag-mc-line);
	background: var(--ag-mc-bg);
	color: var(--ag-mc-ink);
	border-radius: 999px;
	padding: 0.55rem 1.05rem;
	font-size: 0.95rem;
	font-family: inherit;
	line-height: 1;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

/* Keep the border thickness identical across every state so hovering never
   resizes a button and nudges its neighbours (some themes thicken button
   borders on :hover). */
.ag-mc .ag-mc__option,
.ag-mc .ag-mc__option:hover,
.ag-mc .ag-mc__option:focus,
.ag-mc .ag-mc__option.is-active {
	border-width: 1px !important;
	border-style: solid;
}

.ag-mc__option:hover {
	border-color: var(--ag-mc-gold);
}

.ag-mc__option:focus-visible {
	outline: 2px solid var(--ag-mc-gold);
	outline-offset: 2px;
}

.ag-mc__option.is-active {
	background: var(--ag-mc-gold);
	border-color: var(--ag-mc-gold);
	color: #fff;
	box-shadow: 0 4px 14px rgba(184, 147, 58, 0.25);
}

.ag-mc [hidden] {
	display: none !important;
}

.ag-mc__select {
	appearance: none;
	width: 100%;
	max-width: 220px;
	cursor: pointer;
	border: 1px solid var(--ag-mc-line);
	background: var(--ag-mc-bg);
	color: var(--ag-mc-ink);
	border-radius: 999px;
	padding: 0.55rem 2.2rem 0.55rem 1.05rem;
	font-size: 0.95rem;
	font-family: inherit;
	line-height: 1;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23b8933a' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ag-mc__select:hover {
	border-color: var(--ag-mc-gold);
}

.ag-mc__select:focus-visible {
	outline: 2px solid var(--ag-mc-gold);
	outline-offset: 2px;
}

.ag-mc__checkbox-inline {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	cursor: pointer;
	font-size: 0.95rem;
	color: var(--ag-mc-ink);
}

.ag-mc__checkbox-inline input {
	width: 1.1rem;
	height: 1.1rem;
	accent-color: var(--ag-mc-gold);
	cursor: pointer;
}

.ag-mc__summary {
	position: sticky;
	top: 1.5rem;
}

.ag-mc__summary-inner {
	background: var(--ag-mc-bg-soft);
	border: 1px solid var(--ag-mc-line);
	border-radius: var(--ag-mc-radius);
	padding: 1.5rem;
}

.ag-mc__summary-label {
	margin: 0 0 0.75rem;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ag-mc-muted);
}

.ag-mc__summary-list {
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
}

.ag-mc__summary-list li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.5rem 0;
	border-bottom: 1px dashed var(--ag-mc-line);
	font-size: 0.95rem;
}

.ag-mc__summary-list li:last-child {
	border-bottom: none;
}

.ag-mc__summary-list span {
	color: var(--ag-mc-muted);
}

.ag-mc__price {
	background: var(--ag-mc-bg);
	border: 1px solid var(--ag-mc-gold-soft);
	border-radius: 12px;
	padding: 1rem;
	text-align: center;
	margin-bottom: 1.25rem;
}

.ag-mc__price-label {
	display: block;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ag-mc-muted);
}

.ag-mc__price-value {
	display: block;
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--ag-mc-gold);
	margin: 0.25rem 0;
}

.ag-mc__price-note {
	display: block;
	font-size: 0.75rem;
	color: var(--ag-mc-muted);
	line-height: 1.4;
}

.ag-mc__cta,
.ag-mc__submit {
	appearance: none;
	cursor: pointer;
	width: 100%;
	background: var(--ag-mc-green);
	color: #fff;
	border: 2px solid var(--ag-mc-green) !important;
	border-radius: 4px;
	font-family: 'Raleway', sans-serif;
	font-size: 0.95rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	padding: 0.75em 1.5em;
	transition: background 0.3s ease, color 0.3s ease, opacity 0.15s ease;
}

.ag-mc__cta:hover,
.ag-mc__submit:hover {
	background: transparent;
	color: var(--ag-mc-green);
	border: 2px solid var(--ag-mc-green) !important;
}

.ag-mc__cta:focus-visible,
.ag-mc__submit:focus-visible {
	outline: 2px solid var(--ag-mc-green);
	outline-offset: 2px;
}

.ag-mc__submit:disabled,
.ag-mc__submit.is-loading {
	opacity: 0.6;
	cursor: default;
}

.ag-mc__form-wrap {
	margin-top: 1.5rem;
	background: var(--ag-mc-bg);
	border: 1px solid var(--ag-mc-line);
	border-radius: var(--ag-mc-radius);
	padding: 1.5rem;
}

.ag-mc__form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

@media (max-width: 560px) {
	.ag-mc__form-grid {
		grid-template-columns: 1fr;
	}
}

.ag-mc__form-field {
	margin: 0 0 1rem;
}

.ag-mc__form-field label {
	display: block;
	font-size: 0.85rem;
	color: var(--ag-mc-muted);
	margin-bottom: 0.35rem;
}

.ag-mc__form-field input,
.ag-mc__form-field textarea {
	width: 100%;
	border: 1px solid var(--ag-mc-line);
	border-radius: 10px;
	padding: 0.65rem 0.8rem;
	font-size: 1rem;
	font-family: inherit;
	background: var(--ag-mc-bg);
	color: var(--ag-mc-ink);
}

.ag-mc__form-field input:focus,
.ag-mc__form-field textarea:focus {
	outline: none;
	border-color: var(--ag-mc-gold);
	box-shadow: 0 0 0 3px rgba(184, 147, 58, 0.15);
}

.ag-mc__checkbox label {
	display: flex;
	gap: 0.5rem;
	align-items: flex-start;
	color: var(--ag-mc-ink);
}

.ag-mc__checkbox input {
	width: auto;
	margin-top: 0.2rem;
}

.ag-mc__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ag-mc__form-actions {
	margin: 0.5rem 0 0;
}

.ag-mc__feedback {
	margin-bottom: 1rem;
	font-size: 0.95rem;
}

.ag-mc__feedback.is-error {
	color: #b3261e;
}

.ag-mc__feedback.is-success {
	color: #1c7a4a;
	font-weight: 600;
}

/* Dark theme awareness. */
@media (prefers-color-scheme: dark) {
	.ag-mc {
		--ag-mc-ink: #f2ede3;
		--ag-mc-muted: #a9a291;
		--ag-mc-line: #3a362f;
		--ag-mc-bg: #201d18;
		--ag-mc-bg-soft: #262219;
	}

	.ag-mc__option.is-active {
		color: #17140f;
	}
}
