/*
 * 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 (stock 3.3.7 from the CDN, as on Happy Hooker). Ported from Happy-Hooker-Resos main 4dea859 for
 * Fish Emeryville, 2026-11-24: this site's own stylesheets (style.css, layout_styles.css, style-dev.css...) do not
 * restyle .btn-primary, .alert-* or plain links, so Happy Hooker's rules are kept as they are (they still make the
 * button text white and the box links the box's color whatever a later stylesheet says).
 * 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;
}

/* 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 (Bootstrap 3's .btn-lg is 18px text, kept), and a long label ("Correct your card details and
   try again") wraps inside the button instead of pushing the page wider than a 390px phone (Bootstrap's .btn is
   nowrap). tests/checkout_decline_contrast.py measures height, font size and page overflow at 390 and 1440. On Fish
   Emeryville the longest label fits 390 and is 46px tall even without this rule (measured 2026-11-24); it is kept
   for a longer label or a narrower phone. */
a.checkout-btn {
	display: inline-block;
	min-height: 44px;
	white-space: normal;
	max-width: 100%;
}
