/*
  Hostbility Cart: Hostbility-like product & domain/cart styling
  Scoped to the hostbility_cart orderform templates to avoid conflicts with the main theme.
*/

:root {
  --hb-primary: #072673;
  --hb-bg: #f7f8fb;
  --hb-card: #ffffff;
  --hb-border: #e5e7eb;
  --hb-text: #111827;
  --hb-muted: #6b7280;
  --hb-radius-lg: 10px;
  --hb-radius-md: 10px;

  /* Hot Deals visual tokens (match .h-promo-card) */
  --hb-deal-bg: rgba(222,231,254,0.8);
  --hb-deal-radius: 12px;
  --hb-deal-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

/* Base */
.hb-orderform-page {
  font-family: var(--h-font-family, 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
  color: var(--hb-text);
  font-size: 14px;
  line-height: 1.5;
}

/* Optional outer surface wrapper (used by products.tpl) */
.hb-orderform-page .hb-surface {
  background: var(--hb-bg);
  border-radius: var(--hb-radius-lg);
  padding: 24px;
}

/* A11y: clear focus states */
.hb-orderform-page a:focus-visible,
.hb-orderform-page button:focus-visible,
.hb-orderform-page input:focus-visible,
.hb-orderform-page select:focus-visible,
.hb-orderform-page textarea:focus-visible {
  outline: 3px solid rgba(7, 38, 115, 0.35);
  outline-offset: 2px;
}

/* Card primitive */
.hb-orderform-page .hb-card {
  background: var(--hb-card);
  border: 1px solid var(--hb-border);
  border-radius: var(--hb-radius-md);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
}

/* Header */
.hb-products-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 2px 18px 2px;
  flex-wrap: wrap;
}

.hb-products-header .hb-products-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
}

.hb-products-header .hb-products-subtitle {
  margin: 6px 0 0 0;
  color: var(--hb-muted);
  font-size: 0.95rem;
}

.hb-products-sort {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hb-products-sort label {
  margin: 0;
  color: var(--hb-muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.hb-products-sort select.form-control,
.hb-products-sort select.custom-select {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--hb-border);
  padding: 8px 12px;
  font-size: 0.95rem;
  background: var(--hb-card);
  box-shadow: none;
}

/* Product grid */
.hb-product-col {
  display: flex;
}

/* Flexbox grid (container-width responsive): 4 → 3 → 2 → 1 */
#hbProductGrid.hb-hp-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: stretch;
  container-type: inline-size;
}

#hbProductGrid .hb-product-col {
  flex: 1 1 260px;
  max-width: 100%;
  transition: flex-basis 250ms ease;
}

@container (min-width: 1240px) {
  #hbProductGrid .hb-product-col {
    flex-basis: calc((100% - (3 * 22px)) / 4);
  }
}
@container (min-width: 940px) and (max-width: 1239px) {
  #hbProductGrid .hb-product-col {
    flex-basis: calc((100% - (2 * 22px)) / 3);
  }
}
@container (min-width: 640px) and (max-width: 939px) {
  #hbProductGrid .hb-product-col {
    flex-basis: calc((100% - 22px) / 2);
  }
}
@container (max-width: 639px) {
  #hbProductGrid .hb-product-col {
    flex-basis: 100%;
  }
}

/* Pricing card design (pixel-match to reference) */
#hbProductGrid .hb-hp-card {
  position: relative;
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 28px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 520px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

#hbProductGrid .hb-hp-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 60px rgba(7, 38, 115, 0.14);
  border-color: rgba(7, 38, 115, 0.22);
}

#hbProductGrid .hb-hp-card.is-featured {
  border: 2px solid rgba(7, 38, 115, 0.55);
  box-shadow: 0 22px 60px rgba(7, 38, 115, 0.16);
  transform: translateY(-10px);
}

#hbProductGrid .hb-hp-topbar {
  background: var(--hb-primary, #072673);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  text-align: center;
  padding: 14px 14px 12px;
}

#hbProductGrid .hb-hp-body {
  position: relative;
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

#hbProductGrid .hb-hp-discount {
  position: absolute;
  right: 18px;
  top: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(7, 38, 115, 0.08);
  color: rgba(7, 38, 115, 0.95);
  font-weight: 700;
  font-size: 12px;
}

#hbProductGrid .hb-hp-name {
  margin: 6px 0 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #111827;
  text-align: center;
}

#hbProductGrid .hb-hp-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin: 0 0 16px;
  text-align: center;
}

#hbProductGrid .hb-hp-priceval {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  color: #111827;
}

