/* fleet-deals-site.css — RetailMeNot-style shop/coupon layout (deals-site template) */

.deals-site-page {
  --deals-accent: #0d9488;
  --deals-accent-dark: #0f766e;
  --deals-surface: #f8fafc;
  --deals-border: #e2e8f0;
  --deals-text-muted: #64748b;
}

.deals-main {
  padding: 2rem 0 4rem;
}

.deals-hero {
  margin-bottom: 1.75rem;
}

.deals-hero--index {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.deals-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--deals-accent);
}

.deals-eyebrow a {
  color: inherit;
  text-decoration: none;
}

.deals-eyebrow a:hover {
  text-decoration: underline;
}

.deals-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
}

.deals-stats,
.deals-lead {
  margin: 0;
  color: var(--deals-text-muted);
  font-size: 1rem;
}

.deals-intro {
  max-width: 42rem;
  margin-bottom: 2rem;
  line-height: 1.65;
  color: #334155;
}

.deals-intro p {
  margin: 0 0 0.75rem;
}

.deals-intro em {
  font-size: 0.9rem;
  color: var(--deals-text-muted);
}

.deals-coupons h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.deals-coupon-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.deals-coupon-card {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  background: #fff;
  border: 1px solid var(--deals-border);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.deals-coupon-card__body {
  flex: 1 1 14rem;
  min-width: 0;
}

.deals-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.deals-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.deals-badge--verified {
  background: #dcfce7;
  color: #166534;
}

.deals-badge--expiring {
  background: #fef3c7;
  color: #92400e;
}

.deals-coupon-desc {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
}

.deals-coupon-expiry {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--deals-text-muted);
}

.deals-coupon-card__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0.65rem;
  flex: 0 0 auto;
  min-width: 10rem;
}

.deals-code-row {
  display: flex;
  align-items: stretch;
  border: 1px dashed var(--deals-accent);
  border-radius: 8px;
  overflow: hidden;
  background: var(--deals-surface);
}

.deals-code {
  flex: 1;
  padding: 0.55rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: transparent;
}

.deals-copy-btn {
  border: 0;
  padding: 0.55rem 0.85rem;
  background: #fff;
  color: var(--deals-accent-dark);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  border-left: 1px dashed var(--deals-accent);
}

.deals-copy-btn:hover {
  background: #f0fdfa;
}

.deals-copy-btn.is-copied {
  color: #166534;
}

.deals-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  border-radius: 8px;
  background: var(--deals-accent);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s ease;
}

.deals-cta-btn:hover {
  background: var(--deals-accent-dark);
}

.deals-store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 1rem;
  max-width: 960px;
  margin: 0 auto;
}

.deals-store-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  min-height: 11.3125rem;
  padding: 0.85rem 0.65rem 0.75rem;
  background: #fff;
  border: 1px solid var(--deals-border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.deals-store-card:hover {
  border-color: var(--deals-accent);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.12);
}

.deals-store-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 12px;
  background: #fff;
  color: var(--deals-accent-dark);
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
}

.deals-store-card__logo--img {
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--deals-border);
  padding: 0.45rem;
}

.deals-store-card__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
}

.deals-store-card__name {
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1.25;
  text-align: center;
}

.deals-store-card__meta {
  font-size: 0.78rem;
  color: var(--deals-text-muted);
}

.deals-empty {
  margin: 2rem 0;
  padding: 2rem;
  text-align: center;
  color: var(--deals-text-muted);
  background: var(--deals-surface);
  border-radius: 12px;
  border: 1px dashed var(--deals-border);
}

@media (min-width: 640px) {
  .deals-coupon-card {
    flex-wrap: nowrap;
  }
}

/* ——— deals-home (RMN-style homepage) ——— */

.deals-home-hero {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 45%, #14b8a6 100%);
  color: #fff;
  padding: 2.5rem 0 3rem;
  margin-bottom: 0.5rem;
}

.deals-home-hero__inner {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.deals-home-hero .deals-eyebrow {
  color: rgba(255, 255, 255, 0.85);
}

.deals-home-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  line-height: 1.12;
  color: #fff;
}

