:root {
	--fmch-red: #c70707;
	--fmch-red-dark: #9f0505;
	--fmch-soft-red: #fff3f3;
	--fmch-text: #171717;
	--fmch-muted: #666;
	--fmch-border: #e6e6e6;
	--fmch-bg: #ffffff;
}

.fmch-donation-wrap {
	width: 100%;
	max-width: 100%;
	margin: 0;
	color: var(--fmch-text);
}

.fmch-donation-form {
	display: grid;
	gap: 24px;
	padding: 28px;
	background: var(--fmch-bg);
	border: 1px solid var(--fmch-border);
	border-radius: 18px;
	box-shadow: 0 14px 40px rgba(0, 0, 0, .07);
}

.fmch-section {
	margin: 0;
}

.fmch-section + .fmch-section {
	padding-top: 4px;
}

.fmch-eyebrow {
	display: inline-flex;
	align-items: center;
	margin-bottom: 8px;
	padding: 6px 10px;
	border-radius: 999px;
	background: var(--fmch-soft-red);
	color: var(--fmch-red);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .08em;
}

.fmch-section h2 {
	margin: 0 0 8px;
	font-size: clamp(28px, 3vw, 38px);
	line-height: 1;
}

.fmch-section h3 {
	margin: 0 0 12px;
	font-size: 18px;
	line-height: 1.2;
}

.fmch-lead {
	margin: 0;
	color: var(--fmch-muted);
	line-height: 1.55;
}

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

