/*
 * checkout.css: the decline and "already sent" pages (process.php) and the decline notice on the card forms
 * (terms.php, newuserreg.php); the markup is utilities/checkout_decline.php. Ported 2026-11-24 from
 * Happy-Hooker-Resos (John's Studio pass there), for this site's Bootstrap 5.3 (assets/vendor/bootstrap).
 * assets/css/style.css sets a { color: #000 } for the whole site and a:hover to #993130; these rules are specific
 * enough to win over it, so the boxes' links keep the box's own color and the buttons stay white.
 * Contrast (WCAG): white on btn-dark #212529 15.4:1; links #58151c on #f8d7da, #664d03 on #fff3cd, #055160 on
 * #cff4fc are Bootstrap 5's own --bs-*-text-emphasis colors for each box (its .alert-link), all above 4.5:1;
 * a marked label #b02a37 on white 6.5:1.
 */

/* Buttons: white text, whatever the site's link colors say. */
a.checkout-btn,
a.checkout-btn:link,
a.checkout-btn:visited,
a.checkout-btn:hover,
a.checkout-btn:focus,
a.checkout-btn:active {
	color: #fff;
}

/* The decline and "already sent" buttons as touch targets (Simon's review, 2026-11-24; as Pierpoint-Resos c37e1de):
   at least 44px tall with 16px text, and a long label wraps inside the button instead of pushing the page wider than
   a 390px phone. The site's own Submit button is not touched here. */
a.checkout-btn {
	display: inline-block;
	min-height: 44px;
	padding: 10px 18px;
	font-size: 16px;
	line-height: 22px;
	white-space: normal;
	max-width: 100%;
}

/* Links inside the message boxes: the box's own link color (Bootstrap's .alert-link), underlined. */
.checkout-box a,
.checkout-box a:link,
.checkout-box a:visited,
.checkout-box a:hover,
.checkout-box a:focus,
.checkout-box a:active {
	font-weight: bold;
	text-decoration: underline;
}
.alert-danger.checkout-box a,
.alert-danger.checkout-box a:link,
.alert-danger.checkout-box a:visited,
.alert-danger.checkout-box a:hover,
.alert-danger.checkout-box a:focus,
.alert-danger.checkout-box a:active {
	color: #58151c;
}
.alert-warning.checkout-box a,
.alert-warning.checkout-box a:link,
.alert-warning.checkout-box a:visited,
.alert-warning.checkout-box a:hover,
.alert-warning.checkout-box a:focus,
.alert-warning.checkout-box a:active {
	color: #664d03;
}
.alert-info.checkout-box a,
.alert-info.checkout-box a:link,
.alert-info.checkout-box a:visited,
.alert-info.checkout-box a:hover,
.alert-info.checkout-box a:focus,
.alert-info.checkout-box a:active {
	color: #055160;
}

/* Spacing that was inline. */
.checkout-box .checkout-title {
	margin-bottom: 5px;
}
.checkout-box .checkout-text {
	margin-bottom: 0;
}
.checkout-box .checkout-fix {
	margin: 10px 0 0;
}
.checkout-page {
	margin-top: 20px;
}
.checkout-actions {
	margin-top: 20px;
}
/* The notice on the form sat flush under "Edit your reservation" (John, Studio, 2026-11-24). */
.checkout-decline-notice {
	margin-top: 22px;
}

/* The fields a decline points at (checkout_decline_mark()): Bootstrap 5 has no .has-error, so its invalid-field
   colors, on the form group the page marks. */
.has-error .control-label {
	color: #b02a37;
}
.has-error .form-control,
.has-error .form-select {
	border-color: #dc3545;
}
.has-error .form-control:focus,
.has-error .form-select:focus {
	border-color: #dc3545;
	box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}
