/* 1HUB - phone and tablet fixes found by checking every page at 390, 768, 1024 and 1440 px.
   Loaded last in _Head.cshtml (after brand-fixes.css). Mostly phone/tablet rules; the first three
   rules (brand button colour, footer word-wrap, form label alignment) apply at every size. */

/* Buttons that still used Bootstrap's default blue (e.g. My wishlist "View") use the brand navy. */
.btn-primary {
  --bs-btn-bg: #29317D; --bs-btn-border-color: #29317D;
  --bs-btn-hover-bg: #1f2560; --bs-btn-hover-border-color: #1f2560;
  --bs-btn-active-bg: #1f2560; --bs-btn-active-border-color: #1f2560;
  --bs-btn-disabled-bg: #29317D; --bs-btn-disabled-border-color: #29317D;
}

/* Footer: an address or e-mail breaks between words, never inside one ("UA / E"). */
.footer-info-box .info-box-body a,
.footer-info-box .info-box-body p { word-break: normal; overflow-wrap: anywhere; }

/* Forms with fields side by side (checkout, popups): line the labels up along the top, so a
   field with a different height (the country picker) no longer sits lower than its neighbours. */
.contacct_form_block { align-items: flex-start; }

/* ---------- Tablet (below 992px) ---------- */
@media (max-width: 991.98px) {
  .footer-menu h4 { font-size: 18px; }
  .footer-section .footer-top { padding: 72px 0 24px; }
  /* Thank-you page: the red arrows were drawn at full size beside the title. */
  .page_breadcrum_section.thankyou_page { background-size: 96px auto; padding: 40px 1rem; }
}

/* ---------- Phone (below 576px) ---------- */
@media (max-width: 575.98px) {
  /* Footer: Quick links, Legal and Customer service side by side in two columns, smaller
     headings and phone numbers, so the footer is about half as long. */
  .footer-section-top .footer-top > .row > div:nth-child(-n+3) { flex: 0 0 auto; width: 50%; max-width: 50%; }
  .footer-section-top .footer-top > .row > div:nth-child(3) { width: 100%; max-width: 100%; }
  .footer-menu h4 { font-size: 16px; margin-bottom: 12px; }
  .footer-menu ul li a { font-size: 14px; }
  .footer-section .footer-info-box .info-box-body a.hub-phone { font-size: 17px; line-height: 26px; }
  .footer-middle .interest-box h4 { font-size: 22px; }
  .footer-section .footer-top { padding: 56px 0 24px; }

  .page_breadcrum_section.thankyou_page { background-size: 72px auto; padding: 32px 1rem; }

  /* My orders (older page): the three tabs fit, and the buttons wrap inside the card. */
  .order_tabs { width: 100%; }
  .order_tab { flex: 1 1 0; padding: 10px 8px; text-align: center; }
  .action-btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
  .action-btns .btn-view { margin: 0; }
}