#hbProductGrid .hb-hp-pricesuf {
  font-size: 20px;
  font-weight: 600;
  color: rgba(17, 24, 39, 0.60);
}

#hbProductGrid .hb-hp-btn {
  margin-top: auto;
  min-height: 45px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  transition: all 0.25s ease-in-out;
}

#hbProductGrid .hb-hp-btn--outline {
  background: #ffffff;
  color: var(--hb-primary, #072673);
  border: 2px solid rgba(7, 38, 115, 0.35);
}

#hbProductGrid .hb-hp-btn--outline:hover,
#hbProductGrid .hb-hp-btn--outline:focus {
  background: rgba(7, 38, 115, 0.06);
  border-color: rgba(7, 38, 115, 0.55);
  transform: translateY(-1px);
}

#hbProductGrid .hb-hp-btn--primary {
  background: var(--hb-primary, #072673);
  color: #ffffff;
  border: 2px solid var(--hb-primary, #072673);
  box-shadow: 0 18px 38px rgba(7, 38, 115, 0.18);
}

#hbProductGrid .hb-hp-btn--primary:hover,
#hbProductGrid .hb-hp-btn--primary:focus {
  background: #061f5f;
  border-color: #061f5f;
  transform: translateY(-1px);
  box-shadow: 0 22px 46px rgba(7, 38, 115, 0.22);
}

/* Ensure any global .btn-order-now rules don't override our pricing card buttons */
#hbProductGrid .hb-hp-btn.btn-order-now{
  background: inherit;
  color: inherit;
  border-color: inherit;
  box-shadow: none;
}
#hbProductGrid .hb-hp-btn--outline.btn-order-now{
  background: #ffffff !important;
  color: var(--hb-primary, #072673) !important;
  border: 2px solid rgba(7, 38, 115, 0.35) !important;
  box-shadow: none !important;
}
#hbProductGrid .hb-hp-btn--primary.btn-order-now{
  background: var(--hb-primary, #072673) !important;
  color: #ffffff !important;
  border: 2px solid var(--hb-primary, #072673) !important;
  box-shadow: 0 18px 38px rgba(7, 38, 115, 0.18) !important;
}

#hbProductGrid .hb-hp-renew {
  margin: 16px 0 0;
  color: rgba(17, 24, 39, 0.55);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}

#hbProductGrid .hb-hp-divider {
  border: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.10);
  margin: 18px 0 16px;
}

#hbProductGrid .hb-hp-feats {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

#hbProductGrid .hb-hp-feats li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(17, 24, 39, 0.85);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  margin-top: 12px;
}

#hbProductGrid .hb-hp-feats li:first-child {
  margin-top: 0;
}

#hbProductGrid .hb-hp-feats li.hb-hp-feat-extra {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-4px);
  transition: max-height .28s ease, margin-top .28s ease, opacity .22s ease, transform .28s ease;
}

#hbProductGrid .hb-hp-card.is-expanded .hb-hp-feats li.hb-hp-feat-extra {
  max-height: 88px;
  margin-top: 12px;
  opacity: 1;
  transform: translateY(0);
}

#hbProductGrid .hb-hp-feats-toggle {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--hb-primary, #072673);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: color .18s ease, transform .18s ease;
}

#hbProductGrid .hb-hp-feats-toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}

#hbProductGrid .hb-hp-feats-toggle:hover {
  color: #061f5f;
  transform: translateY(-1px);
  text-decoration: none;
}

#hbProductGrid .hb-hp-feats-toggle:focus {
  outline: 2px solid rgba(7, 38, 115, .35);
  outline-offset: 4px;
  border-radius: 999px;
}

#hbProductGrid .hb-hp-card.is-expanded .hb-hp-feats-toggle::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

#hbProductGrid .hb-hp-feats-toggle [data-hb-toggle-close] {
  display: none;
}

#hbProductGrid .hb-hp-card.is-expanded .hb-hp-feats-toggle [data-hb-toggle-open] {
  display: none;
}

#hbProductGrid .hb-hp-card.is-expanded .hb-hp-feats-toggle [data-hb-toggle-close] {
  display: inline;
}

/* When a WHMCS product description is empty, keep card height consistent but render a blank features area. */
#hbProductGrid .hb-hp-feats li.hb-hp-feat-spacer {
  display: block;
  height: 124px;
}

#hbProductGrid .hb-hp-feat-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 2px;
  background: rgba(17, 24, 39, 0.55);
  mask-image: url("../../../hostbility_theme/img/home/icon-check.svg");
  -webkit-mask-image: url("../../../hostbility_theme/img/home/icon-check.svg");
  mask: center / contain no-repeat;
  -webkit-mask: center / contain no-repeat;
}

