/* ==========================================================================
   GHSM – sitewide dismissible quote / bulk-order banner
   Loaded by wp-content/mu-plugins/ghsm-quote-banner.php
   Reuses .ghsm-quote-strip / .ghsm-btn from ghsm-woocommerce.css for the content;
   this file only adds the fixed positioning and the close button.
   ========================================================================== */

.ghsm-quote-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  box-shadow: 0 -8px 24px rgba(16, 24, 40, .22);
}
.ghsm-quote-banner[hidden] { display: none; }

/* Reserve room so the close button never overlaps the heading or actions. */
.ghsm-quote-banner .ghsm-quote-strip__in { padding-right: 56px; }

/* Elementor's kit CSS sets .elementor-kit-N a { color } and .elementor-kit-N button
   { background-color, color, border-radius, ... } at specificity (0,1,1) — on some pages
   (shop/cart/etc.) its stylesheet loads AFTER this one, so an equal-specificity selector here
   (e.g. a bare button.ghsm-quote-banner__close, also (0,1,1)) loses that tie on those pages even
   though it wins on others. Scoping every override to .ghsm-quote-banner pushes it to (0,2,1),
   which beats the kit rule outright regardless of load order. */
.ghsm-quote-banner a.ghsm-btn--red,
.ghsm-quote-banner a.ghsm-btn--red:hover,
.ghsm-quote-banner a.ghsm-btn--ghost-light,
.ghsm-quote-banner a.ghsm-btn--ghost-light:hover {
  color: #fff;
}
.ghsm-quote-banner a.ghsm-btn--ghost-light,
.ghsm-quote-banner a.ghsm-btn--ghost-light:hover {
  border-color: rgba(255, 255, 255, .55);
}

.ghsm-quote-banner button.ghsm-quote-banner__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .15s ease;
}
.ghsm-quote-banner button.ghsm-quote-banner__close:hover,
.ghsm-quote-banner button.ghsm-quote-banner__close:focus-visible {
  background: rgba(255, 255, 255, .18);
}
.ghsm-quote-banner button.ghsm-quote-banner__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* --------------------------------------------------------------------------
   Phones — the banner is fixed over the page until it is dismissed, so at the
   desktop type scale it was covering 37% of a 390x844 screen. Tighten the type,
   clamp the paragraph and sit the two actions side by side instead of stacked.
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  /* The close button only has to clear the heading, so the reserve moves off the
     container and onto the text block — the actions then get the full width. */
  .ghsm-quote-banner .ghsm-quote-strip__in { padding: 14px 16px; gap: 12px; }
  .ghsm-quote-banner .ghsm-quote-strip__in > div:first-child { padding-right: 44px; }

  .ghsm-quote-banner .ghsm-quote-strip h2 { font-size: 20px; line-height: 1.25; margin-bottom: 5px; }
  .ghsm-quote-banner .ghsm-quote-strip p {
    font-size: 13px; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }

  .ghsm-quote-banner .ghsm-quote-strip__actions { width: 100%; gap: 10px; flex-wrap: nowrap; }
  .ghsm-quote-banner .ghsm-quote-strip__actions a.ghsm-btn {
    min-width: 0; min-height: 44px;
    padding: 11px 16px; font-size: 14px;
  }

  .ghsm-quote-banner button.ghsm-quote-banner__close { top: 10px; right: 10px; width: 36px; height: 36px; font-size: 20px; }
}

@media (max-width: 560px) {
  .ghsm-quote-banner .ghsm-quote-strip h2 { font-size: 17px; }
  /* Only once the row is actually tight is it worth the two buttons splitting it evenly. */
  .ghsm-quote-banner .ghsm-quote-strip__actions a.ghsm-btn { flex: 1 1 0; padding: 11px 10px; font-size: 13.5px; }
}

@media (max-width: 400px) {
  .ghsm-quote-banner .ghsm-quote-strip p { -webkit-line-clamp: 1; }
  .ghsm-quote-banner .ghsm-quote-strip__actions a.ghsm-btn { font-size: 13px; padding: 11px 8px; }
}
