/*
 * 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. 2026-11-24, John's Studio pass.
 * Bootstrap 3 here. style-dev.css sets a:link / a:visited to #036 for the whole site, which beat .btn-primary's
 * white and put a dark-blue link on the red and yellow boxes; these rules are specific enough to win over it.
 * Contrast (WCAG): white on #337ab7 4.56:1; links #843534 on #f2dede, #66512c on #fcf8e3, #245269 on #d9edf7 are
 * Bootstrap 3's own .alert-link colors for each box, all above 4.5:1 (tests/checkout_decline_contrast.py measures).
 */

/* 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;
}

/* Buttons never wider than the screen: Bootstrap's .btn is nowrap, and "Correct your card details and try again" in
   Montserrat 18px made the invalid-card page 395px wide on a 390px phone (Riker's dev QA, 2026-11-24). The label
   wraps inside the button instead; colors are unchanged. */
a.checkout-btn {
	max-width: 100%;
	white-space: normal;
}

/* 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: #843534;
}
.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: #245269;
}

/* 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;
}
