/*
 * 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, ported from
 * Happy-Hooker-Resos (John's Studio pass) to Pierpoint-Resos.
 * Bootstrap 5.3 here, with the Pierpoint brand layer: assets/css/main.css sets every a to the logo red
 * (--accent-color #980008), loaded after style-dev.css, and style-dev.css makes .btn-primary that red and
 * .alert-info a light green. These rules come after both (utilities/config.php) and are specific enough to win.
 * Contrast (WCAG, all >= 4.5:1; tests/checkout_decline_contrast.py measures them as drawn):
 *   button   white on #980008 (style-dev.css's .btn-primary)
 *   danger   #58151c on #f8d7da (Bootstrap 5.3's own alert-danger), links the same color, underlined
 *   warning  #8a6d3b on #fcf8e3, links #66512c: the soft amber Happy Hooker uses (Bootstrap 5's #fff3cd is
 *            set back to it here so the fleet's "declined twice" box looks the same; never a pure yellow)
 *   info     #00351f on #e3efe9 (style-dev.css's green-tinted alert-info), links #005030
 */

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

/* The warning box (the "declined twice" notice): soft amber, as Happy Hooker's. */
.alert-warning.checkout-box {
	color: #8a6d3b;
	background-color: #fcf8e3;
	border-color: #faebcc;
}

/* Links inside the message boxes: the box's own link color, bold and underlined (main.css would make them red). */
.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: #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: #005030;
}

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

/* A field the decline points at (checkout_decline_mark(); Bootstrap 5 has no .has-error). */
.checkout-field-error .col-form-label {
	color: #b02a37;
	font-weight: bold;
}
.checkout-field-error .form-control,
.checkout-field-error .form-select {
	border-color: #dc3545;
}
