/* =========================
   VIPON Deal - Single layout
   ========================= */

:root{
  --vipon-orange: #ff9900;      /* CTA / accento */
  --vipon-orange-2: #f08804;    /* hover */
  --vipon-green: #0f3d2e;       /* verde scuro (footer/background) */
  --vipon-green-2: #0b2f23;     /* più scuro (bottom bar) */
  --vipon-text-on-dark: #eaf2ee;
  --vipon-border-on-dark: rgba(255,255,255,.12);
}

/* Base / Container */
.vipon-deal { max-width: 1180px; margin: 0 auto; padding: 18px 14px; }
.vipon-deal, .vipon-deal * { box-sizing: border-box; }
.vipon-deal { text-align: left; }

.vipon-deal img { max-width: 100%; height: auto; display: block; margin: 0; }

.vipon-deal,
.vipon-deal button,
.vipon-deal input,
.vipon-deal textarea {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

/* =========================
   HERO (top box)
   ========================= */
.vipon-deal__hero {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 18px;
  align-items: center;

  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);

  margin-bottom: 18px;
  position: relative;
}

.vipon-deal__heroMedia { max-width: 380px; }
.vipon-deal__heroImg { width: 100%; height: auto; display: block; }
.vipon-deal__heroText { padding-top: 6px; }

.vipon-deal__title { margin: 0 0 10px; line-height: 1.2; text-align: left; }

/* Badges */
.vipon-deal__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.vipon-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f2f4f7;
  font-size: 13px;
}
.vipon-badge--discount {
  background: #ffe5e5;
  color: #b42318;
  font-weight: 700;
}

/* Price row */
.vipon-deal__priceRow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.vipon-deal__priceNow { font-size: 34px; font-weight: 800; }
.vipon-deal__priceOld {
  text-decoration: line-through;
  color: #6b7280;
  font-size: 15px;
  margin-left: 8px;
}

/* Hero expiry bottom-right (underlined without <u>) */
.vipon-deal__heroExpiry {
  position: absolute;
  right: 18px;
  bottom: 14px;

  font-size: 12px;
  opacity: .78;
  text-align: right;

  text-decoration: underline;
  text-underline-offset: 3px;
}

/* If you want only the date bold without adding a thicker underline */
.vipon-deal__heroExpiry strong {
  font-weight: 800;
}

/* =========================
   Main grid
   ========================= */
.vipon-deal__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

/* Cards */
.vipon-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}

/* Content vs Features typography */
.vipon-card--content { font-size: 16px; line-height: 1.55; }
.vipon-card--content p { margin: 0 0 12px; }
.vipon-card--content p:last-child { margin-bottom: 0; }

.vipon-card--content + .vipon-card--features { margin-top: 18px; }
.vipon-deal__grid--no-content { align-items: start; }
.vipon-deal__grid--no-content .vipon-deal__sidebar { align-self: start; }

.vipon-card--features { font-size: 14px; line-height: 1.6; }
.vipon-h2 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; }

.vipon-features { margin: 10px 0 0; padding-left: 18px; }
.vipon-features li { margin: 0 0 10px; }

/* =========================
   Sidebar (CTA box)
   ========================= */
@media (min-width: 981px) {
  .vipon-deal__sidebar {
    position: sticky;
    top: 18px;
    align-self: start;
  }
}

.vipon-card--cta { border: 1px solid #eef0f3; }

/* CTA button */
.vipon-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
}

.vipon-btn--primary {
  background: var(--vipon-orange);
  color: #111;
  box-shadow: 0 6px 16px rgba(255,153,0,0.35);
}
.vipon-btn--primary:hover {
  background: var(--vipon-orange-2);
  box-shadow: 0 8px 20px rgba(255,136,4,0.45);
}

/* Coupon */
.vipon-coupon { margin: 12px 0; }
.vipon-coupon__label { font-size: 13px; opacity: .8; margin-bottom: 6px; }
.vipon-coupon__code {
  width: 100%;
  border: 1px dashed #cfd4dc;
  background: #f9fafb;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  text-align: left;
}
.vipon-coupon__text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 18px;
  font-weight: 700;
  display: block;
}
.vipon-coupon__hint { font-size: 12px; opacity: .75; margin-top: 2px; display: block; }
.vipon-coupon__status { font-size: 12px; margin-top: 6px; min-height: 16px; opacity: .85; }

