.ybmp-payment,
.ybmp-thankyou {
	--yb-green: #168753;
	--yb-green-dark: #0b6840;
	--yb-green-soft: #eef9f3;
	--yb-yellow: #f2c94c;
	--yb-border: #dce8e0;
	--yb-text: #17211b;
	font-family: inherit;
	color: var(--yb-text);
	direction: ltr;
	text-align: left;
}

.ybmp-payment * { box-sizing: border-box; }

.ybmp-heading-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin: 14px 0;
	padding: 14px 16px;
	border: 1px solid var(--yb-border);
	border-radius: 14px;
	background: linear-gradient(135deg, #fff, #f4fbf7);
}

.ybmp-heading-row > div { display: flex; flex-direction: column; gap: 2px; }
.ybmp-brand { color: var(--yb-green-dark); font-size: 18px; font-weight: 900; letter-spacing: .5px; }
.ybmp-method-subtitle { color: #526158; font-size: 13px; }
.ybmp-currency-pill {
	display: inline-flex;
	align-items: center;
	padding: 7px 11px;
	border: 1px solid #b9dbc6;
	border-radius: 999px;
	background: var(--yb-green-soft);
	color: var(--yb-green-dark);
	font-size: 12px;
	font-weight: 900;
}

.ybmp-currency-warning {
	margin: 12px 0;
	padding: 13px 15px;
	border: 1px solid #e9c85f;
	border-left: 5px solid var(--yb-yellow);
	border-radius: 10px;
	background: #fffaf0;
	color: #6f5200;
	font-weight: 800;
}

.ybmp-images {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px;
	margin: 14px 0;
}

.ybmp-image-card {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 210px;
	padding: 14px;
	border: 1px solid var(--yb-border);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(14, 85, 52, .07);
	overflow: hidden;
}

.ybmp-image-card img { display: block; max-width: 100%; max-height: 420px; width: auto; height: auto; object-fit: contain; border-radius: 10px; }
.ybmp-image-card .ybmp-qr-image { max-height: 460px; }
.ybmp-image-card .ybmp-logo-image { max-height: 190px; }

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

.ybmp-detail-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 13px 14px;
	border: 1px solid var(--yb-border);
	border-radius: 12px;
	background: #fff;
}

.ybmp-detail-row > div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ybmp-detail-row span { color: #65736a; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .35px; }
.ybmp-detail-row strong { font-size: 15px; word-break: break-word; }
.ybmp-copy {
	flex: 0 0 auto;
	appearance: none;
	padding: 7px 11px;
	border: 1px solid #b8d8c4;
	border-radius: 8px;
	background: var(--yb-green-soft);
	color: var(--yb-green-dark);
	font-weight: 800;
	cursor: pointer;
}

.ybmp-amount-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin: 16px 0;
}

.ybmp-amount-grid > div {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 13px 14px;
	border: 1px solid var(--yb-border);
	border-radius: 12px;
	background: #fff;
}

.ybmp-amount-grid span { color: #65736a; font-size: 12px; font-weight: 700; }
.ybmp-amount-grid strong { font-size: 15px; word-break: break-word; }
.ybmp-amount-grid .ybmp-pay-now { background: var(--yb-green-soft); border-color: #b9dbc6; }
.ybmp-amount-grid .ybmp-pay-now strong { color: var(--yb-green-dark); font-size: 19px; }

.ybmp-instructions {
	margin: 14px 0;
	padding: 14px 16px;
	border: 1px solid var(--yb-border);
	border-radius: 12px;
	background: #fbfdfc;
}
.ybmp-instructions > strong { color: var(--yb-green-dark); }
.ybmp-instructions p { margin: 7px 0 0; white-space: pre-line; line-height: 1.6; }

.ybmp-upload-box {
	padding: 17px;
	border: 2px dashed #bad0c1;
	border-radius: 13px;
	background: #fbfdfb;
}
.ybmp-upload-box label { display: block; margin-bottom: 10px; }
.ybmp-upload-box input[type="file"] { width: 100%; }
.ybmp-upload-status { margin-top: 10px; color: #65736a; font-size: 12px; }
.ybmp-upload-status.is-uploading { color: #8b6200; font-weight: 800; }
.ybmp-upload-status.is-success { color: var(--yb-green-dark); font-weight: 800; }
.ybmp-upload-status.is-error { color: #b42318; font-weight: 800; }

.ybmp-shipping-note {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 14px;
	padding: 14px 16px;
	border: 1px solid #eed579;
	border-radius: 12px;
	background: #fffaf0;
}
.ybmp-shipping-note strong { color: #7a5700; }
.ybmp-shipping-note span { font-size: 13px; line-height: 1.55; }

.ybmp-order-note {
	margin-top: 12px;
	padding: 12px 14px;
	border-left: 4px solid var(--yb-green);
	background: #f5faf7;
	font-size: 13px;
}

.ybmp-thankyou {
	margin: 20px 0;
	padding: 22px;
	border: 1px solid var(--yb-border);
	border-radius: 16px;
	background: linear-gradient(135deg, #fff, #f3fbf6);
	box-shadow: 0 9px 28px rgba(14, 85, 52, .08);
}
.ybmp-success-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--yb-green);
	color: #fff;
	font-size: 26px;
	font-weight: 900;
}
.ybmp-thankyou h3 { margin: 12px 0 8px; color: var(--yb-green-dark); }
.ybmp-confirmed-amount { padding: 10px 12px; border-radius: 9px; background: #fff; border: 1px solid var(--yb-border); }
.ybmp-confirmation-text p { line-height: 1.65; }

@media (max-width: 782px) {
	.ybmp-details-grid,
	.ybmp-amount-grid { grid-template-columns: 1fr; }
	.ybmp-image-card { min-height: auto; }
}


/* Payment method selector: keep all methods closed until the customer chooses. */
.ybmp-payment-chooser {
	margin: 0 0 14px;
	direction: ltr;
	text-align: left;
}

.ybmp-payment-chooser-button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	width: 100%;
	min-height: 58px;
	padding: 15px 18px;
	border: 1px solid #9bc67f;
	border-radius: 13px;
	background: linear-gradient(135deg, #86bd62, #73b647);
	color: #fff;
	font: inherit;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.35;
	text-align: left;
	box-shadow: 0 8px 22px rgba(78, 132, 47, .16);
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.ybmp-payment-chooser-button:hover,
.ybmp-payment-chooser-button:focus {
	background: linear-gradient(135deg, #79b751, #65a93d);
	color: #fff;
	box-shadow: 0 10px 26px rgba(78, 132, 47, .22);
	outline: none;
}

.ybmp-payment-chooser-button:active { transform: translateY(1px); }

.ybmp-payment-chooser-arrow {
	flex: 0 0 auto;
	font-size: 25px;
	font-weight: 500;
	line-height: 1;
	transition: transform .2s ease;
}

.ybmp-payment-chooser-button.is-open .ybmp-payment-chooser-arrow {
	transform: rotate(180deg);
}

#payment ul.wc_payment_methods.ybmp-methods-revealed {
	animation: ybmpRevealMethods .2s ease both;
}

@keyframes ybmpRevealMethods {
	from { opacity: 0; transform: translateY(-5px); }
	to { opacity: 1; transform: translateY(0); }
}

.ybmp-choose-payment-error { margin-bottom: 16px; }

@media (max-width: 782px) {
	.ybmp-payment-chooser-button {
		min-height: 56px;
		padding: 14px 16px;
		font-size: 16px;
	}
}
