/* Dynamic Offers System — badge + modal
   Matches the site's captured design: accent #FA5114, Inter, 10px radius,
   soft card shadow 0 4px 12px rgba(0,0,0,.07) */

:root {
  --ttz-accent: #FA5114;
  --ttz-accent-dark: #d8420c;
  --ttz-ink: #232323;
  --ttz-radius: 10px;
  --ttz-radius-sm: 5px;
  --ttz-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  --ttz-success: #81d742;
}

/* ---------- Badge (near title/price) ---------- */
.ttz-offers-badge {
  margin: 14px 0;
}

.ttz-offers-badge__trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  background: linear-gradient(90deg, rgba(250, 81, 20, 0.08), rgba(250, 81, 20, 0.03));
  border: 1px solid rgba(250, 81, 20, 0.35);
  border-radius: var(--ttz-radius);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.ttz-offers-badge__trigger:hover {
  background: linear-gradient(90deg, rgba(250, 81, 20, 0.14), rgba(250, 81, 20, 0.05));
  box-shadow: var(--ttz-shadow);
  transform: translateY(-1px);
}

.ttz-offers-badge__trigger:active {
  transform: translateY(0);
}

.ttz-offers-badge__icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.ttz-offers-badge__text {
  font-weight: 600;
  font-size: 14px;
  color: var(--ttz-ink);
  flex-grow: 1;
}

.ttz-offers-badge__cta {
  font-weight: 600;
  font-size: 13px;
  color: var(--ttz-accent);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ttz-offers-badge__arrow {
  transition: transform 0.15s ease;
  display: inline-block;
}

.ttz-offers-badge__trigger:hover .ttz-offers-badge__arrow {
  transform: translateX(3px);
}

/* ---------- Modal ---------- */
.ttz-offers-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ttz-offers-modal[hidden] {
  display: none;
}

.ttz-offers-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 15, 10, 0.55);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.ttz-offers-modal.is-open .ttz-offers-modal__overlay {
  opacity: 1;
}

.ttz-offers-modal__panel {
  position: relative;
  background: #fff;
  border-radius: var(--ttz-radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 28px 24px 24px;
  transform: translateY(16px) scale(0.97);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.ttz-offers-modal.is-open .ttz-offers-modal__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.ttz-offers-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: #f4f4f4;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: var(--ttz-ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.ttz-offers-modal__close:hover {
  background: #ebebeb;
}

.ttz-offers-modal__title {
  margin: 0 0 18px;
  font-size: 19px;
  font-weight: 600;
  color: var(--ttz-ink);
}

.ttz-offers-modal__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- Offer card ---------- */
.ttz-offer-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 9px;
  box-shadow: var(--ttz-shadow);
  padding: 14px 16px;
}

.ttz-offer-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.ttz-offer-card__icon {
  font-size: 17px;
}

.ttz-offer-card__title {
  font-weight: 600;
  font-size: 15px;
  color: var(--ttz-ink);
}

.ttz-offer-card__desc {
  margin: 0 0 10px;
  font-size: 13.5px;
  color: #555;
  line-height: 1.45;
}

.ttz-offer-card__note {
  margin: 0;
  font-size: 12.5px;
  color: #888;
  font-style: italic;
}

.ttz-offer-card__coupon {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fafafa;
  border: 1px dashed #ddd;
  border-radius: var(--ttz-radius-sm);
  padding: 8px 10px;
}

.ttz-offer-card__coupon-label {
  font-size: 12px;
  color: #888;
  flex-shrink: 0;
}

.ttz-offer-card__coupon-code {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ttz-accent);
  background: none;
  flex-grow: 1;
  letter-spacing: 0.3px;
}

.ttz-offer-card__copy {
  flex-shrink: 0;
  border: none;
  background: var(--ttz-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--ttz-radius-sm);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.ttz-offer-card__copy:hover {
  background: var(--ttz-accent-dark);
}

.ttz-offer-card__copy:active {
  transform: scale(0.96);
}

.ttz-offer-card__copy.is-copied {
  background: var(--ttz-success);
}

/* ---------- Toast ---------- */
.ttz-offers-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 12px);
  background: var(--ttz-ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  z-index: 100000;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ttz-offers-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Mobile ---------- */
@media (max-width: 480px) {
  /* Full-bleed: break out of the summary column's side padding
     so the badge spans the entire viewport edge-to-edge. */
  .ttz-offers-badge {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .ttz-offers-badge__trigger {
    flex-wrap: nowrap;
    padding: 12px 14px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .ttz-offers-badge__text {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ttz-offers-badge__cta {
    font-size: 12px;
    gap: 3px;
  }

  .ttz-offers-modal__panel {
    padding: 24px 18px 20px;
  }
}
