/* Blue Light Discount - account screen and checkout notice.

   The account sections carry no panel of their own; they sit on whatever the
   My Account layout provides, so text uses the theme's $quaternary rather
   than white. The checkout notice and the code block keep their own dark
   backgrounds and so keep white text. */

/* Each section is its own group. The panel background was removed, so the
   separation is done with spacing and a rule between groups instead. */
.bwe-bl-panel + .bwe-bl-panel {
	border-top: 1px solid #dcdcde;
	margin-top: 2rem;
	padding-top: 2rem;
}

.bwe-bl-panel {
	margin-bottom: 0;
}

.bwe-bl-title {
	color: #1f1f22; /* $quaternary */
	font-size: 1.25rem;
	margin: 0 0 .75rem;
}

.bwe-bl-lede {
	color: #1f1f22; /* $quaternary */
	margin: 0 0 1rem;
}

.bwe-bl-meta {
	color: #5c5f66;
	font-size: .875rem;
	margin: .5rem 0 0;
}

.bwe-bl-error {
	color: #b32d2e;
}

/* The code block itself: monospaced and wide enough to read at a glance. */
.bwe-bl-code {
	align-items: stretch;
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	margin: 1rem 0;
}

.bwe-bl-code__value {
	background-color: #4d4b59;
	border: 2px dashed #6b6879;
	border-radius: 4px;
	color: #fff;
	flex: 1 1 14rem;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: 2px;
	padding: .75rem 1rem;
	text-align: center;
	word-break: break-all;
}

.bwe-bl-code__copy {
	background-color: transparent;
	border: 2px solid #dc2626;
	border-radius: 4px;
	/* Sits on the light account background, not the old dark panel, so the
	   resting state is dark text; it only goes white once the fill lands. */
	color: #1f1f22;
	cursor: pointer;
	flex: 0 0 auto;
	font-weight: 600;
	padding: .75rem 1.5rem;
	transition: all .25s ease;
}

.bwe-bl-code__copy:hover,
.bwe-bl-code__copy:focus-visible {
	background-color: #dc2626;
	color: #fff;
}

.bwe-bl-code__copy.is-copied {
	background-color: #2e7d32;
	border-color: #2e7d32;
}

.bwe-bl-table {
	border-collapse: collapse;
	color: #1f1f22; /* $quaternary */
	width: 100%;
}

.bwe-bl-table th {
	border-bottom: 2px solid #dcdcde;
	color: #5c5f66;
	font-size: .8125rem;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.bwe-bl-table td {
	border-bottom: 1px solid #e6e7e9;
}

.bwe-bl-table th,
.bwe-bl-table td {
	padding: .625rem .75rem;
	text-align: left;
	vertical-align: top;
}

.bwe-bl-table tr:last-child td {
	border-bottom: 0;
}

/* Flush the outer edges so the table lines up with the copy above it
   rather than sitting inset by its own cell padding. */
.bwe-bl-table th:first-child,
.bwe-bl-table tbody tr td:first-child {
	padding-left: 0;
}

.bwe-bl-table th:last-child,
.bwe-bl-table tbody tr td:last-child {
	padding-right: 0;
}

.bwe-bl-table code {
	background-color: #f1f1f2;
	border-radius: 3px;
	color: #1f1f22;
	padding: 0;
}

/* Checkout notice. Sits above the checkout block. */
.bwe-bl-checkout-notice {
	background-color: #2f2d3a;
	border-left: 4px solid #dc2626;
	border-radius: 4px;
	margin-bottom: 1.5rem;
	padding: 1rem 1.25rem;
}

.bwe-bl-checkout-notice p {
	color: #fff;
	margin: 0;
}

.bwe-bl-checkout-notice a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bwe-bl-checkout-notice a:hover,
.bwe-bl-checkout-notice a:focus-visible {
	color: #dc2626;
}

.bwe-bl-inline-code {
	background-color: #4d4b59;
	border-radius: 3px;
	/* Bootstrap colours bare <code> pink; this sits on the dark notice. */
	color: #fff;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-weight: 700;
	letter-spacing: 1px;
	padding: .15rem .5rem;
}

/* Gravity Forms submit button on the application form.

   Scoped to .bwe-bl so the Contact and Trade Account forms are untouched.
   !important is unavoidable here: the theme sets
   `.gform_wrapper .gform_button { font-size: 1.25rem !important }`
   (scss/styles.scss), which no amount of specificity alone can beat. */
.bwe-bl .gform_wrapper .gform_button,
.bwe-bl .gform_wrapper .gform_footer input[type="submit"],
.bwe-bl .gform_wrapper .gform_footer button[type="submit"] {
	font-size: 14px !important;
}