#hbProductGrid .hb-hp-feat-icon--1 {
  mask-image: url("../../../hostbility_theme/img/home/icon-cpu.svg");
  -webkit-mask-image: url("../../../hostbility_theme/img/home/icon-cpu.svg");
}
#hbProductGrid .hb-hp-feat-icon--2 {
  mask-image: url("../../../hostbility_theme/img/home/icon-ram.svg");
  -webkit-mask-image: url("../../../hostbility_theme/img/home/icon-ram.svg");
}
#hbProductGrid .hb-hp-feat-icon--3 {
  mask-image: url("../../../hostbility_theme/img/home/icon-disk.svg");
  -webkit-mask-image: url("../../../hostbility_theme/img/home/icon-disk.svg");
}
#hbProductGrid .hb-hp-feat-icon--4 {
  mask-image: url("../../../hostbility_theme/img/home/icon-bandwidth.svg");
  -webkit-mask-image: url("../../../hostbility_theme/img/home/icon-bandwidth.svg");
}

/* Keep cards readable on smaller screens */
@media (max-width: 575.98px) {
  #hbProductGrid .hb-hp-card { min-height: auto; }
}

/* Domain & cart pages: light reskin to match Hostbility cards */
.hb-orderform-page .domain-search,
.hb-orderform-page .captcha-container,
.hb-orderform-page .domain-suggestion,
.hb-orderform-page .domain-renewal,
.hb-orderform-page .secondary-cart-sidebar #orderSummary,
.hb-orderform-page .view-cart-items-coodiv-cart-group .item-in-cart {
  background: var(--hb-card) !important;
  border: 1px solid var(--hb-border) !important;
  border-radius: var(--hb-radius-md) !important;
}

.hb-orderform-page#order-standard_cart {
  /* Consistent vertical breathing room across cart pages */
  padding-top: 16px;
  padding-bottom: 16px;
}

.hb-orderform-page .domain-search-input-header,
.hb-orderform-page input.form-control,
.hb-orderform-page select.form-control,
.hb-orderform-page select.custom-select {
  min-height: 46px;
  border-radius: 10px;
  border: 1px solid var(--hb-border);
  box-shadow: none;
}

.hb-orderform-page .btn,
.hb-orderform-page button.btn,
.hb-orderform-page a.btn {
  border-radius: 10px !important;
}

.hb-orderform-page .form-group label {
  font-weight: 600;
  color: #374151;
}

.hb-orderform-page .alert {
  border-radius: 10px;
}

.hb-orderform-page .btn.btn-primary,
.hb-orderform-page .btn-primary {
  background: var(--hb-primary);
  border-color: var(--hb-primary);
  border-radius: 10px;
  font-weight: 800;
}

.hb-orderform-page .btn.btn-black,
.hb-orderform-page .btn-black {
  background: var(--hb-primary) !important;
  border-color: var(--hb-primary) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  font-weight: 800;
}

.hb-orderform-page .btn.btn-default,
.hb-orderform-page .btn-default {
  border-radius: 10px;
}

/* Treat common WHMCS blocks as cards with consistent spacing */
.hb-orderform-page .white-bg.rounded-20,
.hb-orderform-page .white-bg.rounded-15,
.hb-orderform-page .white-bg.rounded-10,
.hb-orderform-page .white-bg.rounded-4,
.hb-orderform-page .tld-filters-container.white-bg,
.hb-orderform-page .view-cart-promotion-code,
.hb-orderform-page .ordersummary-coodiv-box,
.hb-orderform-page .domain-pricing,
.hb-orderform-page .products .border.rounded-20,
.hb-orderform-page .secondary-cart-body {
  background: var(--hb-card) !important;
  border: 1px solid var(--hb-border) !important;
  border-radius: 10px !important;
  padding: 20px !important;
  margin-bottom: 24px !important;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
}

/* Domain transfer: the inner form block isn't in a .white-bg container */
.hb-orderform-page #frmDomainTransfer .px-9.pb-10 {
  background: var(--hb-card);
  border: 1px solid var(--hb-border);
  border-radius: 10px;
  padding: 20px !important;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
}

/* Keep lists/tables aligned */
.hb-orderform-page table,
.hb-orderform-page .tld-box-ews {
  font-size: 0.95rem;
}

/* Table typography + spacing (domain pages, addons lists, cart review tables) */
.hb-orderform-page table {
  width: 100%;
  color: var(--hb-text);
}

