/**
 * Frontend styles for the WooCommerce Lead Restrictions plugin.
 *
 * These styles are enqueued only on product pages and shop/archive pages
 * where restricted products may appear.
 */

/* -------------------------------------------------------------------------
 * Single Product Page — Restriction Notice
 * Replaces the Add to Cart button for restricted products
 * ------------------------------------------------------------------------- */

.wlr-restriction-notice {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  margin: 20px 0;
  background: linear-gradient(135deg, #fef9f0 0%, #fdf6ea 100%);
  border: 1px solid #e8d5b0;
  border-left: 4px solid #d4a843;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.wlr-restriction-notice__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: #d4a843;
  border-radius: 50%;
  color: #fff;
}

.wlr-restriction-notice__icon svg {
  width: 20px;
  height: 20px;
}

.wlr-restriction-notice__content {
  flex: 1;
  min-width: 0;
}

.wlr-restriction-notice__heading {
  display: block;
  margin: 0 0 6px;
  font-weight: 600;
  color: #7a5c1f;
  line-height: 1.4;
}

.wlr-restriction-notice__message {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #5c4a20;
}

/* -------------------------------------------------------------------------
 * Shop / Archive Loop — Compact "Contact Sales Rep" Label
 * Replaces the Add to Cart button in product grids
 * ------------------------------------------------------------------------- */

.wlr-loop-notice {
  display: inline-block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #7a5c1f;
  background: #fef9f0;
  border: 1px solid #e8d5b0;
  border-radius: 30px;
  text-align: center;
}

/* -------------------------------------------------------------------------
 * Responsive adjustments
 * ------------------------------------------------------------------------- */

@media (max-width: 480px) {
  .wlr-restriction-notice {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 16px 20px;
  }

  .wlr-restriction-notice__heading {
    font-size: 14px;
  }

  .wlr-restriction-notice__message {
    font-size: 13px;
  }
}