/* Facts rows */
.vipon-deal__facts { margin-top: 12px; display: grid; gap: 10px; }
.vipon-fact { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.vipon-fact span { opacity: .7; }

/* Rating stars (sidebar only) */
.vipon-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}
.vipon-rating__stars {
  position: relative;
  display: inline-block;
  font-size: 18px;
  line-height: 1;
  color: #e5e7eb;
}
.vipon-rating__stars::before { content: "★★★★★"; }
.vipon-rating__fill {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  overflow: hidden;
  color: #f59e0b;
}
.vipon-rating__fill::before { content: "★★★★★"; }
.vipon-rating__value { font-size: 12px; opacity: .75; }

/* =========================
   Responsive
   ========================= */
@media (max-width: 980px) {
  .vipon-deal__hero { grid-template-columns: 1fr; }
  .vipon-deal__grid { grid-template-columns: 1fr; }

  /* On mobile, put expiry in normal flow (optional)
     If you prefer to keep it absolute even on mobile, remove this block. */
  .vipon-deal__heroExpiry {
    position: static;
    margin-top: 10px;
    text-align: left;
  }
}

.vipon-coupon__extra {
  margin-top: 8px;
  font-size: 12px;
  opacity: .85;
}

/* ================================
   Fine Footer VIPON (green/orange)
   ================================ */

.vipon-deal__priceNote {
  margin-top: 6px;
  font-size: 13px;
  opacity: .75;
}

.vipon-steps {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eef0f3;
  font-size: 13px;
}

.vipon-steps__title {
  font-weight: 700;
  margin-bottom: 8px;
}

.vipon-steps__list {
  margin: 0;
  padding-left: 18px;
  opacity: .9;
}

.vipon-steps__list li {
  margin: 0 0 6px;
}

/* Disclaimer box */
.vipon-card--disclaimer {
  margin-top: 22px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  box-shadow: none;
}

.vipon-disclaimer__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.vipon-disclaimer__icon {
  font-size: 18px;
  line-height: 1;
}

.vipon-disclaimer__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.vipon-disclaimer__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: #374151;
  opacity: .9;
}

/* Single DEAL: nasconde componenti "magazine" del tema sopra al contenuto */
.single-deal .top-bar,
.single-deal .breaking-news,
.single-deal .news-bar,
.single-deal .trending,
.single-deal .tg-header-top,
.single-deal .tg-top-header,
.single-deal .tg-news-ticker,
.single-deal .tg-breaking-news,
.single-deal .tg-trending-news,
.single-deal .breaking-news-wrapper,
.single-deal .tg-breaking-news-wrapper{
  display:none !important;
}

/* Riduce spaziature header su single deal */
.single-deal .tg-site-header{
  margin-bottom: 0 !important;
}

/* Related deals mini list (sidebar) */
.vipon-card--related {
  margin-top: 12px;
  padding: 14px;
}

.vipon-related-mini__h {
  margin: 0 0 12px 0;
  font-size: 16px;
  line-height: 1.2;
}

.vipon-related-mini__list {
  display: flex;
  flex-direction: column;
}

.vipon-related-mini__item {
  display: flex;
  gap: 10px;
  text-decoration: none;
  align-items: center;
  padding: 8px 6px;
  border-radius: 12px;
}

.vipon-related-mini__item + .vipon-related-mini__item {
  border-top: 1px solid rgba(0,0,0,.06);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.vipon-related-mini__item:hover,
.vipon-related-mini__item:focus-visible {
  background: rgba(0,0,0,.03);
  outline: none;
}

.vipon-related-mini__thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(0,0,0,.06);
}

.vipon-related-mini__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.vipon-related-mini__thumbPh {
  font-size: 14px;
  opacity: .5;
}

.vipon-related-mini__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}

.vipon-related-mini__title {
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.25;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vipon-related-mini__sub {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start; /* prezzo e sconto vicini, a sinistra */
  flex-wrap: wrap;             /* se serve va a capo senza rompere */
}

.vipon-related-mini__price {
  font-weight: 800;
  font-size: 13.5px;
  white-space: nowrap;
}

.vipon-related-mini__badge {
  font-size: 12px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 0, 0, .10);
}

/* (Opzionale) sidebar più “stabile” durante scroll */
@media (min-width: 1024px) {
  .vipon-deal__sidebar {
    position: sticky;
    top: 90px;
    align-self: flex-start;
  }
}

