/* Merchant store offers popup — white modal with unified offer cards */
.cr-merchant-offers-modal-wrap .modal-backdrop.show {
  opacity: 0.45;
}

.cr-merchant-offers-modal__dialog {
  max-width: min(1120px, calc(100vw - 24px));
  margin: 12px auto;
}

.cr-merchant-offers-modal {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  background: #fff;
}

.cr-merchant-offers-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}

.cr-merchant-offers-modal__head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.cr-merchant-offers-modal__logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  background: #f1f5f9;
  flex-shrink: 0;
}

.cr-merchant-offers-modal__title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: 700;
  color: #1a1a1a;
}

.cr-merchant-offers-modal__subtitle {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 0.92rem;
}

.cr-merchant-offers-modal__close {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 1.75rem;
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
}

.cr-merchant-offers-modal__close:hover,
.cr-merchant-offers-modal__close:focus-visible {
  color: #1e293b;
  outline: 2px solid #94a3b8;
  outline-offset: 2px;
}

.cr-merchant-offers-modal__body {
  padding: 16px 20px 24px;
  background: #fff;
}

.cr-merchant-offers-modal__loading,
.cr-merchant-offers-modal__empty {
  margin: 0;
  padding: 24px 12px;
  text-align: center;
  color: #64748b;
}

.cr-merchant-offers-modal__grid {
  margin: 0;
}

.cr-merchant-offers-modal__grid .ulo-card {
  min-height: 380px;
}

.ulo-card__more-offers {
  display: block;
  width: 100%;
  margin-top: 10px;
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ulo-card__more-offers:hover,
.ulo-card__more-offers:focus-visible {
  border-color: #64748b;
  background: #f8fafc;
  color: #1e293b;
  outline: 2px solid #94a3b8;
  outline-offset: 2px;
}

.cr-cert-card__more-offers {
  display: block;
  width: 100%;
  margin-top: 8px;
  min-height: 44px;
  padding: 0.55rem 0.85rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

.cr-cert-card__more-offers:hover,
.cr-cert-card__more-offers:focus-visible {
  border-color: #64748b;
  background: #f8fafc;
  color: #1e293b;
}

/* Bouton « Voir plus d'offres » — pleine largeur, en haut de la boîte */
.cr-merchant-offers-trigger-wrap--top {
  width: 100%;
  margin: 0 0 14px;
}

.cr-merchant-offers-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  border: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.cr-merchant-offers-btn--promo {
  background: #c41230;
  color: #fff;
}

.cr-merchant-offers-btn--promo:hover,
.cr-merchant-offers-btn--promo:focus-visible {
  background: #9e0e26;
  color: #fff;
  outline: 2px solid #9e0e26;
  outline-offset: 2px;
}

.cr-merchant-offers-btn--certificate {
  background: #0b3d66;
  color: #fff;
}

.cr-merchant-offers-btn--certificate:hover,
.cr-merchant-offers-btn--certificate:focus-visible {
  background: #082c4a;
  color: #fff;
  outline: 2px solid #082c4a;
  outline-offset: 2px;
}

/* Offre : s’aligner sur la largeur utile de .detail-slider-right */
.detail-slider-right > .offer-more-offers--top,
.detail-slider-right > .cr-merchant-offers-trigger-wrap {
  width: 100%;
  max-width: 100%;
  margin: 0 0 12px;
}

@media (max-width: 575px) {
  .cr-merchant-offers-modal__dialog {
    max-width: calc(100vw - 12px);
    margin: 6px auto;
  }

  .cr-merchant-offers-modal__body {
    padding: 12px 14px 18px;
  }
}