.hb-orderform-page table thead th {
  font-weight: 700;
  color: #374151;
  white-space: nowrap;
}

.hb-orderform-page table th,
.hb-orderform-page table td {
  padding: 16px 14px;
  vertical-align: middle;
}

.hb-orderform-page .table-responsive {
  border-radius: 10px;
}

/* Ensure adequate spacing inside wide containers */
.hb-orderform-page .container,
.hb-orderform-page .container-fluid {
  padding-left: 16px;
  padding-right: 16px;
}

/* Configure product domain: input groups need sensible widths */
.hb-orderform-page .hb-domain-input-group select.form-control,
.hb-orderform-page .hb-domain-input-group select.custom-select {
  max-width: 160px;
  flex: 0 0 160px;
}

.hb-orderform-page .hb-domain-input-group .input-group-append .btn {
  min-width: 140px;
}

@media (max-width: 575.98px) {
  .hb-orderform-page .hb-domain-input-group {
    flex-wrap: wrap;
  }
  .hb-orderform-page .hb-domain-input-group select.form-control,
  .hb-orderform-page .hb-domain-input-group select.custom-select {
    max-width: 100%;
    flex: 1 1 100%;
    border-left: 1px solid var(--hb-border);
    border-top: 0;
  }
  .hb-orderform-page .hb-domain-input-group .input-group-text {
    display: none;
  }
  .hb-orderform-page .hb-domain-input-group .input-group-append {
    width: 100%;
  }
  .hb-orderform-page .hb-domain-input-group .input-group-append .btn {
    width: 100%;
    min-width: 0;
    margin-top: 10px;
  }
}