.fmch-options-frequency,
.fmch-amounts {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Con cinco frecuencias, la última opción (Anual) ocupa todo el ancho para
   mantener una grilla equilibrada: 2 + 2 + 1. */
.fmch-options-frequency .fmch-option:last-child {
	grid-column: 1 / -1;
}

.fmch-option {
	position: relative;
	display: block;
	cursor: pointer;
}

.fmch-option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.fmch-option span {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 58px;
	padding: 14px 16px;
	border: 1px solid var(--fmch-border);
	border-radius: 12px;
	background: #fff;
	color: var(--fmch-text);
	font-weight: 700;
	text-align: center;
	transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.fmch-option:hover span {
	border-color: #cfcfcf;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, .05);
}

.fmch-option input:checked + span {
	border-color: var(--fmch-red);
	background: var(--fmch-soft-red);
	color: var(--fmch-red);
	box-shadow: inset 0 0 0 1px var(--fmch-red);
}

.fmch-option input:checked + span::after {
	content: "✓";
	position: absolute;
	top: 7px;
	right: 9px;
	font-size: 12px;
	font-weight: 900;
}

.fmch-amount span {
	min-height: 68px;
	font-size: 18px;
}

.fmch-amount-other {
	grid-column: 1 / -1;
}

.fmch-amount-other span {
	min-height: 54px;
	font-size: 15px;
}

.fmch-custom-amount {
	margin-top: 12px;
	padding: 16px;
	border: 1px solid var(--fmch-border);
	border-radius: 12px;
	background: #fafafa;
}

.fmch-custom-amount[hidden],
.fmch-recurring-note[hidden] {
	display: none !important;
}

.fmch-custom-amount label {
	display: block;
	margin-bottom: 8px;
	font-weight: 700;
}

.fmch-money-input {
	display: flex;
	align-items: center;
	width: 100%;
	border: 1px solid #d7d7d7;
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.fmch-money-input:focus-within {
	border-color: var(--fmch-red);
	box-shadow: 0 0 0 3px rgba(199, 7, 7, .08);
}

.fmch-money-input span {
	padding-left: 14px;
	font-size: 18px;
	font-weight: 800;
}

.fmch-money-input input {
	width: 100%;
	min-height: 48px;
	border: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
	padding: 12px 14px !important;
	background: transparent !important;
}

.fmch-custom-amount small {
	display: block;
	margin-top: 8px;
	color: var(--fmch-muted);
}

.fmch-recurring-note {
	margin: 12px 0 0;
	padding: 12px 14px;
	border-left: 3px solid var(--fmch-red);
	border-radius: 8px;
	background: #fafafa;
	color: var(--fmch-muted);
	font-size: 13px;
	line-height: 1.45;
}

.fmch-submit {
	width: 100%;
	min-height: 56px;
	margin-top: 2px;
	border: 0;
	border-radius: 12px;
	background: var(--fmch-red);
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .02em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(199, 7, 7, .20);
	transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.fmch-submit:hover {
	background: var(--fmch-red-dark);
	transform: translateY(-1px);
	box-shadow: 0 12px 28px rgba(199, 7, 7, .26);
}

.fmch-submit:active {
	transform: translateY(0);
}

@media (max-width: 767px) {
	.fmch-donation-form {
		padding: 20px;
		border-radius: 14px;
	}

	.fmch-options,
	.fmch-options-frequency,
	.fmch-amounts {
		grid-template-columns: 1fr;
	}

	.fmch-amount-other,
	.fmch-options-frequency .fmch-option:last-child {
		grid-column: auto;
	}
}


/* Checkout de donaciones: WooCommerce puede dejar el contenedor de
   información adicional aun sin notas. No aporta información al donante. */
.woocommerce-checkout .woocommerce-additional-fields {
    display: none !important;
}

/* Transferencia bancaria (v0.5.1) */
.fmch-payment-option span {
    flex-direction: column;
    gap: 4px;
}

.fmch-payment-option span b {
    font-size: 15px;
}

.fmch-payment-option span small {
    color: var(--fmch-muted);
    font-size: 12px;
    font-weight: 500;
}

.fmch-payment-option input:checked + span small {
    color: #7d2424;
}

.fmch-payment-option.is-disabled {
    opacity: .48;
    cursor: not-allowed;
}

.fmch-payment-option.is-disabled span {
    transform: none !important;
    box-shadow: none !important;
}

.fmch-payment-note,
.fmch-bank-help {
    margin: 12px 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fafafa;
    color: var(--fmch-muted);
    font-size: 13px;
    line-height: 1.5;
}

.fmch-payment-note[hidden],
.fmch-bank-preview[hidden] {
    display: none !important;
}

.fmch-bank-preview {
    margin-top: 14px;
}

.fmch-bank-card {
    border: 1px solid #dedede;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0,0,0,.05);
}

.fmch-bank-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid #ececec;
    background: linear-gradient(180deg,#fff,#fbfbfb);
}

.fmch-bank-card-head h3 {
    margin: 4px 0 0 !important;
    font-size: 20px !important;
}

.fmch-bank-kicker {
    color: var(--fmch-red);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.fmch-bank-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f2f2f2;
    color: #444;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.fmch-bank-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
}

.fmch-bank-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 14px 18px;
    border-bottom: 1px solid #efefef;
}

.fmch-bank-row:nth-child(odd) {
    border-right: 1px solid #efefef;
}

.fmch-bank-row div {
    min-width: 0;
}

.fmch-bank-row small,
.fmch-bank-row strong {
    display: block;
}

.fmch-bank-row small {
    margin-bottom: 3px;
    color: var(--fmch-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.fmch-bank-row strong {
    overflow-wrap: anywhere;
    color: var(--fmch-text);
    font-size: 14px;
}

.fmch-copy-one {
    flex: 0 0 auto;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 7px 9px;
    background: #fff;
    color: #444;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.fmch-copy-one:hover {
    border-color: var(--fmch-red);
    color: var(--fmch-red);
}

.fmch-bank-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: #fafafa;
}

.fmch-copy-all {
    border: 0;
    border-radius: 10px;
    padding: 11px 16px;
    background: var(--fmch-red);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.fmch-copy-all:hover {
    background: var(--fmch-red-dark);
}

.fmch-copy-one.is-copied,
.fmch-copy-all.is-copied {
    border-color: #16803a;
    background: #16803a;
    color: #fff;
}

.fmch-copy-status {
    color: #16803a;
    font-size: 12px;
    font-weight: 700;
}

.fmch-bank-card.is-compact .fmch-bank-card-head {
    padding: 14px 16px;
}

.fmch-bank-card.is-compact .fmch-bank-row {
    padding: 11px 14px;
}

.fmch-bank-thankyou {
    margin: 28px 0;
}

.fmch-bank-thankyou > h2 {
    margin-bottom: 8px;
}

@media (max-width: 700px) {
    .fmch-bank-grid {
        grid-template-columns: 1fr;
    }
    .fmch-bank-row:nth-child(odd) {
        border-right: 0;
    }
    .fmch-bank-card-head,
    .fmch-bank-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .fmch-copy-all {
        width: 100%;
    }
}
