.bhutan-payments-form {
	max-width: 360px;
	padding: 1.25rem;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	font-family: inherit;
}

.bhutan-payments-summary {
	margin-bottom: 1rem;
}

.bhutan-payments-amount {
	font-size: 1.5rem;
	font-weight: 600;
}

.bhutan-payments-submit {
	width: 100%;
	padding: 0.75rem 1rem;
	font-size: 1rem;
	font-weight: 600;
	color: #fff;
	background-color: #1a1a2e;
	border: none;
	border-radius: 6px;
	cursor: pointer;
}

.bhutan-payments-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.bhutan-payments-submit:hover:not(:disabled) {
	background-color: #29294d;
}

.bhutan-payments-message {
	margin-top: 0.75rem;
	font-size: 0.9rem;
	min-height: 1.2em;
}

.bhutan-payments-message--error {
	color: #b91c1c;
}

.bhutan-payments-error {
	color: #b91c1c;
	font-weight: 600;
}

/*
 * [bhutan_payment_button] — deliberately minimal. This is meant to sit
 * inside a form you've built and styled yourself, so it only gets a light
 * baseline (so it isn't unstyled browser-default ugly if you don't touch
 * it) and is fully overridable by targeting .bhutan-payments-custom-button
 * in your own theme/page-builder CSS.
 */

.bhutan-payments-custom-button {
	padding: 0.75rem 1.5rem;
	font-size: 1rem;
	font-weight: 600;
	color: #fff;
	background-color: #1a1a2e;
	border: none;
	border-radius: 6px;
	cursor: pointer;
}

.bhutan-payments-custom-button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.bhutan-payments-custom-button:hover:not(:disabled) {
	background-color: #29294d;
}

.bhutan-payments-custom-wrap .bhutan-payments-message {
	display: block;
}

/* Open (donor-entered) amount */

.bhutan-payments-presets {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.bhutan-payments-preset {
	padding: 0.5rem 1rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: #1a1a2e;
	background: #f2f2f5;
	border: 2px solid transparent;
	border-radius: 999px;
	cursor: pointer;
}

.bhutan-payments-preset:hover {
	background: #e6e6ec;
}

.bhutan-payments-preset--active {
	border-color: #1a1a2e;
	background: #fff;
}

.bhutan-payments-summary--open {
	margin-bottom: 1.25rem;
}

.bhutan-payments-amount-label {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: #444;
}

.bhutan-payments-amount-input-wrap {
	display: flex;
	align-items: center;
	border: 1px solid #ccc;
	border-radius: 6px;
	padding: 0 0.75rem;
	background: #fff;
}

.bhutan-payments-amount-input-wrap:focus-within {
	border-color: #1a1a2e;
	box-shadow: 0 0 0 2px rgba(26, 26, 46, 0.15);
}

.bhutan-payments-currency-symbol {
	font-size: 1.25rem;
	font-weight: 600;
	color: #555;
	margin-right: 0.35rem;
}

.bhutan-payments-amount-input {
	flex: 1;
	width: 100%;
	border: none;
	outline: none;
	padding: 0.6rem 0;
	font-size: 1.25rem;
	font-weight: 600;
	color: #1a1a2e;
	background: transparent;
	-moz-appearance: textfield;
}

.bhutan-payments-amount-input::-webkit-outer-spin-button,
.bhutan-payments-amount-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Checkout modal */

body.bhutan-payments-modal-open {
	overflow: hidden;
}

.bhutan-payments-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.bhutan-payments-modal {
	position: relative;
	width: 100%;
	max-width: 480px;
	height: min(90vh, 720px);
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.bhutan-payments-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.5rem 0.75rem;
	border-bottom: 1px solid #eee;
	flex-shrink: 0;
}

.bhutan-payments-fallback-link {
	font-size: 0.85rem;
	color: #555;
	text-decoration: underline;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.bhutan-payments-modal-close {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	line-height: 1;
	font-size: 1.5rem;
	background: transparent;
	border: none;
	cursor: pointer;
	color: #333;
}

.bhutan-payments-modal-close:hover {
	color: #000;
}

.bhutan-payments-modal-loading {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	color: #555;
	font-size: 0.95rem;
	text-align: center;
	padding: 1.5rem;
}

.bhutan-payments-fallback-button {
	display: inline-block;
	padding: 0.6rem 1.2rem;
	background: #1a1a2e;
	color: #fff;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
}

.bhutan-payments-modal-iframe {
	flex: 1;
	width: 100%;
	border: none;
}

@media (max-width: 480px) {
	.bhutan-payments-modal {
		height: 100vh;
		max-width: 100%;
		border-radius: 0;
	}
}
