/* GhanAmerica storefront overrides shared by every approved visual concept. */

/* The supplied logo is transparent, so the old colored logo panel is removed
   while its established header footprint is preserved. */
.rp-logo-wrap,
.rp-logo-wrap:hover,
.rp-logo-wrap:focus-visible {
  background: transparent !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline-offset: 3px;
  padding: 0 !important;
}

.rp-logo-wrap .rp-logo {
  display: block;
  height: auto !important;
  max-height: 100% !important;
  max-width: 100% !important;
  object-fit: contain;
  width: auto !important;
}

.shipping-standard-label {
  font-weight: 800;
}

.shipping-free-word {
  color: #8b0000;
  font-weight: 950;
  letter-spacing: .025em;
}

/* Chat is not a GhanAmerica feature. This also suppresses any stale launcher
   markup held by a previously cached page while the removed script expires. */
.rp-chat-launcher,
.rp-chat-shell,
.contact-chat-button {
  display: none !important;
}

/* This element follows search in the DOM so visual, keyboard, and
   screen-reader order all place it immediately before Sign in. */
.ga-currency-toggle {
  align-items: center;
  align-self: stretch;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 12px;
  color: #fff;
  display: grid;
  flex: 0 0 auto;
  gap: 2px 7px;
  grid-template-columns: auto auto;
  min-width: 134px;
  padding: 5px 7px;
}

.ga-currency-toggle-label {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
}

.ga-currency-toggle-buttons {
  align-items: center;
  background: rgba(0, 0, 0, .28);
  border-radius: 8px;
  display: flex;
  gap: 2px;
  grid-column: 2;
  grid-row: 1 / span 2;
  padding: 2px;
}

.ga-currency-toggle button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  min-height: 28px;
  padding: 5px 8px;
}

.ga-currency-toggle button:hover,
.ga-currency-toggle button:focus-visible {
  background: rgba(255, 255, 255, .16);
  outline: 2px solid rgba(255, 255, 255, .76);
  outline-offset: 1px;
}

.ga-currency-toggle button.is-active,
.ga-currency-toggle button[aria-pressed="true"] {
  background: #fff4c5;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .24);
  color: #2b2014;
}

.ga-currency-toggle button:disabled {
  cursor: not-allowed;
  opacity: .65;
}

.ga-currency-rate-status {
  display: none !important;
  font-size: 9px;
  line-height: 1.1;
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ga-currency-toggle.has-warning .ga-currency-rate-status {
  color: #ffe08a;
}

/* BlackStar Express eligibility and checkout treatment. */
.blackstar-express-badge,
.shipping-option-blackstar-line {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 7px;
  max-width: 100%;
}

.blackstar-express-badge {
  background: #fff;
  border: 1px solid rgba(20, 24, 27, .16);
  border-radius: 9px;
  box-shadow: 0 4px 12px rgba(20, 24, 27, .10);
  padding: 4px 6px;
}

.blackstar-express-logo {
  display: block;
  height: 20px;
  max-width: min(178px, 56vw);
  object-fit: contain;
  width: auto;
}

.blackstar-express-eligible {
  background: #ecfdf3;
  border: 1px solid #a6f4c5;
  border-radius: 999px;
  color: #027a48;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .045em;
  line-height: 1;
  padding: 5px 7px;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-card .blackstar-express-badge,
.product-tile .blackstar-express-badge {
  margin-top: 7px;
}

.product-card .blackstar-express-logo,
.product-tile .blackstar-express-logo {
  height: 16px;
  max-width: 138px;
}

.shipping-option.express .shipping-option-blackstar-line,
.cart-shipping-option.express .shipping-option-blackstar-line {
  margin-bottom: 3px;
}

.shipping-option.express .blackstar-express-badge,
.cart-shipping-option.express .blackstar-express-badge {
  border-color: rgba(199, 164, 86, .42);
  box-shadow: none;
}

@media (max-width: 1100px) {
  .ga-currency-rate-status { display: none; }
  .ga-currency-toggle { min-width: 116px; }
}

@media (min-width: 901px) {
  .rp-logo-wrap {
    aspect-ratio: 1395 / 509;
    flex: 0 1 clamp(180px, 16.6667vw, 273.333px) !important;
    height: auto !important;
    min-width: clamp(180px, 16.6667vw, 273.333px) !important;
    width: clamp(180px, 16.6667vw, 273.333px) !important;
  }

  .rp-logo-wrap .rp-logo {
    max-height: none !important;
    width: 100% !important;
  }
}

@media (max-width: 900px) {
  .rp-search { order: 20; }
  .ga-currency-toggle {
    align-self: center;
    min-height: 46px;
    order: 21;
  }
  .rp-topbar .rp-toplink,
  .rp-topbar .rp-cart-link,
  .rp-topbar .gift-balance-link {
    order: 30;
  }
}

@media (max-width: 560px) {
  .ga-currency-toggle {
    flex: 1 1 100%;
    grid-template-columns: auto 1fr;
    width: 100%;
  }
  .ga-currency-toggle-buttons { justify-self: end; }
  .ga-currency-rate-status {
    display: none !important;
    max-width: none;
  }
}

/* Visible only when the storefront cannot receive live Shipping Manager values. */
.ga-shipping-values-banner {
  background: #8b1d1d;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
  box-sizing: border-box;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .01em;
  line-height: 1.35;
  padding: 10px 16px;
  text-align: center;
  width: 100%;
}

.ga-shipping-values-banner[hidden] {
  display: none !important;
}