.deals-home-hero__lead {
  margin: 0 0 1.35rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}

.deals-home-search input {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  display: block;
  padding: 0.85rem 1.1rem;
  border: 0;
  border-radius: 999px;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.15);
}

.deals-home-search input:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.deals-home-stats-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  margin: 1.25rem 0 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.deals-home-section {
  margin-bottom: 2.75rem;
}

.deals-home-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.deals-home-section__head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.deals-home-section__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--deals-accent-dark);
  text-decoration: none;
}

.deals-home-section__link:hover {
  text-decoration: underline;
}

.deals-home-offers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.deals-home-offer__link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--deals-border);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.deals-home-offer__link:hover {
  border-color: var(--deals-accent);
  box-shadow: 0 2px 10px rgba(13, 148, 136, 0.1);
}

.deals-home-offer__logo {
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--deals-border);
  padding: 0.2rem;
}

.deals-home-offer__logo--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  background: linear-gradient(135deg, #ccfbf1, #99f6e4);
  color: var(--deals-accent-dark);
}

.deals-home-offer__copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.deals-home-offer__store {
  font-weight: 700;
  font-size: 0.9rem;
}

.deals-home-offer__desc {
  font-size: 0.92rem;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deals-home-offer__link .deals-badge {
  flex-shrink: 0;
}

.deals-home-article-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.deals-home-article-list a {
  font-weight: 500;
}

.deals-home-search-empty {
  margin-top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.deals-store-card[hidden] {
  display: none !important;
}

/* ——— RMN-style carousels ——— */

.deals-carousel {
  position: relative;
  margin: 0 -0.25rem;
}

.deals-carousel__track {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.deals-carousel__track::-webkit-scrollbar {
  display: none;
}

.deals-carousel__list {
  display: flex;
  gap: 0.85rem;
  padding: 0.35rem 2.25rem 0.85rem;
  margin: 0;
}

.deals-carousel__item {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.deals-carousel__list--stores .deals-carousel__item {
  width: 8rem;
}

.deals-carousel__list--stores .deals-store-card {
  width: 100%;
  height: 100%;
}

.deals-carousel__list--deals .deals-carousel__item {
  width: 17rem;
}

.deals-carousel__btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--deals-border);
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.deals-carousel__btn:hover {
  border-color: var(--deals-accent);
  color: var(--deals-accent-dark);
}

.deals-carousel__btn--prev {
  left: 0;
}

.deals-carousel__btn--next {
  right: 0;
}

.deals-home-section__head--stack {
  flex-direction: column;
  align-items: flex-start;
}

.deals-home-section__sub {
  margin: 0.35rem 0 0;
  color: var(--deals-text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.deals-carousel-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem;
  min-height: 11.5rem;
  background: #fff;
  border: 1px solid var(--deals-border);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.deals-carousel-card--best {
  border-top: 3px solid var(--deals-accent);
}

.deals-carousel-card__merchant {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: inherit;
  text-decoration: none;
}

.deals-carousel-card__merchant:hover {
  color: var(--deals-accent-dark);
}

.deals-carousel-card__logo {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--deals-border);
  padding: 0.15rem;
}

.deals-carousel-card__logo--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ccfbf1, #99f6e4);
  color: var(--deals-accent-dark);
}

.deals-carousel-card__desc {
  margin: 0;
  flex: 1;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: #1e293b;
}

.deals-carousel-card__code-label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--deals-text-muted);
}

.deals-carousel-card__code {
  display: block;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  background: var(--deals-surface);
  border: 1px dashed var(--deals-accent);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
}

.deals-carousel-card__cta {
  margin-top: auto;
  width: 100%;
}

.deals-home-spotlight {
  padding: 1.5rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #f0fdfa 0%, #fff 100%);
  border: 1px solid #ccfbf1;
}

@media (max-width: 640px) {
  .deals-carousel__list {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .deals-carousel__btn {
    display: none;
  }
}
