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

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

/*
 * Cisco's (2026-11-24, ported from Happy-Hooker-Resos). This site's framework.min.css is not stock Bootstrap 3:
 * .alert-danger is white on #c00, .alert-warning black on #ff0, .btn-primary white on #0983ab (4.33:1, under 4.5),
 * and .has-error turns a field's label and border WHITE, which on this page's white background hid the very field a
 * decline points at. So here: the red box softened (below), the decline buttons on the framework's own darker blue
 * #087093 (5.60:1), and a marked field's label and border Bootstrap 3's #a94442 (5.85:1 on white).
 * The info box's #245269 is 7.35:1 on style-dev.css's #efefef, so it stays; the yellow (#ff0) warning box is
 * replaced by the soft amber below. tests/checkout_decline_contrast.py measures all of it.
 */
/* The decline and refusal box (John, Studio, 2026-11-25 11:46: "Can you redo these w/ a less intense red?"): this
   framework's .alert-danger is white on #c00 with a #b3001e border. A pale red instead, like the amber twice box:
   text #8f2d2d on #fbeaea (7.00:1), border #e6b8b8, links #6e2222 bold and underlined (9.43:1). The test refuses
   the old #c00 background. */
.alert-danger.checkout-box {
	background-color: #fbeaea;
	border-color: #e6b8b8;
	color: #8f2d2d;
}
.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: #6e2222;
}
a.btn-primary.checkout-btn,
a.btn-primary.checkout-btn:link,
a.btn-primary.checkout-btn:visited {
	background-color: #087093;
	border-color: #065a76;
}
a.btn-primary.checkout-btn:hover,
a.btn-primary.checkout-btn:focus,
a.btn-primary.checkout-btn:active {
	background-color: #065a76;
	border-color: #054a61;
}
.form-group.has-error .control-label {
	color: #a94442;
}
.form-group.has-error .form-control {
	border-color: #a94442;
}
/* The decline and "already sent" buttons as touch targets (Simon's review, 2026-11-24): at least 44px tall with
   16px text at every width (this framework draws .btn-lg about 30px tall with 13px 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. tests/checkout_decline_contrast.py measures height, font size and page overflow. */
a.checkout-btn {
	display: inline-block;
	min-height: 44px;
	padding: 10px 18px;
	font-size: 16px;
	line-height: 22px;
	white-space: normal;
	max-width: 100%;
}
/* The "declined twice" box (Simon's review, 2026-11-24): this framework's .alert-warning is pure #ff0, the loudest
   thing on the page. Happy Hooker's soft amber instead (Bootstrap 3's own warning box): text #8a6d3b on #fcf8e3
   (4.54:1), links #66512c (7.08:1, set above for .alert-warning.checkout-box), border #faebcc. */
.alert-warning.checkout-box {
	background-color: #fcf8e3;
	border-color: #faebcc;
	color: #8a6d3b;
}
