/**
 * Structural layout for the checkout. Field *appearance* (borders, fonts,
 * colors) is inherited from the Enfold theme — the Collect.js style-sniffer
 * matches the card iframes to it. Keep colors/borders out of here.
 */

.pmg-checkout {
	max-width: 620px;
	display: flex;
	flex-wrap: wrap;
	gap: 0 4%;
	padding: 1.5em;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.015);
}

.pmg-checkout__title,
.pmg-checkout__price,
.pmg-checkout__terms,
.pmg-message {
	flex: 0 0 100%;
}

.pmg-checkout__price {
	font-size: 1.6em;
	font-weight: 600;
	margin: 0 0 1em;
}

.pmg-checkout__cycle {
	font-size: 0.55em;
	font-weight: 400;
	opacity: 0.75;
	margin-left: 0.25em;
}

.pmg-checkout .pmg-field {
	flex: 0 0 100%;
	margin: 0 0 1.1em;
}

.pmg-checkout .pmg-field--half {
	flex: 0 0 48%;
}

.pmg-checkout .pmg-field label {
	display: block;
	margin-bottom: 0.3em;
	font-weight: 600;
	font-size: 0.9em;
}

.pmg-checkout .pmg-field input[type="text"],
.pmg-checkout .pmg-field input[type="email"] {
	width: 100%;
	box-sizing: border-box;
	margin: 0;
}

/* Collect.js iframe containers: sized like the theme inputs around them. */
.pmg-checkout #ccnumber,
.pmg-checkout #ccexp,
.pmg-checkout #cvv {
	min-height: 42px;
}

.pmg-checkout #ccnumber iframe,
.pmg-checkout #ccexp iframe,
.pmg-checkout #cvv iframe {
	width: 100% !important;
}

/* Coupon row: input + button on one line. */
.pmg-field--coupon {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.5em;
}

.pmg-field--coupon label {
	flex: 0 0 100%;
}

.pmg-field--coupon input {
	flex: 1 1 auto;
	width: auto !important;
}

.pmg-field--coupon .pmg-coupon-apply {
	flex: 0 0 auto;
	margin: 0;
}

.pmg-coupon-msg {
	flex: 0 0 100%;
	font-size: 0.85em;
	min-height: 1.2em;
}

.pmg-checkout__terms {
	font-size: 0.85em;
	opacity: 0.8;
	margin-bottom: 1em;
}

.pmg-field--submit {
	flex: 0 0 100%;
	margin-bottom: 0;
}

.pmg-field--submit .pmg-submit {
	width: 100%;
	padding: 0.9em;
	font-size: 1.05em;
	cursor: pointer;
	color: #fff;
}

.pmg-checkout .pmg-submit,
.pmg-checkout .pmg-submit:hover,
.pmg-checkout .pmg-submit:focus {
	color: #fff;
}

.pmg-submit[disabled] {
	opacity: 0.45;
	cursor: not-allowed;
}

.pmg-message {
	min-height: 1.4em;
	font-size: 0.95em;
}

.pmg-message--error {
	color: #b32d2e;
	font-weight: 600;
}

.pmg-message--success {
	color: #00695c;
	font-weight: 600;
}

@media ( max-width: 540px ) {
	.pmg-checkout .pmg-field--half {
		flex: 0 0 100%;
	}
}
