/* Danny's Cycles - styling for the cart page accessories cross-sell
   banner added by cart-accessories-banner.js. Explicit px values
   throughout, per the site's font-size fix (relative units inherit
   the CMS's small base font size). Matches the cart's existing
   Checkout button color (#B30000) and font (Roboto). */

.dc-accessories-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: #F7F5F3;
  border: 1px solid #E0DCD8;
  border-radius: 4px;
  padding: 16px 20px;
  margin: 20px 0;
  font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.dc-accessories-banner-img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  flex-shrink: 0;
  background-color: #FFFFFF;
  border: 1px solid #E0DCD8;
  border-radius: 4px;
}

.dc-accessories-banner-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.dc-accessories-banner-headline {
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0 0 4px 0;
}

.dc-accessories-banner-text {
  font-size: 14px;
  line-height: 20px;
  color: #4A4A4A;
  margin: 0 0 12px 0;
}

.dc-accessories-banner-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.dc-accessories-banner-cta {
  display: inline-block;
  background-color: #B30000;
  /* !important needed: the cart page's global link-color rule
     otherwise overrides this and the button text disappears
     (red text on a red background) - confirmed on the live site. */
  color: #FFFFFF !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  padding: 10px 20px;
  border-radius: 4px;
  white-space: nowrap;
}

.dc-accessories-banner-cta:hover,
.dc-accessories-banner-cta:focus {
  background-color: #8F0000;
  color: #FFFFFF !important;
  text-decoration: none !important;
}

.dc-accessories-banner-cta:focus-visible {
  outline: 2px solid #1A1A1A;
  outline-offset: 2px;
}

.dc-accessories-banner-link {
  font-size: 14px;
  color: #B30000 !important;
  text-decoration: underline !important;
}

.dc-accessories-banner-link:hover,
.dc-accessories-banner-link:focus {
  color: #8F0000 !important;
}

/* Stack on narrow viewports so the image doesn't crowd the copy */
@media (max-width: 480px) {
  .dc-accessories-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .dc-accessories-banner-img {
    width: 100%;
    height: 140px;
  }
}
