/* DealOffer Merchant Badges */
.dealoffer-merchant-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  max-width: calc(100% - 92px);
  padding: 6px 12px;
  border: 1px solid #F0E3E6;
  border-radius: 8px;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(133, 13, 22, 0.08);
  color: #333E48;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.2;
  pointer-events: none;
}

.dealoffer-merchant-badge img.dealoffer-merchant-logo,
.tf-products .item .image .dealoffer-merchant-badge img.dealoffer-merchant-logo,
.products li .inner .dealoffer-merchant-badge img.dealoffer-merchant-logo {
  display: block !important;
  flex: 0 0 auto !important;
  width: auto !important;
  height: auto !important;
  max-width: 80px !important;
  max-height: 40px !important;
  object-fit: contain !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.dealoffer-merchant-name {
  display: block;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Logo-backed badges stay icon-only, matching the existing merchant badges. */
.dealoffer-merchant-badge:has(img.dealoffer-merchant-logo) .dealoffer-merchant-name {
  display: none;
}

.tf-products .item .image,
.products li .inner,
.products li .product-thumbnail {
  position: relative;
}

.tf-products .item .image .dealoffer-merchant-badge {
  flex-direction: column;
  gap: 4px;
  max-width: calc(100% - 92px);
  padding: 6px 8px;
  text-align: center;
}

.tf-products .item .image .dealoffer-merchant-badge .dealoffer-merchant-name {
  max-width: 100%;
}

.tf-products .item .image .dealoffer-merchant-badge img.dealoffer-merchant-logo {
  max-width: 44px !important;
  max-height: 32px !important;
}

.tf-products .item .image.has-dealoffer-merchant .wrap-btn-action {
  top: 80px !important;
}

.products li .inner:has(.dealoffer-merchant-badge) .wrap-btn-action {
  top: 70px !important;
}

.tf-products .item .content .dealoffer-deal-now,
.dealoffer-deal-now {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 12px;
  padding: 9px 14px;
  border-radius: 999px;
  background: #A1020C;
  color: #FFFFFF !important;
  font-family: "Rubik", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.18s ease;
}

.tf-products .item .content .dealoffer-deal-now:hover,
.dealoffer-deal-now:hover {
  background: #8F060D;
  color: #FFFFFF !important;
}

.dealoffer-deal-now:focus-visible {
  outline: 3px solid rgba(161, 2, 12, 0.35);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .dealoffer-merchant-badge {
    top: 8px;
    right: 8px;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    max-width: calc(100% - 92px);
    padding: 6px 8px;
    font-size: 9.5px;
    text-align: center;
  }

  .dealoffer-merchant-badge img.dealoffer-merchant-logo,
  .tf-products .item .image .dealoffer-merchant-badge img.dealoffer-merchant-logo,
  .products li .inner .dealoffer-merchant-badge img.dealoffer-merchant-logo {
    max-width: 44px !important;
    max-height: 32px !important;
  }

  .dealoffer-merchant-name {
    max-width: 100%;
  }

  .tf-products .item .image.has-dealoffer-merchant .wrap-btn-action {
    top: 76px !important;
  }

  .products li .inner:has(.dealoffer-merchant-badge) .wrap-btn-action {
    top: 76px !important;
  }

  .dealoffer-deal-now {
    margin-top: 10px;
    padding: 8px 12px;
    font-size: 12px;
  }
}

/* Hide the availability shell when an online deal has no destination yet. */
.paf-availability--online:empty {
  display: none;
}

/* Merchant information on single product pages */
.dealoffer-product-merchant {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.dealoffer-product-merchant-label {
  color: #73787D;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dealoffer-product-merchant-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dealoffer-product-merchant-value img.dealoffer-merchant-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 56px;
  max-height: 34px;
  object-fit: contain;
}

.dealoffer-product-merchant-name {
  color: #333E48;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}
