/* US Hazmat Site Banners. Frame styles (.ushb*) first, then the reusable content blocks (.ushb-*) the seeded banners use. */

.ushb[hidden] { display: none !important; }
.ushb, .ushb *, .ushb *::before, .ushb *::after { box-sizing: border-box; }
.ushb { font-family: "Open Sans", Arial, Helvetica, sans-serif; color: var(--ushb-fg, #fff); line-height: 1.4; -webkit-font-smoothing: antialiased; }
.ushb a { text-decoration: none; }

/* Bars */
.ushb--top, .ushb--bottom { background: var(--ushb-bg, #ef4129); display: flex; align-items: center; width: 100%; z-index: 9990; }
.ushb--top { position: relative; }
.ushb--sticky { position: sticky; top: 0; }
.admin-bar .ushb--sticky { top: var(--wp-admin--admin-bar--height, 32px); }
.ushb--bottom { position: fixed; left: 0; right: 0; bottom: 0; transform: translateY(105%); transition: transform .35s ease; box-shadow: 0 -3px 14px rgba(0, 0, 0, .18); }
.ushb--bottom.is-open { transform: none; }
html.ushb-has-bottom body { padding-bottom: var(--ushb-bottom-h, 0); }
.ushb__content { flex: 1 1 auto; min-width: 0; }

/* Close button, hardened against the theme's global button styles */
.ushb button.ushb__x {
	position: absolute; top: 50%; right: 12px; transform: translateY(-50%); z-index: 3;
	width: 36px; height: 36px; min-width: 0; min-height: 0; margin: 0; padding: 0;
	background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 50%;
	color: inherit !important; font: 400 30px/36px Arial, sans-serif !important; text-align: center; cursor: pointer; opacity: .85;
}
.ushb button.ushb__x:hover, .ushb button.ushb__x:focus-visible { opacity: 1; background: rgba(0, 0, 0, .12) !important; }

/* Popup */
.ushb--popup { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.ushb__backdrop { position: absolute; inset: 0; background: rgba(18, 20, 26, .62); opacity: 0; transition: opacity .25s ease; }
.ushb__dialog {
	position: relative; width: 100%; max-width: var(--ushb-w, 800px); max-height: calc(100vh - 32px); overflow: auto;
	background: var(--ushb-bg, #fff); color: var(--ushb-fg, #333); box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
	opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .25s ease, transform .25s ease; outline: none;
}
.ushb--popup.is-open .ushb__backdrop { opacity: 1; }
.ushb--popup.is-open .ushb__dialog { opacity: 1; transform: none; }
.ushb--popup button.ushb__x { top: 8px; right: 8px; transform: none; color: #9aa0a6 !important; }
html.ushb-lock { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	.ushb--bottom, .ushb__backdrop, .ushb__dialog { transition: none; }
}

/* ---- Content blocks ---- */

.ushb-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	font-weight: 600; text-transform: uppercase; white-space: nowrap; cursor: pointer; transition: filter .15s ease;
}
.ushb-btn:hover, .ushb-btn:focus-visible { filter: brightness(1.08); }
.ushb-btn svg { flex: none; }

/* Top bar: "Service is our business" */
.ushb-top { display: flex; align-items: center; justify-content: center; gap: 72px; min-height: 80px; padding: 12px 64px; }
.ushb-top__msg { margin: 0; max-width: 620px; font-size: 19px; font-weight: 600; line-height: 1.38; color: inherit; }
.ushb a.ushb-top__btn { background: #ffcd00; color: #ef4129; font-size: 22px; font-weight: 600; padding: 9px 46px; min-width: 278px; border-radius: 2px; }

/* Top bar: "Compliant storage from $595/mo" */
.ushb-cs { display: flex; align-items: center; justify-content: center; gap: 44px; min-height: 90px; padding: 10px 64px; }
.ushb-cs__claim { max-width: 270px; }
.ushb-cs__eyebrow { margin: 0; font-size: 18px; font-weight: 400; line-height: 1.2; color: inherit; }
.ushb-cs__title { margin: 0 0 6px; font-size: 22px; font-weight: 800; line-height: 1.1; color: inherit; text-transform: uppercase; letter-spacing: -.01em; }
.ushb-cs__fine { margin: 0; font-size: 7.5px; line-height: 1.3; color: inherit; text-transform: uppercase; }
.ushb-cs__price { margin: 0; font-size: 31px; font-weight: 800; line-height: 1; color: inherit; letter-spacing: -.02em; white-space: nowrap; }
.ushb a.ushb-cs__btn { background: #ffc602; color: #1e1969; font-size: 17px; font-weight: 700; text-transform: none; padding: 10px 46px; border-radius: 24px; }
.ushb-cs__eyebrow, .ushb-cs__title, .ushb-cs__fine, .ushb-cs__price { font-family: inherit; padding: 0; }

/* Bottom bar: "Free storage planner" */
.ushb-bb { display: flex; align-items: center; justify-content: center; gap: 28px; min-height: 104px; max-width: 1180px; margin: 0 auto; padding: 0 64px 0 24px; }
.ushb-bb__thumb { flex: none; align-self: flex-end; width: auto; height: 104px; display: block; }
.ushb-top__msg, .ushb-bb__title, .ushb-bb__sub, .ushb-planner__title, .ushb-planner__lead { font-family: inherit; padding: 0; }
.ushb-bb__text { flex: 1 1 auto; min-width: 0; }
.ushb-bb__title { margin: 0 0 8px; font-size: 24px; font-weight: 700; line-height: 1.15; color: inherit; text-transform: uppercase; }
.ushb-bb__sub { margin: 0; font-size: 13px; font-weight: 600; color: inherit; }
.ushb-bb__cta { flex: none; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 300px; }
.ushb a.ushb-bb__yes { width: 100%; background: #333; color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .06em; padding: 10px 20px; border-radius: 24px; }
.ushb a.ushb-bb__no { color: #fff; font-size: 12px; opacity: .92; text-transform: uppercase; }
.ushb a.ushb-bb__no:hover { text-decoration: underline; opacity: 1; }

/* Popup: "Storage planner" */
.ushb-planner { display: grid; grid-template-columns: 372px 1fr; min-height: 566px; background: #fff; color: #222; }
.ushb-planner__art { display: block; width: 372px; height: 100%; object-fit: cover; object-position: left top; }
.ushb-planner__body { padding: 76px 40px 40px 26px; }
.ushb-planner__title { margin: 0 0 14px; font-size: 36px; font-weight: 700; line-height: 1.1; letter-spacing: -.005em; color: #3c4249; text-transform: uppercase; white-space: nowrap; }
.ushb-planner__lead { margin: 0 0 22px; font-size: 17px; line-height: 1.48; color: #222; }
.ushb-planner__lead strong { font-weight: 700; color: #3c4249; }

/* Gravity Forms inside the planner popup, styled like the original */
.ushb-planner .gform_wrapper { margin: 0 !important; padding: 0 !important; max-width: none !important; }
.ushb-planner .gform_wrapper .gform_heading, .ushb-planner .gform_wrapper .gform_required_legend { display: none !important; }
.ushb-planner .gform_wrapper .gform_fields { display: grid !important; grid-template-columns: 1fr !important; row-gap: 12px !important; }
.ushb-planner .gform_wrapper .gfield { margin: 0 !important; padding: 0 !important; grid-column: 1 / -1 !important; }
.ushb-planner .gform_wrapper .gfield_label,
.ushb-planner .gform_wrapper .ginput_complex label,
.ushb-planner .gform_wrapper .gfield_description:not(.validation_message) {
	position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important;
}
.ushb-planner .gform_wrapper input[type=text],
.ushb-planner .gform_wrapper input[type=email],
.ushb-planner .gform_wrapper input[type=tel] {
	width: 100% !important; height: 50px !important; margin: 0 !important; padding: 0 16px !important;
	border: 2px solid #d9dbde !important; border-radius: 0 !important; box-shadow: none !important; background: #fff !important;
	font: 400 17px/1.2 "Open Sans", Arial, sans-serif !important; color: #222 !important;
}
.ushb-planner .gform_wrapper .ginput_complex { display: flex !important; flex-wrap: nowrap !important; gap: 10px !important; margin: 0 !important; }
.ushb-planner .gform_wrapper .ginput_complex > span { flex: 1 1 0 !important; min-width: 0 !important; margin: 0 !important; padding: 0 !important; width: auto !important; }
.ushb-planner .gform_wrapper fieldset.gfield { border: 0 !important; min-width: 0; }
.ushb-planner .gform_wrapper input::placeholder { color: #b5b9be !important; opacity: 1; }
.ushb-planner .gform_wrapper input:focus { border-color: #ef4129 !important; outline: none !important; }
.ushb-planner .gform_wrapper .gform_footer { margin: 12px 0 0 !important; padding: 0 !important; }
.ushb-planner .gform_wrapper .gform_footer .gform_button,
.ushb-planner .gform_wrapper .gform_footer input[type=submit] {
	width: 100% !important; height: 58px !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important;
	background: #ef4129 !important; color: #fff !important; font: 700 19px/1 "Open Sans", Arial, sans-serif !important; letter-spacing: -.01em; cursor: pointer;
}
.ushb-planner .gform_wrapper .gform_footer .gform_button:hover { filter: brightness(1.07); }
.ushb-planner .gform_wrapper .validation_message { font-size: 13px !important; padding: 4px 0 0 !important; margin: 0 !important; border: 0 !important; background: none !important; }
.ushb-planner .gform_wrapper .gform_validation_errors { margin: 0 0 12px !important; padding: 10px 12px !important; font-size: 14px !important; }
.ushb-planner .gform_confirmation_message { font-size: 17px; line-height: 1.5; color: #222; padding: 8px 0; }

/* ---- Small screens ---- */
@media (max-width: 900px) {
	.ushb-top { gap: 24px; padding: 10px 52px 10px 16px; }
	.ushb-top__msg { font-size: 15px; }
	.ushb a.ushb-top__btn { font-size: 17px; min-width: 0; padding: 8px 22px; }
	.ushb-bb { gap: 16px; padding: 0 52px 0 12px; }
	.ushb-bb__cta { width: 210px; }
}
@media (max-width: 767px) {
	.ushb-top { gap: 12px; min-height: 0; padding: 8px 46px 8px 12px; justify-content: space-between; }
	.ushb-top__msg { font-size: 13px; line-height: 1.3; }
	.ushb-top__more { display: none; }
	.ushb-cs { flex-wrap: wrap; gap: 4px 14px; min-height: 0; padding: 8px 44px 8px 12px; justify-content: flex-start; }
	.ushb-cs__claim { max-width: none; flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
	.ushb-cs__eyebrow { font-size: 12px; }
	.ushb-cs__title { font-size: 13px; margin: 0; }
	.ushb-cs__fine { flex: 1 1 100%; font-size: 7px; margin-top: 2px; }
	.ushb-cs__price { font-size: 18px; }
	.ushb a.ushb-cs__btn { font-size: 13px; padding: 6px 16px; }
	.ushb a.ushb-top__btn { font-size: 14px; padding: 7px 12px; gap: 6px; }
	.ushb a.ushb-top__btn svg { width: 18px; height: 18px; }
	.ushb button.ushb__x { right: 4px; width: 34px; }
	.ushb-bb { min-height: 0; padding: 10px 44px 10px 12px; gap: 12px; }
	.ushb-bb__thumb, .ushb-bb__sub { display: none; }
	.ushb-bb__title { font-size: 16px; margin: 0; }
	.ushb-bb__cta { width: auto; gap: 4px; }
	.ushb a.ushb-bb__yes { font-size: 13px; padding: 8px 16px; }
	.ushb a.ushb-bb__no { font-size: 10px; }
	.ushb-planner { grid-template-columns: 1fr; min-height: 0; }
	.ushb-planner__art { display: none; }
	.ushb-planner__body { padding: 34px 20px 22px; }
	.ushb-planner__title { font-size: 28px; padding-right: 28px; }
	.ushb-planner__lead { font-size: 15px; margin-bottom: 16px; }
}
