/* ==========================================================================
   Cook's Direct - product page callouts (stage prototype)
   Ticket #13024888
   Remove this block to roll back the styling. Markup is added by
   /assets/site/js/ckdr-product-callouts.js.
   ========================================================================== */

#product-main .ckdr-callouts {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 18px 0 22px;
}

#product-main .ckdr-callout {
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 2px;
  padding: 16px 18px;
  color: #58585a;
  font-size: 13px;
  line-height: 1.45;
}

#product-main .ckdr-callout--main {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

#product-main .ckdr-callout--main.ckdr-callout--no-image {
  grid-template-columns: minmax(0, 1fr);
}

#product-main .ckdr-callout__image {
  display: block;
  width: 86px;
  height: 86px;
  max-width: none;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
}

#product-main .ckdr-callout__copy {
  min-width: 0;
}

#product-main .ckdr-callout__headline {
  margin: 0 0 6px;
  color: #2e2d2e;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: none;
  letter-spacing: normal;
}

#product-main .ckdr-callout__body {
  margin: 0 0 10px;
  color: #58585a;
  font-size: 13px;
  line-height: 1.45;
}

#product-main .ckdr-callout__body:last-child {
  margin-bottom: 0;
}

#product-main .ckdr-callout__button {
  display: inline-block;
  margin: 2px 0 0;
  padding: 7px 14px 6px;
  border: 1px solid #df3726;
  border-radius: 2px;
  background: #fff;
  color: #df3726;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-transform: none;
  cursor: pointer;
}

#product-main .ckdr-callout__button:hover,
#product-main .ckdr-callout__button:focus {
  background: #df3726;
  color: #fff;
  text-decoration: none;
}

#product-main .ckdr-callout__button:focus-visible {
  outline: 2px solid #2e2d2e;
  outline-offset: 2px;
}

#product-main .ckdr-callout--addon .ckdr-callout__headline {
  margin-bottom: 5px;
}

/* Stage-only preview strip (never rendered on production hosts). */
#product-main .ckdr-callout__preview {
  margin: 0;
  padding: 6px 10px;
  background: #2e2d2e;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Side-by-side with the purchase box (desktop)
   The callouts sit to the right of the part number / price / quantity /
   Add to Cart box, so the description below starts higher up the page.
   The purchase box narrows to its content width (the theme's 3fr / 2fr grid
   left a large empty column inside it) and the callouts take the rest of the
   row. Below this width the original stacked layout is kept unchanged.
   -------------------------------------------------------------------------- */
@media (min-width: 1300px) {
  #product-main .ckdr-purchase-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0 22px;
  }

  #product-main .ckdr-purchase-row > .well.product-purchase {
    display: block;
    flex: 0 0 auto;
    width: clamp(330px, 44%, 400px);
    margin-bottom: 22px;
  }

  /* Slightly tighter label column so the values and the shipping line
     have room in the narrower purchase box. */
  #product-main .ckdr-purchase-row .product-options dt {
    width: 140px;
  }

  #product-main .ckdr-purchase-row .product-options dd,
  #product-main .ckdr-purchase-row .product-quantity .controls {
    margin-left: 150px;
  }

  /* The theme indents the Add to Cart block by 200px, which is too much
     for the narrower purchase box: the shipping line would wrap. Drop the
     indent and let the button use the full column width. */
  #product-main .ckdr-purchase-row .product-purchase .form-actions {
    padding-left: 0;
  }

  #product-main .ckdr-purchase-row .product-purchase .form-actions input[type="submit"] {
    width: 100%;
    min-width: 0;
    margin-bottom: 10px;
  }

  /* Products with the free-shipping icon position it absolutely in the
     actions block's left gutter; keep a gutter only when it exists. */
  #product-main .ckdr-purchase-row .product-purchase .form-actions:has(.free-shipping-container) {
    padding-left: 44px;
  }

  #product-main .ckdr-purchase-row > .ckdr-callouts {
    flex: 1 1 0;
    min-width: 280px;
    margin: 0 0 22px;
  }

  #product-main .ckdr-purchase-row > .ckdr-callouts .ckdr-callout {
    padding: 14px 15px;
  }

  #product-main .ckdr-purchase-row > .ckdr-callouts .ckdr-callout--main {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
  }

  #product-main .ckdr-purchase-row > .ckdr-callouts .ckdr-callout__image {
    width: 64px;
    height: 64px;
  }

  #product-main .ckdr-purchase-row > .ckdr-callouts .ckdr-callout__headline {
    font-size: 14px;
  }

  #product-main .ckdr-purchase-row > .ckdr-callouts .ckdr-callout__body {
    font-size: 12.5px;
  }

  /* Safety: if the storefront later appends the description or the
     manufacturer logo next to the purchase box, keep them full width. */
  #product-main .ckdr-purchase-row > #product-tabs,
  #product-main .ckdr-purchase-row > #mfg-logo {
    flex: 1 0 100%;
    order: 3;
  }
}

@media (max-width: 767px) {
  #product-main .ckdr-callout {
    padding: 14px;
  }

  #product-main .ckdr-callout--main {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
  }

  #product-main .ckdr-callout__image {
    width: 64px;
    height: 64px;
  }

  #product-main .ckdr-callout__headline {
    font-size: 14px;
  }
}
