/*
 * 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 4.0 (css/main.css), which is themed, not
 * stock: its primary is #00396e and its info box #1b506a on #d6ebf5.
 * What differs from this site's own colors, and why:
 *  - The buttons keep the site's own .btn-primary (white on #00396e, about 12:1), as its Submit button; only the
 *    text is held white here, whatever a link color says.
 *  - The "declined twice" box is Happy Hooker's soft amber (text #8a6d3b on #fcf8e3, 4.54:1; border #faebcc), not
 *    Bootstrap 4's #fff3cd.
 *  - Links in the boxes keep the box's own .alert-link color from main.css, underlined: #491217 on #f8d7da,
 *    #66512c on #fcf8e3 (Happy Hooker's, for the amber), #113141 on #d6ebf5, all above 4.5:1.
 *  - Bootstrap 4 has no .has-error: a marked field's label #a94442 (5.85:1 on white) and its border.
 *  - The buttons are touch targets: at least 44px tall with 16px text, wrapping inside a 390px phone.
 * tests/checkout_decline_contrast.py measures all of it.
 */

/* Buttons: white text, whatever the site's link colors say (the site's own #00396e behind it). */
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;
}
/* Touch targets (Simon's review, 2026-11-24): at least 44px tall, 16px text, and a long label wraps inside the
   button instead of pushing the page wider than a 390px phone. */
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: #491217;
}
.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: #66512c;
}
.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: #113141;
}
/* The "declined twice" box: soft amber, as on Happy Hooker. */
.alert-warning.checkout-box {
	background-color: #fcf8e3;
	border-color: #faebcc;
	color: #8a6d3b;
}

/* 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 4 has no .has-error. */
.form-group.has-error .control-label {
	color: #a94442;
}
.form-group.has-error .form-control,
.form-group.has-error select {
	border-color: #a94442;
}