/* TLD promo grid: prevent "scattered" images/CTAs when the legacy coodiv CSS isn't present */
.hb-orderform-page .domain-ltds-prices-confi-page {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.hb-orderform-page .aws-domains-ltds-prices {
  row-gap: 16px;
}

.hb-orderform-page .aws-domains-ltds-prices-item {
  background: var(--hb-card);
  border: 1px solid var(--hb-border);
  border-radius: 12px;
  padding: 18px 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hb-orderform-page .aws-domains-ltds-prices-item img {
  width: 96px;
  height: auto;
  display: block;
  margin: 0 auto 6px auto;
  padding: 0;
}

.hb-orderform-page .aws-domains-ltds-price-item {
  font-weight: 800;
  color: var(--hb-text);
}

.hb-orderform-page .aws-domains-ltds-prices-item .btn {
  border-radius: 10px !important;
  margin-top: auto;
}

/* Domain option tabs (Register / Transfer / Existing) */
.hb-orderform-page .hb-domain-card__header {
  text-align: center;
  margin-bottom: 14px;
}

.hb-orderform-page .hb-domain-card__kicker {
  color: var(--hb-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  font-size: 0.72rem;
}

.hb-orderform-page .hb-domain-card__title {
  margin-top: 8px;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
  color: var(--hb-text);
}

.hb-orderform-page .hb-domain-card__subtitle {
  margin-top: 6px;
  color: var(--hb-muted);
  font-weight: 600;
  font-size: 0.92rem;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.hb-orderform-page .hb-domain-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.hb-orderform-page .hb-domain-tab-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hb-orderform-page .hb-domain-tab {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #374151;
  cursor: pointer;
  min-width: 240px;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.hb-orderform-page .hb-domain-tab:hover {
  background: #eef2ff;
  border-color: rgba(7, 38, 115, 0.22);
  transform: translateY(-1px);
}

.hb-orderform-page .hb-domain-tab-title {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.hb-orderform-page .hb-domain-tab-sub {
  font-weight: 600;
  font-size: 0.82rem;
  color: #6b7280;
}

.hb-orderform-page .hb-domain-tab--compact {
  min-width: 180px;
  padding: 10px 14px;
}

/* Active styles: input immediately precedes label */
.hb-orderform-page .hb-domain-tab-radio:checked + .hb-domain-tab {
  background: rgba(7, 38, 115, 0.08);
  border-color: rgba(7, 38, 115, 0.35);
  box-shadow: 0 14px 28px rgba(7, 38, 115, 0.10);
}

.hb-orderform-page .hb-domain-tab-radio:checked + .hb-domain-tab .hb-domain-tab-title {
  color: #072673;
}

.hb-orderform-page .hb-domain-tab:focus-within,
.hb-orderform-page .hb-domain-tab:focus {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(7, 38, 115, 0.18);
}

.hb-orderform-page .hb-domain-panels {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--hb-border);
}

.hb-orderform-page .hb-domain-pane {
  display: none;
}

.hb-orderform-page .hb-domain-pane.is-active {
  display: block;
}

.hb-orderform-page .hb-domain-pane__title {
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
  text-align: center;
  color: var(--hb-text);
  margin: 0 0 6px 0;
}

.hb-orderform-page .hb-domain-pane__subtitle {
  text-align: center;
  color: var(--hb-muted);
  font-weight: 600;
  font-size: 0.92rem;
  margin: 0 0 16px 0;
}

.hb-orderform-page .hb-domain-dot {
  background: #ffffff;
  border: 1px solid var(--hb-border);
  border-left: 0;
  border-right: 0;
  color: var(--hb-muted);
  font-weight: 800;
}

.hb-orderform-page .hb-domain-helptext {
  margin-top: 18px;
  text-align: center;
  color: var(--hb-muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.hb-orderform-page .hb-domain-helptext__note {
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--hb-muted);
}

@media (max-width: 575.98px) {
  .hb-orderform-page .hb-domain-tab {
    min-width: 100%;
    align-items: flex-start;
  }
}

/* Ensure 4-col on large screens, 2-col on tablets */
@media (max-width: 991.98px) {
  .hb-product-card {
    min-height: 340px;
  }
}

@media (max-width: 575.98px) {
  .hb-orderform-page .white-bg.rounded-20,
  .hb-orderform-page .white-bg.rounded-15,
  .hb-orderform-page .white-bg.rounded-10,
  .hb-orderform-page .white-bg.rounded-4,
  .hb-orderform-page .tld-filters-container.white-bg,
  .hb-orderform-page .view-cart-promotion-code,
  .hb-orderform-page .ordersummary-coodiv-box,
  .hb-orderform-page .domain-pricing,
  .hb-orderform-page .products .border.rounded-20,
  .hb-orderform-page .secondary-cart-body,
  .hb-orderform-page #frmDomainTransfer .px-9.pb-10 {
    padding: 16px !important;
  }

  .hb-products-header {
    padding-bottom: 12px;
  }
  .hb-product-card {
    padding: 18px 18px 16px 18px;
  }
  .hb-price-amount {
    font-size: 2.05rem;
  }
  .hb-product-card__cta {
    min-height: 48px;
  }
}

/* Store/cart layout guard for guest-facing orderforms. */
.hb-orderform-page,
.hb-orderform-page *,
.hb-orderform-page *::before,
.hb-orderform-page *::after {
  box-sizing: border-box;
}

.hb-orderform-page,
.hb-orderform-page .hb-surface,
.hb-orderform-page .container,
.hb-orderform-page .container-fluid,
.hb-orderform-page .row,
.hb-orderform-page [class*="col-"],
#hbProductGrid,
#hbProductGrid .hb-product-col,
#hbProductGrid .hb-hp-card,
#hbProductGrid .hb-hp-body,
#hbProductGrid .hb-product-card {
  max-width: 100%;
  min-width: 0;
}

.hb-orderform-page {
  width: 100%;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  .hb-orderform-page {
    overflow-x: hidden;
  }
}

.hb-orderform-page .hb-surface {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

#hbProductGrid.hb-hp-grid {
  width: 100%;
  margin: 0;
  padding: 0;
}

#hbProductGrid .hb-product-col {
  display: flex;
  min-width: min(100%, 260px);
}

#hbProductGrid .hb-hp-card,
#hbProductGrid .hb-hp-body,
#hbProductGrid .hb-product-card {
  min-width: 0;
}

#hbProductGrid .hb-hp-name,
#hbProductGrid .hb-hp-feat-text,
#hbProductGrid .hb-hp-price,
#hbProductGrid .hb-hp-renew,
.hb-orderform-page .hb-product-card__title,
.hb-orderform-page .hb-product-card__desc {
  overflow-wrap: anywhere;
}

#hbProductGrid .hb-hp-btn,
.hb-orderform-page .hb-product-card__cta {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.order-form-menu-scroller.white-bg {
  max-width: 100%;
}

.order-form-menu-scroller.white-bg nav.nav,
.hb-orderform-page .nav {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 575.98px) {
  .hb-orderform-page .hb-surface {
    padding: 16px;
    border-radius: 12px;
  }

  #hbProductGrid.hb-hp-grid {
    gap: 16px;
  }

  #hbProductGrid .hb-product-col {
    flex-basis: 100%;
    min-width: 0;
  }

  #hbProductGrid .hb-hp-body {
    padding: 18px;
  }
}
