/*
Theme Name: Savings Pro Child
Description: Update-safe customizations for Coupon4Sure.
Author: Coupon4Sure
Template: savings-pro
Version: 1.0.0
Text Domain: savings-pro-child
*/

/* Coupon4Sure header branding */
.primary-header {
  background: #1e2937;
}

body .site-header .primary-navigation .st-menu > li > a,
body .site-header .primary-navigation .st-menu > li > a:hover,
body .site-header .primary-navigation .st-menu > li.current-menu-item > a {
  color: #ffffff;
}

/* Dynamic Coupon Categories mega menu. */
@media screen and (min-width: 1024px) {
  body .site-header .primary-navigation .st-menu > li > a {
    transform: scale(1);
    transform-origin: center;
    transition: color 0.2s ease, transform 0.2s ease;
  }

  body .site-header .primary-navigation .st-menu > li > a:hover,
  body .site-header .primary-navigation .st-menu > li > a:focus-visible {
    transform: scale(0.96);
  }

  body .primary-header .site-navigation,
  body .primary-header .primary-navigation,
  body .primary-header .st-menu,
  body .primary-header .c4s-mega-menu-item {
    position: static;
  }

  body .primary-header .c4s-mega-menu {
    position: absolute;
    top: calc(100% - 1px);
    left: 50%;
    z-index: 9999;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 4px;
    width: 100%;
    max-width: 1180px;
    margin: 0;
    padding: 14px 28px 18px;
    border-top: 3px solid #1e88e5;
    border-radius: 0 0 8px 8px;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%);
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  body .primary-header .c4s-mega-menu-item:hover > .c4s-mega-menu,
  body .primary-header .c4s-mega-menu-item:focus-within > .c4s-mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%);
  }

  body .primary-header .c4s-mega-menu-item > a {
    position: relative;
  }

  body .primary-header .c4s-mega-menu-item > a::before {
    position: absolute;
    bottom: -8px;
    left: 50%;
    z-index: 10000;
    width: 0;
    height: 0;
    border-right: 6px solid transparent;
    border-left: 6px solid transparent;
    border-top: 7px solid #1e88e5;
    content: "";
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%);
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  body .primary-header .c4s-mega-menu-item:hover > a::before,
  body .primary-header .c4s-mega-menu-item:focus-within > a::before {
    opacity: 1;
    visibility: visible;
  }

  body .primary-header .c4s-mega-menu > li {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    white-space: normal;
  }

  body .primary-header .c4s-mega-menu .c4s-mega-menu-heading {
    grid-column: 1 / -1;
    margin-bottom: 4px;
    color: #1e88e5;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
  }

  body .primary-header .c4s-mega-menu .c4s-mega-menu-category > a {
    display: block;
    padding: 4px 0;
    color: #073b66;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    text-transform: none;
    white-space: normal;
    transition: color 0.25s ease, transform 0.25s ease;
  }

  body .primary-header .c4s-mega-menu .c4s-mega-menu-category > a:hover,
  body .primary-header .c4s-mega-menu .c4s-mega-menu-category > a:focus {
    color: #1e88e5;
    transform: translateX(3px);
  }
}

@media screen and (max-width: 1023px) {
  body .site-header .primary-navigation .st-menu.st-menu-mobile .c4s-mega-menu {
    position: static !important;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid #e9e9e9;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  body .site-header .primary-navigation .st-menu.st-menu-mobile .c4s-mega-menu-heading {
    display: none;
  }

  body .site-header .primary-navigation .st-menu.st-menu-mobile .c4s-mega-menu-category > a {
    display: block;
    height: auto;
    padding: 12px 35px;
    color: #222222;
    font-size: 15px;
    line-height: 1.5;
    opacity: 1;
    visibility: visible;
  }

  body .site-header .primary-navigation .st-menu.st-menu-mobile .c4s-mega-menu-category > a:hover {
    color: #1e88e5;
  }
}

/* Mobile primary navigation visibility and sizing. */
@media screen and (max-width: 991px) {
  body .site-header .primary-navigation .st-menu.st-menu-mobile {
    display: block;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: calc(100vh - 70px);
    overflow-x: hidden;
    overflow-y: auto;
    visibility: visible !important;
    opacity: 1 !important;
    background: #ffffff;
    z-index: 1000;
  }

  body .site-header .primary-navigation .st-menu.st-menu-mobile > li {
    display: block !important;
    float: none !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0;
    overflow: visible;
    visibility: visible !important;
    opacity: 1 !important;
    border-bottom: 1px solid #e9e9e9;
  }

  body .site-header .primary-navigation .st-menu.st-menu-mobile > li > a,
  body .site-header .primary-navigation .st-menu.st-menu-mobile > li > a:hover,
  body .site-header .primary-navigation .st-menu.st-menu-mobile > li.current-menu-item > a {
    display: block !important;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    padding: 12px 20px;
    color: #222222 !important;
    font-size: 16px;
    line-height: 1.5 !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible;
    pointer-events: auto;
  }
}

/* White hamburger and close icons on mobile header. */
@media screen and (max-width: 1023px) {
  body .site-header #nav_toggle_open,
  body .site-header #nav_toggle_open .bars.icon,
  body .site-header #nav_toggle_open .bars.icon::before,
  body .site-header #nav_toggle_close,
  body .site-header #nav_toggle_close .close.icon,
  body .site-header #nav_toggle_close .close.icon::before {
    color: #ffffff !important;
  }
}

/* Homepage search relocated from the Hero to the Header. */
body.home .hero-search-section {
  display: none;
}

body.home .hero-search-section .header_search {
  display: none;
  margin: 0;
}

body .primary-header > .container {
  align-items: center;
  gap: 18px;
}

body .primary-header .header-search-relocated {
  display: block;
  flex: 0 1 320px;
  width: clamp(250px, 27vw, 350px);
  min-width: 250px;
  margin: 0;
  align-self: center;
  position: relative;
  z-index: 40;
}

body .primary-header .header-search-relocated #header-search,
body .primary-header .header-search-relocated .header-search-input {
  display: block;
  float: none;
  width: 100%;
  margin: 0;
  position: relative;
}

body .primary-header .header-search-relocated .header-search-input {
  height: 42px;
}

body .primary-header .header-search-relocated #header-search input[type="text"] {
  display: block;
  width: 100% !important;
  height: 42px;
  min-width: 0;
  padding: 0 48px 0 14px !important;
  border: 1px solid #d6dbe1 !important;
  border-radius: 6px !important;
  background: #ffffff;
  color: #222222;
  font-size: 14px !important;
  line-height: 42px;
  box-shadow: none;
}

body .primary-header .header-search-relocated #header-search input[type="text"]:focus {
  border-color: #ff9900 !important;
  box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.18);
}

body .primary-header .header-search-relocated .header-search-submit {
  position: absolute;
  top: 0;
  right: 0;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 42px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
  border-radius: 0 6px 6px 0;
  background: #ff9900;
  color: #ffffff;
  cursor: pointer;
}

body .primary-header .header-search-relocated .header-search-submit .search.icon {
  margin: 0;
  color: #ffffff;
}

body .primary-header .header-search-relocated .results {
  top: calc(100% + 6px);
  width: 100%;
  max-height: min(420px, 65vh);
  overflow-y: auto;
  border-radius: 6px;
  z-index: 1001;
}

body.home .hero-search-section .container {
  display: flex;
  align-items: center;
  justify-content: center;
}

body.home .hero-search-section .hero-content {
  display: block;
  float: none;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 34px 20px 28px;
  text-align: center;
}

body.home .hero-search-section .hero-content h1.main-search-title {
  margin: 0;
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.7px;
}

body.home .hero-search-section .hero-content h2.sub-search-title {
  margin: 10px 0 0;
  font-size: 18px;
  line-height: 1.5;
}

/* Dynamic homepage banner slider. */
.c4s-banner-section {
  width: 100%;
  padding: 18px 0 24px;
  margin: 0;
}

.c4s-banner-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #eef1f4;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  isolation: isolate;
}

.c4s-banner-slides {
  display: grid;
  width: 100%;
  height: 100%;
}

.c4s-banner-slide {
  grid-area: 1 / 1;
  width: 100%;
  height: clamp(150px, 22vw, 260px);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.012);
  transition: opacity 0.65s ease, transform 0.75s ease, visibility 0.65s ease;
}

.c4s-banner-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
  z-index: 1;
}

.c4s-banner-slide > a,
.c4s-banner-media {
  display: block;
  width: 100%;
  height: 100%;
}

.c4s-banner-media {
  position: relative;
  overflow: hidden;
  background: #232f3e;
}

.c4s-banner-media .c4s-banner-image {
  position: absolute;
  display: block;
  max-width: none;
  margin: 0;
}

.c4s-banner-media .c4s-banner-blur {
  z-index: 0;
  top: -6%;
  left: -6%;
  width: 112%;
  height: 112%;
  object-fit: cover;
  object-position: center;
  filter: blur(18px) saturate(1.06);
  transform: scale(1.05);
  opacity: 0.78;
}

.c4s-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  background: linear-gradient(90deg, rgba(20, 29, 39, 0.2), rgba(255, 255, 255, 0.08), rgba(20, 29, 39, 0.2));
  pointer-events: none;
}

.c4s-banner-media .c4s-banner-foreground {
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.c4s-banner-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(35, 47, 62, 0.82);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%);
  transition: opacity 0.2s ease, visibility 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.c4s-banner-arrow:hover,
.c4s-banner-arrow:focus-visible {
  background: #ff9900;
  color: #ffffff;
  transform: translateY(-50%) scale(1.05);
}

.c4s-banner-prev {
  left: 16px;
}

.c4s-banner-next {
  right: 16px;
}

.c4s-banner-dots {
  position: absolute;
  right: 0;
  bottom: 14px;
  left: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.c4s-banner-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(35, 47, 62, 0.6);
  cursor: pointer;
  transition: width 0.25s ease, border-radius 0.25s ease, background-color 0.25s ease;
}

.c4s-banner-dot.is-active {
  width: 24px;
  border-radius: 10px;
  background: #ff9900;
}

@media (prefers-reduced-motion: reduce) {
  .c4s-banner-slide,
  .c4s-banner-arrow,
  .c4s-banner-dot {
    transition: none;
  }
}

/* Modern cards for the existing Featured Discounts widget. */
.home .content-main-widget-section.favorite-deals-section {
  padding: 24px 0 30px;
}

.home .c4s-featured-ready .c4s-featured-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
}

.home .c4s-featured-ready .c4s-featured-heading .saletitle {
  margin: 0;
  color: #001f5b !important;
  font-size: 24px;
  line-height: 1.25;
}

.home .c4s-featured-ready .c4s-featured-view-all {
  flex: 0 0 auto;
  color: #075ca8;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.home .c4s-featured-ready .c4s-featured-view-all:hover,
.home .c4s-featured-ready .c4s-featured-view-all:focus {
  color: #001f5b;
  text-decoration: underline;
}

.home .c4s-featured-ready .c4s-featured-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.home .c4s-featured-ready .c4s-featured-card {
  width: auto;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
}

.home .c4s-featured-ready .c4s-featured-card-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 264px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid #e8edf3;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 31, 91, 0.07);
  box-sizing: border-box;
  color: #222;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home .c4s-featured-ready .c4s-featured-card-link:hover,
.home .c4s-featured-ready .c4s-featured-card-link:focus {
  border-color: #cbd9e8;
  box-shadow: 0 8px 20px rgba(0, 31, 91, 0.12);
  transform: translateY(-3px);
}

.home .c4s-featured-ready .banner-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 108px;
  margin: 0 0 9px;
  overflow: hidden;
  border-radius: 7px;
  background: #f7f9fc;
}

.home .c4s-featured-ready .banner-img img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.home .c4s-featured-ready .c4s-featured-store {
  margin: 0 0 4px;
  overflow: hidden;
  color: #667085;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home .c4s-featured-ready .bls-title {
  display: -webkit-box;
  min-height: 54px;
  margin: 0;
  overflow: hidden;
  color: #001f5b !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.home .c4s-featured-ready .c4s-featured-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin: 8px 0;
  color: #667085;
  font-size: 11px;
  line-height: 1.3;
}

.home .c4s-featured-ready .c4s-featured-details {
  color: #075ca8;
  font-weight: 600;
}

.home .c4s-featured-ready .c4s-featured-cta {
  display: block;
  width: 100%;
  margin-top: auto;
  padding: 8px 6px;
  border-radius: 6px;
  background: #ff6b2c;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

@media screen and (max-width: 1023px) {
  .home .c4s-featured-ready .c4s-featured-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media screen and (max-width: 767px) {
  .home .content-main-widget-section.favorite-deals-section {
    padding: 18px 0 22px;
  }

  .home .c4s-featured-ready .c4s-featured-heading {
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 11px;
  }

  .home .c4s-featured-ready .c4s-featured-heading .saletitle {
    font-size: 19px;
  }

  .home .c4s-featured-ready .c4s-featured-view-all {
    font-size: 12px;
    white-space: nowrap;
  }

  .home .c4s-featured-ready .c4s-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .home .c4s-featured-ready .c4s-featured-card-link {
    min-height: 242px;
    padding: 8px;
  }

  .home .c4s-featured-ready .banner-img {
    height: 94px;
  }
}

@media screen and (max-width: 1023px) {
  body .primary-header > .container {
    flex-wrap: wrap;
    gap: 0;
  }

  body .primary-header .header-search-relocated {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    margin: 6px 0 8px;
  }
}

@media screen and (max-width: 767px) {
  .c4s-banner-section {
    padding: 10px 0 16px;
  }

  .c4s-banner-slider {
    border-radius: 8px;
  }

  .c4s-banner-slide {
    height: clamp(110px, 32vw, 160px);
  }

  .c4s-banner-media .c4s-banner-blur {
    filter: blur(14px) saturate(1.05);
  }

  .c4s-banner-arrow {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .c4s-banner-prev {
    left: 8px;
  }

  .c4s-banner-next {
    right: 8px;
  }

  .c4s-banner-dots {
    bottom: 9px;
  }

  body .primary-header > .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    position: relative;
  }

  body .primary-header .site-navigation {
    grid-column: 1;
    grid-row: 1;
    width: 44px;
    justify-self: start;
  }

  body .primary-header .primary-navigation {
    width: 44px;
  }

  body .primary-header .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    text-align: left;
  }

  body .primary-header .logo_area {
    grid-column: 2;
    grid-row: 1;
    width: auto !important;
    max-width: 110px;
    margin: 0;
    justify-self: center;
    text-align: center;
  }

  body .primary-header .logo_area img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 40px;
    margin: 0 auto;
  }

  body .primary-header .header-search-relocated {
    grid-column: 3;
    grid-row: 1;
    order: initial;
    justify-self: end;
    width: 100%;
    max-width: 120px;
    min-width: 0;
    margin: 0;
  }

  body .primary-header .header-search-relocated .header-search-input,
  body .primary-header .header-search-relocated #header-search input[type="text"],
  body .primary-header .header-search-relocated .header-search-submit {
    height: 40px;
  }

  body .primary-header .header-search-relocated #header-search input[type="text"] {
    padding-right: 40px !important;
    padding-left: 10px !important;
    font-size: 12px !important;
    line-height: 40px;
  }

  body .primary-header .header-search-relocated .header-search-submit {
    width: 38px;
  }

  body .primary-header .header-search-relocated .results {
    right: 0;
    left: auto;
    width: min(300px, calc(100vw - 24px));
  }

  body.home .hero-search-section .hero-content {
    padding: 24px 12px 20px;
  }

  body.home .hero-search-section .hero-content h1.main-search-title {
    font-size: 28px;
    line-height: 1.25;
  }

  body.home .hero-search-section .hero-content h2.sub-search-title {
    margin-top: 8px;
    font-size: 16px;
  }
}

/* Popular Stores carousel */
.home .frontpage-2nd-main.c4s-popular-stores-section {
  width: 100%;
  max-width: 1200px;
  margin: 28px auto;
  padding: 0;
  background: #fff;
}

.home .c4s-popular-stores-section .widget_popular_stores {
  margin: 0;
}

.home .c4s-popular-stores-section .c4s-popular-stores-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 12px;
}

.home .c4s-popular-stores-section .widget_popular_stores .widget-title {
  margin: 0;
  color: #001f5b;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.home .c4s-popular-stores-section .c4s-popular-stores-view-all {
  flex: 0 0 auto;
  color: #246bdf;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.home .c4s-popular-stores-section .c4s-popular-stores-view-all:hover,
.home .c4s-popular-stores-section .c4s-popular-stores-view-all:focus {
  color: #164da8;
  text-decoration: underline;
}

.home .c4s-popular-stores-section .c4s-store-carousel-viewport {
  position: relative;
  width: 100%;
  padding: 4px 2px 12px;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  border: 0;
  border-bottom: 1px solid #e8eef7;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  box-sizing: border-box;
}

.home .c4s-popular-stores-section .c4s-store-carousel-track.ui.grid {
  --c4s-store-gap: 10px;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  gap: var(--c4s-store-gap);
  width: 100%;
  margin: 0 !important;
  padding: 0;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.home .c4s-popular-stores-section .c4s-store-carousel-viewport.is-dragging {
  cursor: grabbing;
}

.home .c4s-popular-stores-section .c4s-store-carousel-track.is-manual-control {
  animation: none !important;
}

.home .c4s-popular-stores-section .c4s-store-carousel-track.is-dragging,
.home .c4s-popular-stores-section .c4s-store-carousel-track.is-dragging a {
  user-select: none;
}

.home .c4s-popular-stores-section .c4s-store-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(35, 47, 62, 0.86);
  color: #ffffff;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
  transform: translateY(-50%);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.home .c4s-popular-stores-section .c4s-store-carousel-arrow:hover,
.home .c4s-popular-stores-section .c4s-store-carousel-arrow:focus-visible {
  background: #ff9900;
  color: #ffffff;
  transform: translateY(-50%) scale(1.05);
}

.home .c4s-popular-stores-section .c4s-store-carousel-prev {
  left: 12px;
}

.home .c4s-popular-stores-section .c4s-store-carousel-next {
  right: 12px;
}

.home .c4s-popular-stores-section .c4s-store-carousel-track.is-ready {
  animation: c4s-store-carousel-loop var(--c4s-store-loop-duration, 30s) linear infinite;
}

.home .c4s-popular-stores-section .c4s-store-carousel-viewport:hover .c4s-store-carousel-track,
.home .c4s-popular-stores-section .c4s-store-carousel-viewport:focus-within .c4s-store-carousel-track {
  animation-play-state: paused;
}

.home .c4s-popular-stores-section .widget_popular_stores .ui.grid > .c4s-store-carousel-item.column:not(.row) {
  display: block;
  flex: 0 0 calc((100% - (9 * var(--c4s-store-gap))) / 10) !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
}

.home .c4s-popular-stores-section .c4s-store-carousel-item > a.ui.image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 92px;
  padding: 4px 2px !important;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-sizing: border-box;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.home .c4s-popular-stores-section .c4s-store-carousel-item > a.ui.image:hover,
.home .c4s-popular-stores-section .c4s-store-carousel-item > a.ui.image:focus {
  box-shadow: none;
  transform: none;
}

.home .c4s-popular-stores-section .c4s-store-carousel-item .store-thumb.font-store-thumb {
  float: none !important;
  display: block;
  width: 64px;
  height: 64px;
  margin: 0;
  padding: 0;
  line-height: 1;
}

.home .c4s-popular-stores-section .c4s-store-carousel-item .font-store-thumb .background-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0;
  padding: 7px;
  border-radius: 50%;
  box-sizing: border-box;
  background: #fff !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home .c4s-popular-stores-section .c4s-store-carousel-item > a:hover .background-logo,
.home .c4s-popular-stores-section .c4s-store-carousel-item > a:focus .background-logo {
  box-shadow: 0 8px 22px rgba(0, 31, 91, 0.16);
  transform: translateY(-2px);
}

.home .c4s-popular-stores-section .c4s-store-carousel-item .background-logo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border-radius: 50%;
  object-fit: contain;
}

.home .c4s-popular-stores-section .c4s-store-carousel-item h4.font-page-store-title {
  width: 100%;
  margin: 0;
  overflow: hidden;
  color: #001f5b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home .c4s-popular-stores-section .c4s-store-carousel-item a > span {
  display: none;
}

@keyframes c4s-store-carousel-loop {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(-1 * var(--c4s-store-loop-distance)), 0, 0);
  }
}

@media screen and (max-width: 1023px) {
  .home .c4s-popular-stores-section .c4s-store-carousel-track.ui.grid {
    --c4s-store-gap: 9px;
  }

  .home .c4s-popular-stores-section .widget_popular_stores .ui.grid > .c4s-store-carousel-item.column:not(.row) {
    flex-basis: calc((100% - (6 * var(--c4s-store-gap))) / 7) !important;
  }
}

@media screen and (max-width: 767px) {
.home .frontpage-2nd-main.c4s-popular-stores-section {
    width: auto;
    margin: 20px 12px;
    padding: 0;
  }

  .home .c4s-popular-stores-section .c4s-popular-stores-heading {
    margin-bottom: 9px;
  }

  .home .c4s-popular-stores-section .widget_popular_stores .widget-title {
    font-size: 20px;
  }

  .home .c4s-popular-stores-section .c4s-popular-stores-view-all {
    font-size: 12px;
    white-space: nowrap;
  }

.home .c4s-popular-stores-section .c4s-store-carousel-viewport {
    padding: 3px 1px 10px;
  }

.home .c4s-popular-stores-section .c4s-store-carousel-track.ui.grid {
    --c4s-store-gap: 7px;
  }

.home .c4s-popular-stores-section .widget_popular_stores .ui.grid > .c4s-store-carousel-item.column:not(.row) {
    flex-basis: calc((100% - (3 * var(--c4s-store-gap))) / 4) !important;
  }

.home .c4s-popular-stores-section .c4s-store-carousel-item > a.ui.image {
    min-height: 78px;
    padding: 3px 1px !important;
  }

.home .c4s-popular-stores-section .c4s-store-carousel-item .store-thumb.font-store-thumb,
.home .c4s-popular-stores-section .c4s-store-carousel-item .font-store-thumb .background-logo {
    width: 48px;
    height: 48px;
  }

  .home .c4s-popular-stores-section .c4s-store-carousel-item h4.font-page-store-title {
    font-size: 11px;
  }
}

@media screen and (max-width: 419px) {
  .home .c4s-popular-stores-section .widget_popular_stores .ui.grid > .c4s-store-carousel-item.column:not(.row) {
    flex-basis: calc((100% - (2 * var(--c4s-store-gap))) / 3) !important;
  }
}

/* Sidebar-independent Popular Stores carousel fallback. */
.home .widget_popular_stores.c4s-popular-stores-carousel {
  width: 100% !important;
  margin: 0 !important;
}

.home .widget_popular_stores.c4s-popular-stores-carousel .c4s-store-carousel-viewport {
  position: relative !important;
  width: 100% !important;
  padding: 4px 2px 12px !important;
  overflow: hidden !important;
  cursor: grab !important;
  touch-action: pan-y;
  border: 0 !important;
  border-bottom: 1px solid #e8eef7 !important;
  background: #fff !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

.home .widget_popular_stores.c4s-popular-stores-carousel .c4s-store-carousel-track.ui.grid {
  --c4s-store-gap: 16px;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: var(--c4s-store-gap) !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.home .widget_popular_stores.c4s-popular-stores-carousel .c4s-store-carousel-viewport.is-dragging {
  cursor: grabbing !important;
}

.home .widget_popular_stores.c4s-popular-stores-carousel .c4s-store-carousel-track.is-manual-control {
  animation: none !important;
}

.home .widget_popular_stores.c4s-popular-stores-carousel .c4s-store-carousel-track.is-dragging,
.home .widget_popular_stores.c4s-popular-stores-carousel .c4s-store-carousel-track.is-dragging a {
  user-select: none;
}

.home .widget_popular_stores.c4s-popular-stores-carousel .c4s-store-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(35, 47, 62, 0.86);
  color: #ffffff;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
  transform: translateY(-50%);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.home .widget_popular_stores.c4s-popular-stores-carousel .c4s-store-carousel-arrow:hover,
.home .widget_popular_stores.c4s-popular-stores-carousel .c4s-store-carousel-arrow:focus-visible {
  background: #ff9900;
  color: #ffffff;
  transform: translateY(-50%) scale(1.05);
}

.home .widget_popular_stores.c4s-popular-stores-carousel .c4s-store-carousel-prev {
  left: 12px;
}

.home .widget_popular_stores.c4s-popular-stores-carousel .c4s-store-carousel-next {
  right: 12px;
}

.home .widget_popular_stores.c4s-popular-stores-carousel .c4s-store-carousel-track.is-ready {
  animation: c4s-store-carousel-loop var(--c4s-store-loop-duration, 30s) linear infinite !important;
}

.home .c4s-popular-stores-section .c4s-store-carousel-track.is-ready.is-manual-control,
.home .widget_popular_stores.c4s-popular-stores-carousel .c4s-store-carousel-track.is-ready.is-manual-control {
  animation: none !important;
}

.home .widget_popular_stores.c4s-popular-stores-carousel .c4s-store-carousel-viewport:hover .c4s-store-carousel-track,
.home .widget_popular_stores.c4s-popular-stores-carousel .c4s-store-carousel-viewport:focus-within .c4s-store-carousel-track {
  animation-play-state: paused !important;
}

.home .widget_popular_stores.c4s-popular-stores-carousel .c4s-store-carousel-item.column {
  float: none !important;
  flex: 0 0 calc((100% - (6 * var(--c4s-store-gap))) / 7) !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.home .widget_popular_stores.c4s-popular-stores-carousel .c4s-store-carousel-item > a.ui.image {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-height: 142px !important;
  padding: 14px 8px !important;
  border: 1px solid #e5ebf3 !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 5px 16px rgba(0, 31, 91, .08) !important;
  text-align: center !important;
}

.home .widget_popular_stores.c4s-popular-stores-carousel .c4s-store-carousel-item > a.ui.image:hover,
.home .widget_popular_stores.c4s-popular-stores-carousel .c4s-store-carousel-item > a.ui.image:focus {
  border-color: #bfd0e5 !important;
  box-shadow: 0 10px 24px rgba(0, 31, 91, .15) !important;
  transform: translateY(-4px) !important;
}

.home .widget_popular_stores.c4s-popular-stores-carousel .store-thumb.font-store-thumb,
.home .widget_popular_stores.c4s-popular-stores-carousel .font-store-thumb .background-logo {
  float: none !important;
  width: 88px !important;
  height: 88px !important;
  margin: 0 !important;
}

.home .widget_popular_stores.c4s-popular-stores-carousel .font-store-thumb .background-logo {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 7px !important;
  border-radius: 50% !important;
  background: #fff !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .10) !important;
  box-sizing: border-box !important;
}

.home .widget_popular_stores.c4s-popular-stores-carousel .background-logo img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  border-radius: 50% !important;
  object-fit: contain !important;
}

.home .widget_popular_stores.c4s-popular-stores-carousel h4.font-page-store-title {
  width: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: #001f5b !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

@media screen and (max-width: 1023px) {
  .home .widget_popular_stores.c4s-popular-stores-carousel .c4s-store-carousel-track.ui.grid { --c4s-store-gap: 13px; }
  .home .widget_popular_stores.c4s-popular-stores-carousel .c4s-store-carousel-item.column { flex-basis: calc((100% - (4 * var(--c4s-store-gap))) / 5) !important; }
  .home .widget_popular_stores.c4s-popular-stores-carousel .store-thumb.font-store-thumb,
  .home .widget_popular_stores.c4s-popular-stores-carousel .font-store-thumb .background-logo { width: 76px !important; height: 76px !important; }
}

@media screen and (max-width: 767px) {
  .home .widget_popular_stores.c4s-popular-stores-carousel .c4s-store-carousel-track.ui.grid { --c4s-store-gap: 9px; }
  .home .widget_popular_stores.c4s-popular-stores-carousel .c4s-store-carousel-item.column { flex-basis: calc((100% - (2 * var(--c4s-store-gap))) / 3) !important; }
  .home .widget_popular_stores.c4s-popular-stores-carousel .store-thumb.font-store-thumb,
  .home .widget_popular_stores.c4s-popular-stores-carousel .font-store-thumb .background-logo { width: 64px !important; height: 64px !important; }
}

@media screen and (max-width: 419px) {
  .home .widget_popular_stores.c4s-popular-stores-carousel .c4s-store-carousel-item.column { flex-basis: calc((100% - var(--c4s-store-gap)) / 2) !important; }
}

/* Store Owner registration and login forms. */
.c4s-store-owner-auth,
.c4s-store-owner-placeholder {
  width: min(100%, 680px);
  margin: 28px auto;
  padding: 24px;
  border: 1px solid #e4eaf1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 31, 91, 0.08);
  box-sizing: border-box;
}

.c4s-store-owner-auth h2,
.c4s-store-owner-placeholder h2 {
  margin: 0 0 18px;
  color: #001f5b;
}

.c4s-store-owner-form p {
  margin: 0 0 15px;
}

.c4s-store-owner-form label {
  display: block;
  margin-bottom: 6px;
  color: #24364b;
  font-weight: 700;
}

.c4s-store-owner-form input[type="text"],
.c4s-store-owner-form input[type="email"],
.c4s-store-owner-form input[type="tel"],
.c4s-store-owner-form input[type="url"],
.c4s-store-owner-form input[type="password"] {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #ccd6e2;
  border-radius: 6px;
  background: #fff;
  box-sizing: border-box;
}

.c4s-store-owner-form input[type="date"],
.c4s-store-owner-form input[type="file"],
.c4s-store-owner-form select,
.c4s-store-owner-form textarea {
  display: block;
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #ccd6e2;
  border-radius: 6px;
  background: #fff;
  box-sizing: border-box;
}

.c4s-store-owner-dashboard {
  width: min(100%, 1100px);
  margin: 28px auto;
}

.c4s-dashboard-header,
.c4s-dashboard-card {
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid #e4eaf1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(0, 31, 91, .07);
  box-sizing: border-box;
}

.c4s-dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.c4s-dashboard-card h3,
.c4s-dashboard-header h2 {
  margin-top: 0;
  color: #001f5b;
}

.c4s-status {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 20px;
  background: #edf2f7;
  font-size: 12px;
  font-weight: 700;
}

.c4s-status-approved { background: #e5f8ea; color: #176b32; }
.c4s-status-pending { background: #fff5d9; color: #805b00; }
.c4s-status-rejected { background: #ffe8e8; color: #8a1f1f; }

.c4s-store-media-previews {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.c4s-store-preview {
  width: auto;
  max-width: 180px;
  max-height: 100px;
  border-radius: 8px;
  object-fit: contain;
}

.c4s-responsive-table { overflow-x: auto; }
.c4s-responsive-table table { width: 100%; border-collapse: collapse; }
.c4s-responsive-table th,
.c4s-responsive-table td { padding: 10px; border-bottom: 1px solid #e8eef7; text-align: left; }

.c4s-store-partner-cta {
  padding: 34px 15px;
  background: #f2f6fb;
  border-top: 1px solid #e3ebf5;
}

.c4s-store-partner-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 28px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 31, 91, .09);
}

.c4s-store-partner-cta h2 {
  margin: 0 0 6px;
  color: #001f5b;
  font-size: 25px;
}

.c4s-store-partner-cta p { margin: 0; color: #526579; }

.c4s-store-partner-button {
  flex: 0 0 auto;
  padding: 12px 20px;
  border-radius: 7px;
  background: #246bdf;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
}

.c4s-store-partner-button:hover,
.c4s-store-partner-button:focus { background: #174fa9; color: #fff !important; }

.c4s-store-partner-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.c4s-store-partner-login {
  padding: 11px 18px;
  border: 1px solid #246bdf;
  border-radius: 7px;
  color: #246bdf;
  font-weight: 700;
  text-decoration: none;
}
.c4s-store-partner-login:hover,
.c4s-store-partner-login:focus { background: #edf4ff; color: #174fa9; }

.c4s-store-owner-form input:focus {
  border-color: #246bdf;
  outline: 2px solid rgba(36, 107, 223, 0.16);
  outline-offset: 1px;
}

.c4s-store-owner-form .c4s-store-owner-submit {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: #075ca8;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.c4s-form-message {
  margin: 0 0 16px;
  padding: 11px 13px;
  border-radius: 6px;
}

.c4s-form-message ul,
.c4s-form-message p {
  margin: 0;
}

.c4s-form-error {
  border: 1px solid #e7b8b8;
  background: #fff2f2;
  color: #8a1f1f;
}

.c4s-form-success {
  border: 1px solid #a9d8b5;
  background: #f0fff4;
  color: #185c2c;
}

.c4s-captcha-field {
  margin: 0 0 15px;
  overflow-x: auto;
}

@media screen and (max-width: 767px) {
  .c4s-store-owner-auth,
  .c4s-store-owner-placeholder {
    margin: 18px auto;
    padding: 17px;
  }

  .c4s-store-owner-dashboard { margin: 18px auto; }
  .c4s-dashboard-header { flex-direction: column; }
  .c4s-dashboard-card,
  .c4s-dashboard-header { padding: 15px; }

  .c4s-store-partner-cta { padding: 22px 12px; }
  .c4s-store-partner-cta-inner { flex-direction: column; align-items: flex-start; padding: 20px; }
  .c4s-store-partner-button { width: 100%; box-sizing: border-box; text-align: center; }
  .c4s-store-partner-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .c4s-store-partner-login { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .home .c4s-popular-stores-section .c4s-store-carousel-viewport {
    overflow-x: auto;
  }

  .home .c4s-popular-stores-section .c4s-store-carousel-track.is-ready {
    animation: none;
  }
}

/* Savings Pro Trending Coupons widget uses these legacy class names. */
.st-tr-coupons .tending-coupon-listing-item {
  transition: all 0.3s ease;
  cursor: pointer;
}

.st-tr-coupons .tending-coupon-listing-item:hover {
  transform: translateY(-5px);
  border-color: #ff5a1f;
  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.12),
    0 4px 10px rgba(0, 0, 0, 0.08);
}

.st-tr-coupons .tending-coupon-listing-item .store-thumb-link img {
  transition: transform 0.3s ease;
}

.st-tr-coupons .tending-coupon-listing-item:hover .store-thumb-link img {
  transform: scale(1.05);
}

/* Trending coupon titles only. */
.st-tr-coupons .tending-coupon-listing-item .coupon-des .coupon-title a {
  color: #001f5b;
}

.st-tr-coupons .tending-coupon-listing-item .coupon-des .coupon-title a:hover,
.st-tr-coupons .tending-coupon-listing-item .coupon-des .coupon-title a:focus {
  color: #001f5b;
}

/* Two-column Trending Coupons layout on mobile. */
@media screen and (max-width: 767px) {
  body .top-offer .store-listings.st-list-coupons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    margin: 0;
    justify-items: stretch;
  }

  body .top-offer .store-listings.st-list-coupons .tending-coupon-listing-item {
    float: none;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;
  }

  body .top-offer .tending-coupon-listing-item .store-thumb-link,
  body .top-offer .tending-coupon-listing-item .store-thumb-link .store-thumb,
  body .top-offer .tending-coupon-listing-item .store-thumb-link .thumb-padding {
    margin-left: auto;
    margin-right: auto;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  body .top-offer .tending-coupon-listing-item .store-thumb-link img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }

  body .top-offer .tending-coupon-listing-item .coupon-des {
    min-width: 0;
    padding: 10px;
  }

  body .top-offer .tending-coupon-listing-item .coupon-des .coupon-title {
    font-size: 15px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  body .top-offer .tending-coupon-listing-item .trnd-get-code-btn {
    padding: 10px 8px;
    font-size: 13px;
  }
}

/* Deal button hover state */
.get-deal-btn:hover,
a.get-deal:hover,
.coupon-btn:hover,
.deal-btn:hover,
a.coupon-deal.trnd-get-code-btn:hover,
.trnd-get-code-btn:hover {
  filter: brightness(92%);
  color: #fff !important;
}

/* Modern responsive layout for the existing Trending Coupons widget. */
.home .content-before-main-section.favorite-deals-section {
  padding: 24px 0 30px;
  background: #f7f9fc;
}

.home .content-before-main-section .st-tr-coupons > .widget-title {
  margin: 0 0 14px;
  color: #001f5b;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.home .content-before-main-section .store-listings.st-list-coupons {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
  margin: 0 !important;
}

.home .content-before-main-section .store-listings.st-list-coupons > .tending-coupon-listing-item {
  float: none !important;
  display: flex !important;
  flex-direction: column;
  width: auto !important;
  min-width: 0;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid #e4eaf1 !important;
  border-radius: 11px !important;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 31, 91, 0.07) !important;
  box-sizing: border-box;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.home .content-before-main-section .store-listings.st-list-coupons > .tending-coupon-listing-item:hover {
  border-color: #bfcfe2 !important;
  box-shadow: 0 9px 22px rgba(0, 31, 91, 0.13) !important;
  transform: translateY(-4px);
}

.home .content-before-main-section .tending-coupon-listing-item .store-thumb-link {
  float: none !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  height: 108px;
  margin: 0 !important;
  padding: 10px !important;
  overflow: hidden;
  background: #fff !important;
  box-sizing: border-box;
}

.home .content-before-main-section .tending-coupon-listing-item .store-thumb-link .store-thumb,
.home .content-before-main-section .tending-coupon-listing-item .store-thumb-link a.thumb-padding {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.home .content-before-main-section .tending-coupon-listing-item .store-thumb-link .store-thumb {
  position: relative;
}

.home .content-before-main-section .tending-coupon-listing-item .store-thumb-link img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 82px !important;
  max-height: 76px !important;
  margin: auto;
  object-fit: contain;
}

.home .content-before-main-section .tending-coupon-listing-item .store-thumb > span.thumb-padding {
  position: absolute;
  top: 7px;
  right: 7px;
  width: auto !important;
  max-width: calc(100% - 14px);
  height: auto !important;
  padding: 3px 6px !important;
  overflow: hidden;
  border-radius: 10px;
  background: #eaf3ff;
  color: #075ca8;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home .content-before-main-section .tending-coupon-listing-item .coupon-des {
  float: none !important;
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100% !important;
  min-width: 0;
  padding: 10px !important;
  background: #fff !important;
  box-sizing: border-box;
}

.home .content-before-main-section .tending-coupon-listing-item .coupon-store {
  margin: 0 0 5px;
  color: #667085;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home .content-before-main-section .tending-coupon-listing-item .coupon-title {
  display: -webkit-box;
  min-height: 55px;
  margin: 0;
  overflow: hidden;
  color: #001f5b !important;
  font-size: 13px !important;
  font-weight: 700;
  line-height: 1.4 !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.home .content-before-main-section .tending-coupon-listing-item .coupon-title a,
.home .content-before-main-section .tending-coupon-listing-item .coupon-title a:hover,
.home .content-before-main-section .tending-coupon-listing-item .coupon-title a:focus {
  color: #001f5b !important;
  text-decoration: none;
}

.home .content-before-main-section .tending-coupon-listing-item .coupon-footer {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  margin-top: 8px;
}

.home .content-before-main-section .tending-coupon-listing-item .footer-coupon-listing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin: 0 0 8px;
  color: #667085;
  font-size: 10px;
  line-height: 1.3;
}

.home .content-before-main-section .tending-coupon-listing-item .footer-coupon-listing ul {
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}

.home .content-before-main-section .tending-coupon-listing-item .footer-coupon-listing a {
  color: #075ca8;
  font-weight: 700;
  white-space: nowrap;
}

.home .content-before-main-section .tending-coupon-listing-item .trnd-get-code-btn {
  display: block !important;
  width: 100% !important;
  margin: auto 0 0 !important;
  padding: 9px 6px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: #075ca8 !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  box-sizing: border-box;
}

.home .content-before-main-section .tending-coupon-listing-item .trnd-get-code-btn:hover,
.home .content-before-main-section .tending-coupon-listing-item .trnd-get-code-btn:focus {
  background: #064b88 !important;
  color: #fff !important;
}

@media screen and (max-width: 1023px) {
  .home .content-before-main-section .store-listings.st-list-coupons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 767px) {
  .home .content-before-main-section.favorite-deals-section {
    padding: 18px 0 22px;
  }

  .home .content-before-main-section .st-tr-coupons > .widget-title {
    margin-bottom: 11px;
    font-size: 20px;
  }

  .home .content-before-main-section .store-listings.st-list-coupons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .home .content-before-main-section .tending-coupon-listing-item .store-thumb-link {
    height: 96px;
    padding: 8px !important;
  }

  .home .content-before-main-section .tending-coupon-listing-item .store-thumb-link img {
    max-width: 72px !important;
    max-height: 66px !important;
  }

  .home .content-before-main-section .tending-coupon-listing-item .coupon-des {
    padding: 8px !important;
  }

  .home .content-before-main-section .tending-coupon-listing-item .coupon-title {
    min-height: 52px;
    font-size: 12px !important;
  }
}

/* Coupon4Sure Amazon-style navbar colour. */
body .site-header .primary-header {
  background-color: #1e2937 !important;
}

/* Homepage Top Categories strip */
.c4s-top-categories-section {
  position: relative !important;
  top: auto !important;
  width: 100%;
  min-height: 104px;
  background: #ffffff;
  border-bottom: 1px solid #e8eef7;
  box-shadow: none;
  z-index: 1;
}

.c4s-top-categories-section .container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.c4s-top-categories-nav {
  display: block;
  justify-content: center;
  width: 100%;
  padding: 3px 0 2px;
  box-sizing: border-box;
}

.c4s-top-categories-title {
  margin: 0 0 10px;
  color: #001f5b;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.c4s-top-categories-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.c4s-top-category-item {
  flex: 0 0 auto;
  min-width: 0;
}

.c4s-top-category-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 66px;
  min-height: 62px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: #001f5b;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.c4s-top-category-link:hover,
.c4s-top-category-link:focus {
  color: #001f5b;
  background: transparent !important;
  border-color: transparent;
  box-shadow: none !important;
  transform: translateY(-2px);
  text-decoration: none;
}

.c4s-top-category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff, #f1f5fb);
  border: 1px solid #e5edf7;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  overflow: hidden;
}

.c4s-top-category-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.c4s-top-category-emoji {
  font-size: 25px;
  line-height: 1;
}

.c4s-top-category-label {
  display: block;
  color: #001f5b;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.12;
  text-align: center;
  white-space: nowrap;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.c4s-top-category-home-and-garden .c4s-top-category-label,
.c4s-top-category-health-and-beauty .c4s-top-category-label {
  white-space: normal;
  max-width: 98px;
}

@media (max-width: 991px) {
  .c4s-top-categories-nav {
    padding: 3px 0 2px;
  }

  .c4s-top-categories-list {
    justify-content: center;
    gap: 18px;
    padding: 0 2px 2px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .c4s-top-category-item {
    flex: 0 0 auto;
  }

  .c4s-top-category-link {
    min-width: 72px;
    min-height: 60px;
    padding: 0;
  }

  .c4s-top-category-icon {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
  }

  .c4s-top-category-label {
    font-size: 13px;
  }
}

@media (max-width: 575px) {
  .c4s-top-categories-section .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .c4s-top-categories-nav {
    display: block;
    padding: 3px 0 2px;
    overflow: hidden;
  }

  .c4s-top-categories-title {
    margin: 0 0 8px;
    font-size: 15px;
  }

  .c4s-top-categories-list {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 2px;
  }

  .c4s-top-category-item {
    flex: 0 0 auto;
  }

  .c4s-top-category-link {
    justify-content: center;
    min-width: 62px;
    min-height: 58px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
  }

  .c4s-top-category-icon {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
  }

  .c4s-top-category-emoji {
    font-size: 21px;
  }

  .c4s-top-category-label {
    font-size: 13px;
    font-weight: 500;
    min-height: 30px;
  }
}

/* Homepage compact store logo row */
.c4s-store-logo-row-section {
  position: relative !important;
  width: 100%;
  min-height: 86px;
  background: #ffffff;
  border-bottom: 1px solid #eef2f8;
  z-index: 1;
}

.c4s-store-logo-row-section + .c4s-banner-section,
body.home .c4s-store-logo-row-section + .c4s-banner-section {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.c4s-store-logo-row-section .container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.c4s-store-logo-row-nav {
  width: 100%;
  padding: 4px 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  box-sizing: border-box;
}

.c4s-store-logo-row-title {
  margin: 0 0 10px;
  color: #001f5b;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.c4s-store-logo-row-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  width: max-content;
  min-width: 100%;
}

.c4s-store-logo-row-item {
  flex: 0 0 auto;
  min-width: 0;
}

.c4s-store-logo-row-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 56px;
  padding: 2px 7px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.c4s-store-logo-row-link:hover,
.c4s-store-logo-row-link:focus {
  border-color: #d8dce3;
  box-shadow: 0 5px 14px rgba(0, 31, 91, 0.08);
  transform: translateY(-2px);
}

.c4s-store-logo-row-link img {
  display: block;
  max-width: 124px;
  max-height: 42px;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .c4s-store-logo-row-section + .c4s-banner-section,
  body.home .c4s-store-logo-row-section + .c4s-banner-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .c4s-store-logo-row-section .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .c4s-store-logo-row-nav {
    padding: 4px 0;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .c4s-store-logo-row-title {
    margin-bottom: 8px;
    font-size: 15px;
  }

  .c4s-store-logo-row-list {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: 2px;
  }

  .c4s-store-logo-row-link {
    width: 126px;
    height: 54px;
    padding: 2px 6px;
    border-radius: 6px;
  }

  .c4s-store-logo-row-link img {
    max-width: 98px;
    max-height: 40px;
  }
}

/* Dynamic Trending Travel Deals section */
.c4s-travel-deals-section {
  width: 100%;
  max-width: 1200px;
  margin: 24px auto 26px;
  padding: 0;
}

.c4s-travel-deals-section .container {
  display: flex;
  flex-direction: column;
  width: calc(100% - 30px);
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
  box-sizing: border-box;
}

.c4s-travel-deals-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0 0 14px;
  box-sizing: border-box;
}

.c4s-travel-deals-header h2 {
  display: block;
  width: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
  color: #001f5b;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  writing-mode: horizontal-tb;
}

.c4s-travel-deals-view-all {
  color: #246bdf;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.c4s-travel-deals-view-all:hover,
.c4s-travel-deals-view-all:focus {
  color: #174fa9;
  text-decoration: underline;
}

.c4s-travel-deals-grid {
  display: grid;
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  box-sizing: border-box;
}

.c4s-travel-deal-card {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  border: 1px solid #e8eef7;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 31, 91, 0.06);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.c4s-travel-deal-card:hover {
  transform: translateY(-4px);
  border-color: #d8e4f5;
  box-shadow: 0 9px 24px rgba(0, 31, 91, 0.11);
}

.c4s-travel-deal-card-link {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  padding: 14px 11px 10px;
  color: inherit;
  text-align: center;
  text-decoration: none;
}

.c4s-travel-deal-card-link:hover,
.c4s-travel-deal-card-link:focus {
  color: inherit;
  text-decoration: none;
}

.c4s-travel-deal-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 52px;
  margin: 0 auto 8px;
}

.c4s-travel-deal-logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.c4s-travel-deal-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #eef6ff;
  color: #246bdf;
  font-size: 24px;
}

.c4s-travel-deal-store {
  display: block;
  margin-bottom: 6px;
  color: #667085;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.c4s-travel-deal-title {
  display: -webkit-box;
  min-height: 43px;
  overflow: hidden;
  color: #001f5b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.c4s-travel-deal-save {
  display: block;
  margin-top: 8px;
  color: #e53935;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.c4s-travel-deal-footer {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 0 11px 12px;
}

.c4s-travel-deal-details {
  color: #667085;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.c4s-travel-deal-details:hover,
.c4s-travel-deal-details:focus {
  color: #246bdf;
}

.c4s-travel-deal-button {
  display: block;
  padding: 9px 8px;
  border-radius: 8px;
  background: #246bdf;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-decoration: none;
}

.c4s-travel-deal-button:hover,
.c4s-travel-deal-button:focus {
  background: #174fa9;
  color: #ffffff !important;
}

@media (max-width: 991px) {
  .c4s-travel-deals-section {
    margin: 22px auto;
    padding: 0 12px;
  }

  .c4s-travel-deals-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .c4s-travel-deals-header {
    align-items: flex-start;
    margin-bottom: 12px;
  }

  .c4s-travel-deals-header h2 {
    font-size: 20px;
  }

  .c4s-travel-deals-view-all {
    font-size: 13px;
  }

  .c4s-travel-deals-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .c4s-travel-deal-card {
    min-height: 218px;
  }
}
/* Taxonomy-controlled Homepage Sections. */
.c4s-taxonomy-trending-section .c4s-trending-legacy-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.home .c4s-taxonomy-trending-section .st-tr-coupons > .c4s-trending-legacy-heading .widget-title {
    margin: 0;
}

.c4s-taxonomy-trending-section .c4s-trending-legacy-heading > a {
    flex: 0 0 auto;
    color: #e55b25;
    font-weight: 700;
    text-decoration: none;
}

.c4s-taxonomy-trending-section .c4s-trending-logo-fallback {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border-radius: 50%;
    background: #eef4fb;
    color: #075ca8;
    font-size: 24px;
    font-weight: 800;
}

.c4s-coupon-section {
    padding: 24px 0;
    background: #f7f9fa;
}

.c4s-coupon-section:nth-child(even) {
    background: #fff;
}

.c4s-coupon-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.c4s-coupon-section-header h2 {
    margin: 0;
    color: #07525d;
    font-size: clamp(1.3rem, 2vw, 1.75rem);
    line-height: 1.25;
}

.c4s-coupon-section-header > a {
    flex: 0 0 auto;
    color: #e55b25;
    font-weight: 700;
    text-decoration: none;
}

.c4s-coupon-section-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.c4s-section-coupon-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    border: 1px solid #e3e8ea;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(7, 82, 93, .07);
}

.c4s-section-coupon-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.c4s-section-coupon-logo {
    display: grid;
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
    place-items: center;
    overflow: hidden;
    border: 1px solid #edf0f1;
    border-radius: 8px;
    background: #fff;
    color: #e55b25;
    font-size: 1.5rem;
    font-weight: 800;
}

.c4s-section-coupon-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.c4s-section-coupon-content,
.c4s-section-coupon-store,
.c4s-section-coupon-title,
.c4s-section-coupon-save {
    display: block;
}

.c4s-section-coupon-content {
    min-width: 0;
}

.c4s-section-coupon-store {
    margin-bottom: 3px;
    color: #607176;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.c4s-section-coupon-title {
    display: -webkit-box;
    overflow: hidden;
    color: #15383d;
    font-weight: 700;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.c4s-section-coupon-save {
    margin-top: 5px;
    color: #17855b;
    font-size: .82rem;
    font-weight: 700;
}

.c4s-section-coupon-cta {
    padding: 9px 12px;
    border-radius: 6px;
    background: #e55b25;
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .c4s-coupon-section-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .c4s-coupon-section {
        padding: 18px 0;
    }

    .c4s-coupon-section-header {
        align-items: flex-end;
    }

    .c4s-coupon-section-header > a {
        font-size: .85rem;
    }

    .c4s-coupon-section-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .c4s-section-coupon-card {
        padding: 11px;
    }

    .c4s-section-coupon-logo {
        flex-basis: 54px;
        width: 54px;
        height: 54px;
    }
}

/* Keep the legacy Favorite Deals widget inside the page width. */
.home .frontpage-widget-after-main,
.home .frontpage-widget-after-main .widget_top_store,
.home .frontpage-widget-after-main .favorite-deals-section,
.home .frontpage-widget-after-main .section-body {
    max-width: 100%;
    overflow-x: hidden;
}

.home .frontpage-widget-after-main > .container {
    width: calc(100% - 30px);
    max-width: 1180px;
    margin-right: auto;
    margin-left: auto;
}

.home .frontpage-widget-after-main .section-body > .left-section,
.home .frontpage-widget-after-main .section-body > .right-section,
.home .frontpage-widget-after-main .store-list,
.home .frontpage-widget-after-main .store-list .list-item,
.home .frontpage-widget-after-main .store-list .item-left,
.home .frontpage-widget-after-main .store-list .item-txt {
    min-width: 0;
    box-sizing: border-box;
}

.home .frontpage-widget-after-main .widget_top_store .bp-star-ratings {
    display: none !important;
}

/* Favorite Deals cards: match the compact Trending Coupons card style. */
.home .frontpage-widget-after-main .widget_top_store {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
}

.home .frontpage-widget-after-main .widget_top_store .section-header {
    margin: 0 0 14px;
}

.home .frontpage-widget-after-main .widget_top_store .section-header h2,
.home .frontpage-widget-after-main .widget_top_store .section-header .widget-title {
    margin: 0;
    color: #001f5b;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
}

.home .frontpage-widget-after-main .widget_top_store .section-body {
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

.home .frontpage-widget-after-main .widget_top_store .store-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

.home .frontpage-widget-after-main .widget_top_store .store-list .list-item {
    float: none !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100% !important;
    min-width: 0;
    min-height: 240px;
    margin: 0 !important;
    padding: 12px 10px !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.home .frontpage-widget-after-main .widget_top_store .store-list .list-item:hover,
.home .frontpage-widget-after-main .widget_top_store .store-list .list-item:focus-within {
    transform: translateY(-5px);
    border-color: #ff5a1f !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.08) !important;
}

.home .frontpage-widget-after-main .widget_top_store .list-item .item-left {
    float: none !important;
    display: flex !important;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center;
}

.home .frontpage-widget-after-main .widget_top_store .list-item .store-thum-img {
    float: none !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 88px !important;
    height: 58px !important;
    margin: 0 auto 10px !important;
    padding: 0 !important;
}

.home .frontpage-widget-after-main .widget_top_store .list-item .item-logo {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 88px !important;
    height: 58px !important;
    margin: 0 !important;
    padding: 6px !important;
    border-radius: 10px;
    background: #f8fafc !important;
    box-sizing: border-box;
}

.home .frontpage-widget-after-main .widget_top_store .list-item .item-logo img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 76px !important;
    max-height: 48px !important;
    margin: 0 auto !important;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.home .frontpage-widget-after-main .widget_top_store .list-item:hover .item-logo img {
    transform: scale(1.05);
}

.home .frontpage-widget-after-main .widget_top_store .list-item .item-txt {
    float: none !important;
    display: flex !important;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center;
}

.home .frontpage-widget-after-main .widget_top_store .list-item .item-left {
    min-height: 170px;
}

.home .frontpage-widget-after-main .widget_top_store .list-item .item-txt h4 {
    display: -webkit-box;
    min-height: 34px;
    margin: 0 0 6px !important;
    overflow: hidden;
    color: #001f5b !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    text-align: center;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.home .frontpage-widget-after-main .widget_top_store .list-item .item-txt p {
    display: -webkit-box;
    min-height: 36px;
    margin: 0 0 10px !important;
    overflow: hidden;
    color: #333333 !important;
    font-size: 12px !important;
    font-weight: 600;
    line-height: 1.45 !important;
    text-align: center;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.home .frontpage-widget-after-main .widget_top_store .list-item .details-btn {
    display: block !important;
    flex-shrink: 0;
    width: 100% !important;
    margin: auto 0 0 !important;
    padding: 9px 8px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #075ca8 !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-align: center;
    text-decoration: none !important;
    box-sizing: border-box;
}

.home .frontpage-widget-after-main .widget_top_store .list-item .details-btn:hover,
.home .frontpage-widget-after-main .widget_top_store .list-item .details-btn:focus {
    background: #064b88 !important;
    color: #ffffff !important;
}

@media screen and (max-width: 767px) {
    .home .frontpage-widget-after-main .widget_top_store .section-header h2,
    .home .frontpage-widget-after-main .widget_top_store .section-header .widget-title {
        font-size: 20px;
    }

    .home .frontpage-widget-after-main .widget_top_store .store-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .home .frontpage-widget-after-main .widget_top_store .store-list .list-item {
        min-height: 178px;
        padding: 10px 8px !important;
    }

    .home .frontpage-widget-after-main .widget_top_store .list-item .store-thum-img,
    .home .frontpage-widget-after-main .widget_top_store .list-item .item-logo {
        width: 78px !important;
        height: 52px !important;
    }

    .home .frontpage-widget-after-main .widget_top_store .list-item .item-logo img {
        max-width: 66px !important;
        max-height: 42px !important;
    }
}

/* How It Works Ã¢â‚¬â€ modern card layout */
.home .how-page-section.c4s-how-ready {
    position: relative;
    overflow: hidden;
    padding: 72px 0 80px !important;
    background: linear-gradient(135deg, #eef6ff 0%, #f0fdf9 45%, #faf5ff 100%) !important;
}

.home .how-page-section.c4s-how-ready::before,
.home .how-page-section.c4s-how-ready::after {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.home .how-page-section.c4s-how-ready::before {
    top: -120px;
    right: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(30, 136, 229, 0.12) 0%, rgba(30, 136, 229, 0) 70%);
}

.home .how-page-section.c4s-how-ready::after {
    bottom: -100px;
    left: -60px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(229, 91, 37, 0.1) 0%, rgba(229, 91, 37, 0) 70%);
}

.home .how-page-section.c4s-how-ready > .container {
    position: relative;
    z-index: 1;
}

.home .how-page-section.c4s-how-ready .c4s-how-heading {
    max-width: 640px;
    margin: 0 auto 52px;
    text-align: center;
}

.home .how-page-section.c4s-how-ready .how-title {
    margin: 0 0 12px !important;
    color: #1e2937 !important;
    font-size: clamp(1.75rem, 3vw, 2.25rem) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em;
}

.home .how-page-section.c4s-how-ready .c4s-how-subtitle {
    margin: 0;
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.6;
}

.home .how-page-section.c4s-how-ready .c4s-how-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
}

.home .how-page-section.c4s-how-ready .c4s-how-card {
    position: relative;
    max-width: none !important;
    margin: 0 !important;
    padding: 32px 28px 30px;
    border: 1px solid rgba(30, 136, 229, 0.1);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
    text-align: center;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.home .how-page-section.c4s-how-ready .c4s-how-card:hover,
.home .how-page-section.c4s-how-ready .c4s-how-card:focus-within {
    transform: translateY(-8px);
    border-color: rgba(30, 136, 229, 0.22);
    box-shadow: 0 18px 44px rgba(30, 136, 229, 0.14);
}

.home .how-page-section.c4s-how-ready .c4s-how-card::after {
    position: absolute;
    top: 50%;
    right: -18px;
    z-index: 2;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    color: #1e88e5;
    font-size: 14px;
    font-weight: 700;
    line-height: 28px;
    text-align: center;
    content: "\2192";
    transform: translateY(-50%);
}

.home .how-page-section.c4s-how-ready .c4s-how-card:last-child::after {
    display: none;
}

.home .how-page-section.c4s-how-ready .c4s-how-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.home .how-page-section.c4s-how-ready .c4s-how-step-icon {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(30, 136, 229, 0.28);
}

.home .how-page-section.c4s-how-ready .c4s-how-step-label {
    color: #1e88e5;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home .how-page-section.c4s-how-ready .how-text-title {
    display: block;
    margin: 0 0 14px !important;
    color: #1e2937 !important;
    font-size: 1.15rem !important;
    line-height: 1.45 !important;
}

.home .how-page-section.c4s-how-ready .c4s-how-card p {
    margin: 0 !important;
    color: #64748b !important;
    font-size: 0.98rem;
    line-height: 1.7 !important;
}

@media (max-width: 991px) {
    .home .how-page-section.c4s-how-ready {
        padding: 56px 0 64px !important;
    }

    .home .how-page-section.c4s-how-ready .c4s-how-grid {
        grid-template-columns: 1fr;
        gap: 22px;
        max-width: 560px;
        margin: 0 auto;
    }

    .home .how-page-section.c4s-how-ready .c4s-how-card::after {
        top: auto;
        right: auto;
        bottom: -16px;
        left: 50%;
        transform: translateX(-50%) rotate(90deg);
    }

    .home .how-page-section.c4s-how-ready .c4s-how-card:last-child::after {
        display: none;
    }
}

@media (max-width: 560px) {
    .home .how-page-section.c4s-how-ready .c4s-how-heading {
        margin-bottom: 36px;
    }

    .home .how-page-section.c4s-how-ready .c4s-how-card {
        padding: 26px 22px 24px;
    }

    .home .how-page-section.c4s-how-ready .c4s-how-step-icon {
        width: 56px;
        height: 56px;
        border-radius: 16px;
    }
}

/* All Stores page Ã¢â‚¬â€ unified cards like Trending Coupons */
.all-store.c4s-all-stores-ready .store-letter-content,
.all-store.c4s-all-stores-ready .store-letter-contents {
    display: none !important;
}

.all-store.c4s-all-stores-ready .c4s-all-stores-grid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin: 0 !important;
}

.all-store.c4s-all-stores-ready .c4s-all-store-card {
    float: none !important;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid #e4eaf1 !important;
    border-radius: 11px !important;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 31, 91, 0.07) !important;
    box-sizing: border-box;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.all-store.c4s-all-stores-ready .c4s-all-store-card:hover,
.all-store.c4s-all-stores-ready .c4s-all-store-card:focus-within {
    border-color: #bfcfe2 !important;
    box-shadow: 0 9px 22px rgba(0, 31, 91, 0.13) !important;
    transform: translateY(-4px);
}

.all-store.c4s-all-stores-ready .c4s-all-store-card-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    padding: 12px 10px 14px;
    color: inherit;
    text-decoration: none;
    box-sizing: border-box;
}

.all-store.c4s-all-stores-ready .c4s-all-store-count {
    display: inline-block;
    max-width: 100%;
    margin: 0 0 10px;
    padding: 4px 8px;
    overflow: hidden;
    border-radius: 10px;
    background: #eaf3ff;
    color: #075ca8;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.all-store.c4s-all-stores-ready .c4s-all-store-logo {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 88px;
    margin: 0 0 10px;
    padding: 8px;
    border-radius: 8px;
    box-sizing: border-box;
}

.all-store.c4s-all-stores-ready .c4s-all-store-logo img {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 82px !important;
    max-height: 76px !important;
    margin: 0 auto;
    float: none !important;
    border-radius: 0 !important;
    object-fit: contain;
    box-shadow: none !important;
}

.all-store.c4s-all-stores-ready .c4s-all-store-name {
    display: block;
    width: 100%;
    color: #001f5b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    word-break: break-word;
}

.all-store.c4s-all-stores-ready .store-tab-title h3 {
    color: #001f5b;
    font-size: 1.25rem;
    font-weight: 700;
}

@media screen and (max-width: 1023px) {
    .all-store.c4s-all-stores-ready .c4s-all-stores-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media screen and (max-width: 767px) {
    .all-store.c4s-all-stores-ready .c4s-all-stores-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 9px;
    }

    .all-store.c4s-all-stores-ready .c4s-all-store-logo {
        height: 80px;
    }

    .all-store.c4s-all-stores-ready .c4s-all-store-logo img {
        max-width: 72px !important;
        max-height: 66px !important;
    }
}

@media screen and (max-width: 560px) {
    .all-store.c4s-all-stores-ready .c4s-all-stores-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .all-store.c4s-all-stores-ready .c4s-all-store-card-link {
        padding: 10px 8px 12px;
    }

    .all-store.c4s-all-stores-ready .c4s-all-store-name {
        font-size: 12px;
    }
}

/* Coupon4Sure unified site skin: header, footer, page background and common buttons. */
:root {
  --c4s-navy: #1e2937;
  --c4s-navy-soft: #27364a;
  --c4s-blue: #246bdf;
  --c4s-blue-dark: #174fa9;
  --c4s-accent: #ff9900;
  --c4s-page-bg: #eef6ff;
  --c4s-card-bg: #ffffff;
  --c4s-text: #0f172a;
  --c4s-muted: #64748b;
  --c4s-border: #dbeafe;
}

html,
body {
  background: var(--c4s-page-bg) !important;
}

body,
button,
input,
select,
textarea {
  color: var(--c4s-text);
  font-family: inherit;
}

body #page,
body .site,
body .site-content,
body #content,
body .content-area,
body .site-main {
  background-color: var(--c4s-page-bg);
}

body .primary-header,
body .site-header .primary-header {
  background: var(--c4s-navy) !important;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

body .site-header .primary-navigation .st-menu > li > a,
body .site-header .primary-navigation .st-menu > li > a:hover,
body .site-header .primary-navigation .st-menu > li.current-menu-item > a,
body .primary-header a {
  color: #ffffff;
}

body .site-header .primary-navigation .st-menu > li > a:hover,
body .site-header .primary-navigation .st-menu > li > a:focus,
body .primary-header a:hover,
body .primary-header a:focus {
  color: #dbeafe;
}

body .site-footer,
body #colophon,
body footer.site-footer,
body .footer-widgets,
body .footer-widget-area,
body .footer-area,
body .footer-bottom,
body .copyright-area {
  background: var(--c4s-navy) !important;
  color: #e5edf8 !important;
  font-family: inherit;
}

body .site-footer *,
body #colophon *,
body footer.site-footer *,
body .footer-widgets *,
body .footer-widget-area *,
body .footer-area *,
body .footer-bottom *,
body .copyright-area * {
  color: inherit;
}

body .site-footer a,
body #colophon a,
body footer.site-footer a,
body .footer-widgets a,
body .footer-widget-area a,
body .footer-area a,
body .footer-bottom a,
body .copyright-area a {
  color: #ffffff !important;
  font-weight: 600;
  text-decoration: none;
}

body .site-footer a:hover,
body .site-footer a:focus,
body #colophon a:hover,
body #colophon a:focus,
body footer.site-footer a:hover,
body footer.site-footer a:focus,
body .footer-widgets a:hover,
body .footer-widget-area a:hover,
body .footer-area a:hover,
body .footer-bottom a:hover,
body .copyright-area a:hover {
  color: var(--c4s-accent) !important;
  text-decoration: none;
}

body .site-footer .widget-title,
body #colophon .widget-title,
body footer.site-footer .widget-title,
body .footer-widgets .widget-title,
body .footer-widget-area .widget-title,
body .footer-area .widget-title {
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

body .site-footer input,
body #colophon input,
body footer.site-footer input,
body .footer-widgets input,
body .footer-widget-area input,
body .footer-area input {
  border-color: rgba(255, 255, 255, 0.18) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

body .site-footer input::placeholder,
body #colophon input::placeholder,
body footer.site-footer input::placeholder,
body .footer-widgets input::placeholder,
body .footer-widget-area input::placeholder,
body .footer-area input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

body .content-area,
body .site-main,
body .entry-content,
body .page-content,
body .widget,
body article,
body .coupon-listing-item,
body .store-listing-item,
body .all-store.c4s-all-stores-ready .c4s-all-store-card-link,
body .c4s-section-coupon-card,
body .c4s-travel-deal-card,
body .c4s-store-logo-row-link,
body .c4s-top-category-card {
  border-color: var(--c4s-border);
}

body .entry-content,
body .page-content,
body .coupon-listing-item,
body .store-listing-item,
body .all-store.c4s-all-stores-ready .c4s-all-store-card-link,
body .c4s-section-coupon-card,
body .c4s-travel-deal-card,
body .c4s-store-logo-row-link,
body .c4s-top-category-card {
  background-color: var(--c4s-card-bg);
}

body a {
  color: var(--c4s-blue);
}

body a:hover,
body a:focus {
  color: var(--c4s-blue-dark);
}

body button,
body input[type="button"],
body input[type="submit"],
body input[type="reset"],
body .button,
body .ui.button,
body a.button,
body .wp-block-button__link,
body .coupon-button-type .coupon-code,
body .coupon-button-type .coupon-deal,
body .coupon-button-type .coupon-print,
body .c4s-travel-deal-button,
body .c4s-section-coupon-button,
body .c4s-store-partner-button {
  border: 0 !important;
  border-radius: 9px !important;
  background: linear-gradient(135deg, var(--c4s-blue) 0%, var(--c4s-blue-dark) 100%) !important;
  color: #ffffff !important;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 7px 18px rgba(36, 107, 223, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body button:hover,
body button:focus,
body input[type="button"]:hover,
body input[type="button"]:focus,
body input[type="submit"]:hover,
body input[type="submit"]:focus,
body input[type="reset"]:hover,
body input[type="reset"]:focus,
body .button:hover,
body .button:focus,
body .ui.button:hover,
body .ui.button:focus,
body a.button:hover,
body a.button:focus,
body .wp-block-button__link:hover,
body .wp-block-button__link:focus,
body .coupon-button-type .coupon-code:hover,
body .coupon-button-type .coupon-deal:hover,
body .coupon-button-type .coupon-print:hover,
body .c4s-travel-deal-button:hover,
body .c4s-travel-deal-button:focus,
body .c4s-section-coupon-button:hover,
body .c4s-section-coupon-button:focus,
body .c4s-store-partner-button:hover,
body .c4s-store-partner-button:focus {
  background: linear-gradient(135deg, var(--c4s-blue-dark) 0%, #123f87 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(36, 107, 223, 0.28);
  transform: translateY(-1px);
}

body .primary-header .header-search-relocated .header-search-submit,
body .site-footer button,
body #colophon button,
body footer.site-footer button,
body .footer-widgets button,
body .footer-widget-area button,
body .footer-area button,
body .footer-bottom button,
body .site-footer input[type="submit"],
body #colophon input[type="submit"],
body footer.site-footer input[type="submit"],
body .footer-widgets input[type="submit"],
body .footer-widget-area input[type="submit"],
body .footer-area input[type="submit"],
body .footer-bottom input[type="submit"] {
  background: linear-gradient(135deg, var(--c4s-accent) 0%, #f97316 100%) !important;
  color: #111827 !important;
}

/* Premium How It Works, Newsletter and Footer refresh. */
.home .how-page-section.c4s-how-ready {
  overflow: hidden;
  padding: 70px 0 74px !important;
  background: #ffffff !important;
}

.home .how-page-section.c4s-how-ready::before,
.home .how-page-section.c4s-how-ready::after {
  display: none !important;
}

.home .how-page-section.c4s-how-ready > .container {
  width: calc(100% - 30px);
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
}

.home .how-page-section.c4s-how-ready .c4s-how-heading {
  max-width: 680px;
  margin: 0 auto 46px;
  text-align: center;
}

.home .how-page-section.c4s-how-ready .how-title {
  margin: 0 0 12px !important;
  color: #0f172a !important;
  font-size: clamp(2rem, 3vw, 2.6rem) !important;
  font-weight: 850 !important;
  line-height: 1.12 !important;
  letter-spacing: -0.03em;
}

.home .how-page-section.c4s-how-ready .c4s-how-subtitle {
  margin: 0;
  color: #64748b;
  font-size: 1.05rem;
  line-height: 1.7;
}

.home .how-page-section.c4s-how-ready .c4s-how-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 24px;
  align-items: stretch;
}

.home .how-page-section.c4s-how-ready .c4s-how-card {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  min-height: 255px;
  margin: 0 !important;
  padding: 30px 24px 28px !important;
  border: 1px solid #e8eef7;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.08);
  text-align: left;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.home .how-page-section.c4s-how-ready .c4s-how-card:hover,
.home .how-page-section.c4s-how-ready .c4s-how-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(255, 122, 0, 0.28);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.13);
}

.home .how-page-section.c4s-how-ready .c4s-how-card::before {
  position: absolute;
  top: 58px;
  right: -24px;
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, #cbd5e1, rgba(203, 213, 225, 0));
  content: "";
}

.home .how-page-section.c4s-how-ready .c4s-how-card::after {
  position: absolute;
  top: 53px;
  right: -31px;
  width: 10px;
  height: 10px;
  border-top: 1.5px solid #cbd5e1;
  border-right: 1.5px solid #cbd5e1;
  background: transparent !important;
  box-shadow: none !important;
  transform: rotate(45deg);
  content: "";
}

.home .how-page-section.c4s-how-ready .c4s-how-card:nth-child(4n)::before,
.home .how-page-section.c4s-how-ready .c4s-how-card:nth-child(4n)::after {
  display: none !important;
}

.home .how-page-section.c4s-how-ready .c4s-how-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin: 0 0 20px;
}

.home .how-page-section.c4s-how-ready .c4s-how-step-icon {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: #fff3e6;
  color: #ff7a00;
  box-shadow: inset 0 0 0 1px rgba(255, 122, 0, 0.14);
}

.home .how-page-section.c4s-how-ready .c4s-how-card:nth-child(2) .c4s-how-step-icon {
  background: #eaf3ff;
  color: #246bdf;
  box-shadow: inset 0 0 0 1px rgba(36, 107, 223, 0.14);
}

.home .how-page-section.c4s-how-ready .c4s-how-card:nth-child(3) .c4s-how-step-icon {
  background: #ecfdf5;
  color: #059669;
  box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.14);
}

.home .how-page-section.c4s-how-ready .c4s-how-card:nth-child(4) .c4s-how-step-icon {
  background: #f5f3ff;
  color: #7c3aed;
  box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.14);
}

.home .how-page-section.c4s-how-ready .c4s-how-step-label {
  color: #ff7a00;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.home .how-page-section.c4s-how-ready .how-text-title {
  margin: 0 0 12px !important;
  color: #0f172a !important;
  font-size: 1.2rem !important;
  font-weight: 850 !important;
  line-height: 1.3 !important;
}

.home .how-page-section.c4s-how-ready .c4s-how-card p {
  margin: 0 !important;
  color: #64748b !important;
  font-size: 0.98rem;
  line-height: 1.7 !important;
}

.c4s-newsletter-section {
  padding: 54px 15px;
  background: #fff2e8;
}

.c4s-newsletter-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 34px;
  border: 1px solid rgba(255, 122, 0, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 18px 42px rgba(124, 45, 18, 0.08);
  box-sizing: border-box;
}

.c4s-newsletter-copy h2 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: clamp(1.6rem, 2.3vw, 2.15rem);
  font-weight: 850;
  letter-spacing: -0.02em;
}

.c4s-newsletter-copy p {
  max-width: 620px;
  margin: 0;
  color: #64748b;
  font-size: 1rem;
  line-height: 1.7;
}

.c4s-newsletter-form {
  display: flex;
  gap: 10px;
  width: 100%;
  margin: 0;
}

.c4s-newsletter-form input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.96rem;
  outline: none;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.c4s-newsletter-form input[type="email"]:focus {
  border-color: #ff7a00;
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.14), 0 8px 18px rgba(15, 23, 42, 0.05);
}

.c4s-newsletter-form button {
  flex: 0 0 auto;
  height: 52px;
  padding: 0 24px !important;
  border-radius: 14px !important;
  background: #ff7a00 !important;
  color: #111827 !important;
  box-shadow: 0 12px 24px rgba(255, 122, 0, 0.24) !important;
}

.c4s-newsletter-form button:hover,
.c4s-newsletter-form button:focus {
  background: #e86d00 !important;
  color: #111827 !important;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(255, 122, 0, 0.32) !important;
}

body #colophon.site-footer.c4s-premium-footer,
body .site-footer.c4s-premium-footer {
  padding: 60px 15px !important;
  background: #0f172a !important;
  color: #cbd5e1 !important;
}

.c4s-premium-footer .c4s-footer-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.c4s-footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(0, 1fr));
  gap: 42px;
}

.c4s-footer-logo {
  display: inline-flex;
  align-items: center;
  max-width: 180px;
  margin-bottom: 20px;
}

.c4s-footer-logo img {
  display: block;
  width: auto;
  max-width: 180px;
  max-height: 58px;
  object-fit: contain;
}

.c4s-footer-brand p {
  max-width: 360px;
  margin: 0;
  color: #cbd5e1 !important;
  font-size: 0.96rem;
  line-height: 1.75;
}

.c4s-footer-column h2 {
  margin: 0 0 18px;
  color: #ffffff !important;
  font-size: 1rem;
  font-weight: 850;
}

.c4s-footer-column ul,
.c4s-payment-icons {
  margin: 0;
  padding: 0;
  list-style: none;
}

.c4s-footer-column li + li {
  margin-top: 10px;
}

.c4s-footer-column a {
  color: #cbd5e1 !important;
  font-size: 0.95rem;
  font-weight: 500 !important;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.c4s-footer-column a:hover,
.c4s-footer-column a:focus {
  color: #ff7a00 !important;
  transform: translateX(3px);
}

.c4s-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid rgba(203, 213, 225, 0.16);
}

.c4s-footer-bottom p {
  margin: 0;
  color: #94a3b8 !important;
  font-size: 0.92rem;
}

.c4s-payment-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.c4s-payment-icons li {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(203, 213, 225, 0.2);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff !important;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

@media screen and (max-width: 1023px) {
  .home .how-page-section.c4s-how-ready .c4s-how-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .home .how-page-section.c4s-how-ready .c4s-how-card:nth-child(2n)::before,
  .home .how-page-section.c4s-how-ready .c4s-how-card:nth-child(2n)::after {
    display: none !important;
  }

  .c4s-newsletter-inner,
  .c4s-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .c4s-footer-brand {
    grid-column: 1 / -1;
  }
}

@media screen and (max-width: 767px) {
  .home .how-page-section.c4s-how-ready {
    padding: 52px 0 56px !important;
  }

  .home .how-page-section.c4s-how-ready .c4s-how-grid,
  .c4s-newsletter-inner,
  .c4s-footer-grid {
    grid-template-columns: 1fr !important;
  }

  .home .how-page-section.c4s-how-ready .c4s-how-card::before,
  .home .how-page-section.c4s-how-ready .c4s-how-card::after {
    display: none !important;
  }

  .home .how-page-section.c4s-how-ready .c4s-how-card {
    min-height: auto;
    padding: 26px 22px !important;
  }

  .c4s-newsletter-section {
    padding: 38px 12px;
  }

  .c4s-newsletter-inner {
    padding: 26px 18px;
    border-radius: 20px;
  }

  .c4s-newsletter-form {
    flex-direction: column;
  }

  .c4s-newsletter-form button,
  .c4s-newsletter-form input[type="email"] {
    width: 100%;
  }

  body #colophon.site-footer.c4s-premium-footer,
  body .site-footer.c4s-premium-footer {
    padding: 30px 14px 24px !important;
  }

  .c4s-footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px 12px;
  }

  .c4s-footer-brand {
    grid-column: 1 / -1;
  }

  .c4s-footer-logo {
    max-width: 138px;
    margin-bottom: 10px;
  }

  .c4s-footer-logo img {
    max-width: 138px;
    max-height: 44px;
  }

  .c4s-footer-brand p {
    max-width: none;
    font-size: 0.82rem;
    line-height: 1.48;
  }

  body #colophon.site-footer.c4s-premium-footer .c4s-footer-column h2,
  .c4s-footer-column h2 {
    margin-bottom: 8px;
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .c4s-footer-column li + li {
    margin-top: 4px;
  }

  body #colophon.site-footer.c4s-premium-footer .c4s-footer-column a,
  .c4s-footer-column a {
    font-size: 0.75rem;
    line-height: 1.25;
  }

  .c4s-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    margin-top: 24px;
    padding-top: 16px;
  }

  .c4s-footer-bottom p {
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .c4s-payment-icons {
    justify-content: flex-start;
  }
}

@media screen and (max-width: 420px) {
  body #colophon.site-footer.c4s-premium-footer,
  body .site-footer.c4s-premium-footer {
    padding: 26px 12px 22px !important;
  }

  .c4s-footer-grid {
    gap: 18px 10px;
  }

  body #colophon.site-footer.c4s-premium-footer .c4s-footer-column a,
  .c4s-footer-column a {
    font-size: 0.72rem;
  }
}

/* Professional homepage hero slider ratio: full banner visible, no crop/stretch. */
body.home .c4s-banner-section {
  padding: 14px 0 18px !important;
}

body.home .c4s-banner-section > .container {
  width: calc(100% - 30px) !important;
  max-width: 1200px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

body.home .c4s-banner-slider {
  width: 100% !important;
  max-width: 1200px !important;
  aspect-ratio: 3.6 / 1;
  height: clamp(315px, 27.77vw, 360px) !important;
  max-height: 360px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  background: #ffffff !important;
}

body.home .c4s-banner-slides,
body.home .c4s-banner-slide,
body.home .c4s-banner-slide > a,
body.home .c4s-banner-media {
  width: 100% !important;
  height: 100% !important;
}

body.home .c4s-banner-slide {
  aspect-ratio: 3.6 / 1;
  max-height: 360px !important;
}

body.home .c4s-banner-media {
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #ffffff !important;
}

body.home .c4s-banner-media .c4s-banner-blur,
body.home .c4s-banner-overlay {
  display: none !important;
}

body.home .c4s-banner-media .c4s-banner-foreground {
  position: relative !important;
  inset: auto !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  object-position: center !important;
}

@media screen and (max-width: 767px) {
  body.home .c4s-banner-section {
    padding: 10px 0 14px !important;
  }

  body.home .c4s-banner-section > .container {
    width: calc(100% - 24px) !important;
  }

  body.home .c4s-banner-slider {
    height: auto !important;
    min-height: 0 !important;
  }
}

@media screen and (max-width: 480px) {
  body.home .c4s-banner-section {
    padding: 10px 0 14px !important;
  }

  body.home .c4s-banner-slider {
    height: clamp(128px, 34vw, 150px) !important;
    min-height: 128px !important;
    max-height: 150px !important;
    aspect-ratio: auto !important;
  }

  body.home .c4s-banner-slides,
  body.home .c4s-banner-slide,
  body.home .c4s-banner-slide > a,
  body.home .c4s-banner-media {
    height: 100% !important;
    min-height: 128px !important;
  }

  body.home .c4s-banner-media .c4s-banner-foreground {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }
}

/* Coupon4Sure final sky-blue live overrides */
:root {
  --c4s-navy: #075985;
  --c4s-navy-soft: #e0f2fe;
  --c4s-blue: #0ea5e9;
  --c4s-blue-dark: #0284c7;
  --c4s-accent: #38bdf8;
  --c4s-page-bg: #eef8ff;
  --c4s-card-bg: #ffffff;
  --c4s-text: #0f172a;
  --c4s-muted: #475569;
  --c4s-border: #bae6fd;
}

html,
body,
body #page,
body .site,
body .site-content,
body #content,
body .content-area,
body .site-main {
  background: #eef8ff !important;
}

body .primary-header,
body .site-header .primary-header {
  background: linear-gradient(180deg, #f6fcff 0%, #dff4ff 100%) !important;
  border-bottom: 1px solid #bae6fd !important;
  color: #075985 !important;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.16) !important;
}

body .site-header .primary-navigation .st-menu > li > a,
body .site-header .primary-navigation .st-menu > li.current-menu-item > a,
body .primary-header a {
  color: #075985 !important;
}

body .site-header .primary-navigation .st-menu > li > a:hover,
body .site-header .primary-navigation .st-menu > li > a:focus,
body .primary-header a:hover,
body .primary-header a:focus {
  color: #0284c7 !important;
}

body .site-header #nav_toggle_open,
body .site-header #nav_toggle_open .bars.icon,
body .site-header #nav_toggle_open .bars.icon::before,
body .site-header #nav_toggle_close,
body .site-header #nav_toggle_close .close.icon,
body .site-header #nav_toggle_close .close.icon::before {
  color: #075985 !important;
}

body #colophon.site-footer.c4s-premium-footer,
body .site-footer.c4s-premium-footer,
body .site-footer,
body #colophon,
body footer.site-footer {
  background: linear-gradient(180deg, #e0f2fe 0%, #bae6fd 100%) !important;
  color: #075985 !important;
}

body #colophon.site-footer.c4s-premium-footer *,
body .site-footer.c4s-premium-footer *,
body .site-footer *,
body #colophon * {
  color: inherit;
}

body #colophon.site-footer.c4s-premium-footer a,
body .site-footer.c4s-premium-footer a,
body .site-footer a,
body #colophon a {
  color: #075985 !important;
}

body #colophon.site-footer.c4s-premium-footer a:hover,
body #colophon.site-footer.c4s-premium-footer a:focus,
body .site-footer.c4s-premium-footer a:hover,
body .site-footer.c4s-premium-footer a:focus,
body .site-footer a:hover,
body .site-footer a:focus,
body #colophon a:hover,
body #colophon a:focus {
  color: #0284c7 !important;
}

body #colophon.site-footer.c4s-premium-footer .c4s-footer-column h2,
body .site-footer.c4s-premium-footer .c4s-footer-column h2,
body .site-footer .widget-title,
body #colophon .widget-title {
  color: #075985 !important;
}

body .c4s-footer-bottom {
  border-top-color: rgba(7, 89, 133, 0.18) !important;
}

body .c4s-footer-bottom p,
body .c4s-footer-brand p {
  color: #0c4a6e !important;
}

body .site-header .logo_area img,
body #colophon.site-footer.c4s-premium-footer .c4s-footer-logo img,
body .site-footer.c4s-premium-footer .c4s-footer-logo img {
  max-height: 58px !important;
  width: auto !important;
}

body .primary-header .header-search-relocated .header-search-submit,
body button,
body input[type="button"],
body input[type="submit"],
body input[type="reset"],
body .button,
body .ui.button,
body a.button,
body .wp-block-button__link,
body .trnd-get-code-btn,
body a.coupon-deal.trnd-get-code-btn,
body .get-deal-btn,
body .coupon-btn,
body .deal-btn,
body .coupon-button-type .coupon-code,
body .coupon-button-type .coupon-code .get-code,
body .coupon-button-type .coupon-deal,
body .coupon-button-type .coupon-print,
body .home .content-before-main-section .tending-coupon-listing-item .trnd-get-code-btn,
body .c4s-travel-deal-button,
body .c4s-section-coupon-button,
body .home .frontpage-widget-after-main .widget_top_store .list-item .details-btn,
body .store-list .list-item a.details-btn,
body .c4s-store-partner-button,
body .c4s-newsletter-form button {
  border: 0 !important;
  border-radius: 8px !important;
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(14, 165, 233, 0.28) !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease !important;
}

body .coupon-button-type .coupon-code {
  border: 2px solid #0ea5e9 !important;
}

body .coupon-button-type .coupon-code .get-code::after {
  border-left-color: #0ea5e9 !important;
}

body .primary-header .header-search-relocated .header-search-submit:hover,
body .primary-header .header-search-relocated .header-search-submit:focus,
body button:hover,
body button:focus,
body input[type="button"]:hover,
body input[type="button"]:focus,
body input[type="submit"]:hover,
body input[type="submit"]:focus,
body input[type="reset"]:hover,
body input[type="reset"]:focus,
body .button:hover,
body .button:focus,
body .ui.button:hover,
body .ui.button:focus,
body a.button:hover,
body a.button:focus,
body .wp-block-button__link:hover,
body .wp-block-button__link:focus,
body .trnd-get-code-btn:hover,
body .trnd-get-code-btn:focus,
body a.coupon-deal.trnd-get-code-btn:hover,
body a.coupon-deal.trnd-get-code-btn:focus,
body .get-deal-btn:hover,
body .get-deal-btn:focus,
body .coupon-btn:hover,
body .coupon-btn:focus,
body .deal-btn:hover,
body .deal-btn:focus,
body .coupon-button-type .coupon-code:hover,
body .coupon-button-type .coupon-code:focus,
body .coupon-button-type .coupon-code:hover .get-code,
body .coupon-button-type .coupon-deal:hover,
body .coupon-button-type .coupon-deal:focus,
body .coupon-button-type .coupon-print:hover,
body .coupon-button-type .coupon-print:focus,
body .home .content-before-main-section .tending-coupon-listing-item .trnd-get-code-btn:hover,
body .home .content-before-main-section .tending-coupon-listing-item .trnd-get-code-btn:focus,
body .c4s-travel-deal-button:hover,
body .c4s-travel-deal-button:focus,
body .c4s-section-coupon-button:hover,
body .c4s-section-coupon-button:focus,
body .home .frontpage-widget-after-main .widget_top_store .list-item .details-btn:hover,
body .home .frontpage-widget-after-main .widget_top_store .list-item .details-btn:focus,
body .store-list .list-item a.details-btn:hover,
body .store-list .list-item a.details-btn:focus,
body .c4s-store-partner-button:hover,
body .c4s-store-partner-button:focus,
body .c4s-newsletter-form button:hover,
body .c4s-newsletter-form button:focus {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(2, 132, 199, 0.34) !important;
  transform: translateY(-2px) !important;
}

body .coupon-button-type .coupon-code:hover .get-code::after {
  border-left-color: #0284c7 !important;
}

/* Coupon4Sure restore dark header and footer */
:root {
  --c4s-navy: #1e2937;
  --c4s-navy-soft: #27364a;
  --c4s-accent: #ff9900;
}

body .primary-header,
body .site-header .primary-header {
  background: #1e2937 !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12) !important;
}

body .site-header .primary-navigation .st-menu > li > a,
body .site-header .primary-navigation .st-menu > li > a:hover,
body .site-header .primary-navigation .st-menu > li.current-menu-item > a,
body .primary-header a {
  color: #ffffff !important;
}

body .site-header .primary-navigation .st-menu > li > a:hover,
body .site-header .primary-navigation .st-menu > li > a:focus,
body .primary-header a:hover,
body .primary-header a:focus {
  color: #dbeafe !important;
}

body .site-header #nav_toggle_open,
body .site-header #nav_toggle_open .bars.icon,
body .site-header #nav_toggle_open .bars.icon::before,
body .site-header #nav_toggle_close,
body .site-header #nav_toggle_close .close.icon,
body .site-header #nav_toggle_close .close.icon::before {
  color: #ffffff !important;
}

body #colophon.site-footer.c4s-premium-footer,
body .site-footer.c4s-premium-footer,
body .site-footer,
body #colophon,
body footer.site-footer {
  background: #1e2937 !important;
  color: #e5edf8 !important;
}

body #colophon.site-footer.c4s-premium-footer a,
body .site-footer.c4s-premium-footer a,
body .site-footer a,
body #colophon a {
  color: #ffffff !important;
}

body #colophon.site-footer.c4s-premium-footer a:hover,
body #colophon.site-footer.c4s-premium-footer a:focus,
body .site-footer.c4s-premium-footer a:hover,
body .site-footer.c4s-premium-footer a:focus,
body .site-footer a:hover,
body .site-footer a:focus,
body #colophon a:hover,
body #colophon a:focus {
  color: #ff7a00 !important;
}

body #colophon.site-footer.c4s-premium-footer .c4s-footer-column h2,
body .site-footer.c4s-premium-footer .c4s-footer-column h2,
body .site-footer .widget-title,
body #colophon .widget-title {
  color: #ffffff !important;
}

body .c4s-footer-bottom {
  border-top-color: rgba(203, 213, 225, 0.16) !important;
}

body .c4s-footer-bottom p {
  color: #94a3b8 !important;
}

body .c4s-footer-brand p {
  color: #cbd5e1 !important;
}
/* Keep the All Stores partner CTA clickable above the static footer sections. */
.c4s-store-partner-cta {
  position: relative;
  z-index: 5;
  isolation: isolate;
}

.c4s-store-partner-actions,
.c4s-store-partner-actions a {
  position: relative;
  z-index: 6;
  pointer-events: auto;
}

body:not(.home) .how-page-section.c4s-static-how-section {
  position: relative;
  z-index: 1;
  clear: both;
  display: flow-root;
  width: 100%;
  float: none;
  overflow: hidden;
}

body:not(.home) .how-page-section.c4s-static-how-section .container,
body:not(.home) .how-page-section.c4s-static-how-section .c4s-how-heading,
body:not(.home) .how-page-section.c4s-static-how-section .c4s-how-grid {
  display: flow-root;
  clear: both;
}

body:not(.home) .how-page-section.c4s-static-how-section .c4s-how-heading {
  height: auto;
  min-height: 0;
  margin: 0 auto 42px;
  text-align: center;
  pointer-events: none;
}

/* Keep the Categories mega menu readable over the white dropdown panel. */
@media screen and (min-width: 1024px) {
  body .primary-header .c4s-mega-menu,
  body .site-header .primary-navigation .st-menu > li.c4s-mega-menu-item > .c4s-mega-menu {
    background: #ffffff !important;
  }

  body .primary-header .c4s-mega-menu .c4s-mega-menu-heading,
  body .site-header .primary-navigation .st-menu > li.c4s-mega-menu-item > .c4s-mega-menu .c4s-mega-menu-heading {
    color: #082f49 !important;
  }

  body .primary-header .c4s-mega-menu .c4s-mega-menu-category > a,
  body .site-header .primary-navigation .st-menu > li.c4s-mega-menu-item > .c4s-mega-menu .c4s-mega-menu-category > a,
  body .primary-header .c4s-mega-menu a,
  body .site-header .primary-navigation .st-menu > li.c4s-mega-menu-item > .c4s-mega-menu a {
    color: #082f49 !important;
  }

  body .primary-header .c4s-mega-menu .c4s-mega-menu-category > a:hover,
  body .primary-header .c4s-mega-menu .c4s-mega-menu-category > a:focus,
  body .site-header .primary-navigation .st-menu > li.c4s-mega-menu-item > .c4s-mega-menu .c4s-mega-menu-category > a:hover,
  body .site-header .primary-navigation .st-menu > li.c4s-mega-menu-item > .c4s-mega-menu .c4s-mega-menu-category > a:focus {
    color: #075985 !important;
  }
}

/* Public Submit Coupon homepage-section selector. */
.c4s-submit-homepage-sections {
  padding: 16px 18px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
}

.c4s-submit-homepage-sections > label {
  display: block;
  margin-bottom: 10px !important;
  color: #082f49 !important;
  font-weight: 800 !important;
}

.c4s-submit-homepage-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}

.c4s-submit-homepage-section-option {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  margin: 0 !important;
  color: #082f49 !important;
  font-size: 14px;
  font-weight: 600 !important;
  line-height: 1.35;
}

.c4s-submit-homepage-section-option input {
  flex: 0 0 auto;
  margin-top: 2px;
}

.c4s-submit-homepage-sections .description {
  margin: 10px 0 0;
  color: #475569;
  font-size: 13px;
}

@media screen and (max-width: 767px) {
  .c4s-submit-homepage-section-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile header search toggle: desktop/tablet keeps the existing header search. */
.c4s-mobile-search-toggle,
.c4s-mobile-search-close {
  display: none;
}

@media screen and (max-width: 767px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body .site-header,
  body .site-header .primary-header {
    overflow: visible;
  }

  body .primary-header > .container {
    grid-template-columns: 44px minmax(0, 1fr) 44px !important;
    width: 100%;
    max-width: 100%;
  }

  body .primary-header .header-search-relocated {
    grid-column: 3;
    grid-row: 1;
    display: flex !important;
    justify-content: flex-end;
    align-items: center;
    width: 44px !important;
    max-width: 44px !important;
    min-width: 44px !important;
    height: 44px;
    margin: 0 !important;
    position: relative;
    z-index: 1002;
  }

  body .primary-header .header-search-relocated #header-search {
    position: absolute !important;
    top: calc(100% + 10px);
    right: 0;
    display: block !important;
    width: min(360px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    margin: 0 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
    z-index: 1003;
  }

  body .primary-header .header-search-relocated.c4s-mobile-search-open #header-search {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition-delay: 0s;
  }

  body .primary-header .header-search-relocated .header-search-input {
    display: block !important;
    width: 100% !important;
    height: 44px !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: 0 14px 34px rgba(2, 8, 23, 0.22) !important;
  }

  body .primary-header .header-search-relocated #header-search input[type="text"] {
    width: 100% !important;
    height: 44px !important;
    padding: 0 88px 0 14px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    line-height: 44px !important;
  }

  body .primary-header .header-search-relocated .header-search-submit {
    right: 0 !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 0 8px 8px 0 !important;
  }

  body .primary-header .header-search-relocated .c4s-mobile-search-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
  }

  body .primary-header .header-search-relocated .c4s-mobile-search-toggle .search.icon {
    margin: 0;
    color: #ffffff;
    font-size: 22px;
  }

  body .primary-header .header-search-relocated .c4s-mobile-search-close {
    position: absolute;
    top: 0;
    right: 44px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #0f172a;
    cursor: pointer;
    z-index: 2;
  }

  body .primary-header .header-search-relocated .c4s-mobile-search-close .close.icon {
    margin: 0;
    color: #0f172a;
    font-size: 15px;
  }

  body .primary-header .header-search-relocated .results {
    top: calc(100% + 6px) !important;
    right: 0 !important;
    left: auto !important;
    width: min(360px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    z-index: 1004 !important;
  }
}

/* Mobile compact cards for "Some of our Favorite Deals of the Season" only. */
@media screen and (max-width: 767px) {
  .home .frontpage-widget-after-main .widget_top_store {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .home .frontpage-widget-after-main .widget_top_store .section-header {
    margin-bottom: 10px !important;
  }

  .home .frontpage-widget-after-main .widget_top_store .section-header .section-title,
  .home .frontpage-widget-after-main .widget_top_store .section-header h2,
  .home .frontpage-widget-after-main .widget_top_store .section-header .widget-title {
    font-size: 18px !important;
    line-height: 1.2 !important;
  }

  .home .frontpage-widget-after-main .widget_top_store .section-header .section-desc,
  .home .frontpage-widget-after-main .widget_top_store .section-header p {
    margin-top: 5px !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  .home .frontpage-widget-after-main .widget_top_store .section-body {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    height: auto !important;
  }

  .home .frontpage-widget-after-main .widget_top_store .section-body > .left-section,
  .home .frontpage-widget-after-main .widget_top_store .section-body > .right-section {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  .home .frontpage-widget-after-main .widget_top_store .store-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .home .frontpage-widget-after-main .widget_top_store .store-list .list-item {
    min-height: 150px !important;
    padding: 8px 6px !important;
    border-radius: 9px !important;
  }

  .home .frontpage-widget-after-main .widget_top_store .list-item .item-left {
    min-height: 0 !important;
  }

  .home .frontpage-widget-after-main .widget_top_store .list-item .store-thum-img,
  .home .frontpage-widget-after-main .widget_top_store .list-item .item-logo {
    width: 64px !important;
    height: 40px !important;
    margin-bottom: 6px !important;
    border-radius: 8px !important;
  }

  .home .frontpage-widget-after-main .widget_top_store .list-item .item-logo {
    padding: 4px !important;
  }

  .home .frontpage-widget-after-main .widget_top_store .list-item .item-logo img {
    max-width: 56px !important;
    max-height: 32px !important;
  }

  .home .frontpage-widget-after-main .widget_top_store .list-item .item-txt h4 {
    min-height: 30px !important;
    margin-bottom: 4px !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
  }

  .home .frontpage-widget-after-main .widget_top_store .list-item .item-txt p {
    min-height: 16px !important;
    margin-bottom: 7px !important;
    font-size: 11px !important;
    line-height: 1.25 !important;
    -webkit-line-clamp: 1;
  }

  .home .frontpage-widget-after-main .widget_top_store .list-item .details-btn {
    min-height: 28px !important;
    padding: 7px 6px !important;
    border-radius: 7px !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
  }
}

/* Repair and reuse How It Works on every page. */
body .how-page-section.c4s-how-ready,
body:not(.home) .how-page-section.c4s-static-how-section,
body.home .how-page-section.c4s-static-how-section {
  position: relative !important;
  z-index: 1 !important;
  clear: both !important;
  display: block !important;
  width: 100% !important;
  float: none !important;
  padding: 64px 0 70px !important;
  overflow: hidden !important;
  background: linear-gradient(135deg, #eef6ff 0%, #f0fdf9 45%, #faf5ff 100%) !important;
  isolation: isolate;
}

body .how-page-section.c4s-how-ready::before,
body .how-page-section.c4s-how-ready::after {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

body .how-page-section.c4s-how-ready::before {
  top: -120px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.12) 0%, rgba(2, 132, 199, 0) 70%);
}

body .how-page-section.c4s-how-ready::after {
  bottom: -100px;
  left: -60px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 122, 0, 0.1) 0%, rgba(255, 122, 0, 0) 70%);
}

body .how-page-section.c4s-how-ready > .container,
body:not(.home) .how-page-section.c4s-static-how-section .container,
body.home .how-page-section.c4s-static-how-section .container {
  position: relative !important;
  z-index: 1 !important;
  display: block !important;
  clear: both !important;
  width: min(1180px, calc(100% - 30px)) !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

body .how-page-section.c4s-how-ready .c4s-how-heading,
body:not(.home) .how-page-section.c4s-static-how-section .c4s-how-heading,
body.home .how-page-section.c4s-static-how-section .c4s-how-heading {
  display: block !important;
  clear: none !important;
  max-width: 680px !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 auto 42px !important;
  text-align: center !important;
  pointer-events: auto !important;
}

body .how-page-section.c4s-how-ready .how-title {
  margin: 0 0 12px !important;
  color: #001f5b !important;
  font-size: clamp(28px, 3vw, 38px) !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
}

body .how-page-section.c4s-how-ready .c4s-how-subtitle {
  max-width: 560px !important;
  margin: 0 auto !important;
  color: #334155 !important;
  font-size: 17px !important;
  line-height: 1.6 !important;
}

body .how-page-section.c4s-how-ready .c4s-how-grid,
body:not(.home) .how-page-section.c4s-static-how-section .c4s-how-grid,
body.home .how-page-section.c4s-static-how-section .c4s-how-grid {
  display: grid !important;
  clear: none !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 18px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body .how-page-section.c4s-how-ready .c4s-how-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 230px !important;
  margin: 0 !important;
  padding: 28px 22px !important;
  border: 1px solid rgba(2, 132, 199, 0.14) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08) !important;
  box-sizing: border-box !important;
  text-align: center !important;
  overflow: hidden !important;
}

body .how-page-section.c4s-how-ready .c4s-how-step {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 0 12px !important;
}

body .how-page-section.c4s-how-ready .c4s-how-step-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 58px !important;
  height: 58px !important;
  border-radius: 50% !important;
  background: #e0f2fe !important;
  color: #075985 !important;
}

body .how-page-section.c4s-how-ready .c4s-how-step-label {
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.06em !important;
}

body .how-page-section.c4s-how-ready .how-text-title {
  margin: 0 0 10px !important;
  color: #005f73 !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
  text-align: center !important;
}

body .how-page-section.c4s-how-ready .c4s-how-card p {
  margin: 0 !important;
  color: #0f172a !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
  text-align: center !important;
}

@media screen and (max-width: 1023px) {
  body .how-page-section.c4s-how-ready .c4s-how-grid,
  body:not(.home) .how-page-section.c4s-static-how-section .c4s-how-grid,
  body.home .how-page-section.c4s-static-how-section .c4s-how-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media screen and (max-width: 767px) {
  body .how-page-section.c4s-how-ready,
  body:not(.home) .how-page-section.c4s-static-how-section,
  body.home .how-page-section.c4s-static-how-section {
    padding: 44px 0 48px !important;
  }

  body .how-page-section.c4s-how-ready .c4s-how-heading,
  body:not(.home) .how-page-section.c4s-static-how-section .c4s-how-heading,
  body.home .how-page-section.c4s-static-how-section .c4s-how-heading {
    margin-bottom: 24px !important;
  }

  body .how-page-section.c4s-how-ready .how-title {
    font-size: 27px !important;
  }

  body .how-page-section.c4s-how-ready .c4s-how-subtitle {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }

  body .how-page-section.c4s-how-ready .c4s-how-grid,
  body:not(.home) .how-page-section.c4s-static-how-section .c4s-how-grid,
  body.home .how-page-section.c4s-static-how-section .c4s-how-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  body .how-page-section.c4s-how-ready .c4s-how-card {
    min-height: 0 !important;
    padding: 18px 16px !important;
    border-radius: 10px !important;
  }

  body .how-page-section.c4s-how-ready .c4s-how-step-icon {
    width: 48px !important;
    height: 48px !important;
  }

  body .how-page-section.c4s-how-ready .how-text-title {
    font-size: 18px !important;
  }

  body .how-page-section.c4s-how-ready .c4s-how-card p {
    font-size: 14px !important;
  }
}

/* Keep homepage section coupon CTAs orange on hover/focus. */
body.home .c4s-coupon-section .c4s-section-coupon-card .c4s-section-coupon-cta,
body.home .c4s-coupon-section .c4s-section-coupon-card .c4s-section-coupon-cta:visited,
body.home .c4s-coupon-section .c4s-section-coupon-card .c4s-section-coupon-cta:hover,
body.home .c4s-coupon-section .c4s-section-coupon-card .c4s-section-coupon-cta:focus,
body.home .c4s-coupon-section .c4s-section-coupon-card .c4s-section-coupon-cta:active {
  border: 0 !important;
  background: #e55b25 !important;
  color: #ffffff !important;
  box-shadow: none !important;
  text-decoration: none !important;
  transform: none !important;
}

/* Cloudflare Turnstile field in public Coupon Submit form. */
.c4s-turnstile-field {
  width: 100%;
  max-width: 100%;
  margin: 14px 0 !important;
  overflow-x: auto;
}

.c4s-turnstile-error {
  margin: 0 0 14px !important;
}

/* Professional Store Owner dashboard page. */
body.c4s-store-owner-dashboard-page {
  background: #eef6fb;
}

body.c4s-store-owner-dashboard-page #content-wrap,
body.c4s-store-owner-dashboard-page #content-wrap.container,
body.c4s-store-owner-dashboard-page .container.container-index {
  width: min(1220px, calc(100% - 32px)) !important;
  max-width: 1220px !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

body.c4s-store-owner-dashboard-page #primary,
body.c4s-store-owner-dashboard-page .content-area {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

body.c4s-store-owner-dashboard-page #secondary,
body.c4s-store-owner-dashboard-page .widget-area.sidebar,
body.c4s-store-owner-dashboard-page .sidebar:not(.c4s-dashboard-shell) {
  display: none !important;
}

body.c4s-store-owner-dashboard-page .post-ratings,
body.c4s-store-owner-dashboard-page .kk-star-ratings,
body.c4s-store-owner-dashboard-page .entry-rating,
body.c4s-store-owner-dashboard-page .ratings,
body.c4s-store-owner-dashboard-page .rate-this-post {
  display: none !important;
}

body.c4s-store-owner-dashboard-page .site-main,
body.c4s-store-owner-dashboard-page .entry-content {
  width: 100% !important;
  max-width: 100% !important;
}

.c4s-store-owner-dashboard {
  width: 100%;
  margin: 0 auto 56px;
  color: #071735;
}

.c4s-dashboard-shell {
  width: 100%;
}

.c4s-store-owner-dashboard .c4s-dashboard-header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin: 0 0 18px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(14, 116, 144, 0.14);
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff 0%, #f4fbff 58%, #fff7ed 100%);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.09);
}

.c4s-store-owner-dashboard .c4s-dashboard-header::after {
  position: absolute;
  right: -60px;
  bottom: -90px;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.11);
  content: "";
  pointer-events: none;
}

.c4s-dashboard-header-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.c4s-dashboard-eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  color: #075985;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0;
}

.c4s-store-owner-dashboard .c4s-dashboard-header h2 {
  margin: 0 0 8px;
  color: #001f5b;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
}

.c4s-store-owner-dashboard .c4s-dashboard-header p {
  max-width: 680px;
  margin: 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.55;
}

.c4s-dashboard-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.c4s-status,
.c4s-dashboard-store-name {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.c4s-dashboard-store-name {
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #1e3a8a;
}

.c4s-status-approved { background: #dcfce7; color: #166534; }
.c4s-status-pending { background: #fef3c7; color: #92400e; }
.c4s-status-rejected { background: #fee2e2; color: #991b1b; }

.c4s-dashboard-logout,
.c4s-dashboard-logout:visited {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #ffffff;
  color: #075985 !important;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.c4s-dashboard-logout:hover,
.c4s-dashboard-logout:focus {
  border-color: #bae6fd;
  background: #f0f9ff;
  color: #0c4a6e !important;
}

.c4s-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 18px;
}

.c4s-dashboard-stat {
  min-width: 0;
  padding: 18px;
  border: 1px solid #dfeaf5;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.c4s-dashboard-stat-label,
.c4s-dashboard-stat-note {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.c4s-dashboard-stat strong {
  display: block;
  margin: 6px 0 4px;
  color: #001f5b;
  font-size: 25px;
  font-weight: 900;
  line-height: 1.15;
}

.c4s-dashboard-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.c4s-dashboard-workspace > .c4s-dashboard-card:first-child {
  grid-row: span 2;
}

.c4s-store-owner-dashboard .c4s-dashboard-card {
  margin: 0;
  padding: 24px;
  border: 1px solid #dfeaf5;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
  box-sizing: border-box;
}

.c4s-store-owner-dashboard .c4s-dashboard-card h3 {
  margin: 0 0 18px;
  color: #001f5b;
  font-size: 23px;
  font-weight: 900;
  line-height: 1.2;
}

.c4s-dashboard-alert {
  border-color: #fed7aa !important;
  background: #fff7ed !important;
}

.c4s-store-owner-dashboard .c4s-store-owner-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.c4s-store-owner-dashboard .c4s-store-owner-form p {
  min-width: 0;
  margin: 0;
}

.c4s-store-owner-dashboard .c4s-store-owner-form p:has(textarea),
.c4s-store-owner-dashboard .c4s-store-owner-form .c4s-captcha-field,
.c4s-store-owner-dashboard .c4s-store-owner-form p:last-child {
  grid-column: 1 / -1;
}

.c4s-store-owner-dashboard .c4s-store-owner-form label {
  margin-bottom: 7px;
  color: #24364b;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
}

.c4s-store-owner-dashboard .c4s-store-owner-form input[type="text"],
.c4s-store-owner-dashboard .c4s-store-owner-form input[type="email"],
.c4s-store-owner-dashboard .c4s-store-owner-form input[type="tel"],
.c4s-store-owner-dashboard .c4s-store-owner-form input[type="url"],
.c4s-store-owner-dashboard .c4s-store-owner-form input[type="password"],
.c4s-store-owner-dashboard .c4s-store-owner-form input[type="date"],
.c4s-store-owner-dashboard .c4s-store-owner-form input[type="file"],
.c4s-store-owner-dashboard .c4s-store-owner-form select,
.c4s-store-owner-dashboard .c4s-store-owner-form textarea {
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 14px;
  box-shadow: none;
}

.c4s-store-owner-dashboard .c4s-store-owner-form textarea {
  min-height: 132px;
  resize: vertical;
}

.c4s-store-owner-dashboard .c4s-store-owner-form input:focus,
.c4s-store-owner-dashboard .c4s-store-owner-form select:focus,
.c4s-store-owner-dashboard .c4s-store-owner-form textarea:focus {
  border-color: #0ea5e9;
  background: #ffffff;
  outline: 3px solid rgba(14, 165, 233, 0.15);
  outline-offset: 0;
}

.c4s-store-owner-dashboard .c4s-store-owner-form .c4s-store-owner-submit,
.c4s-store-owner-dashboard .button.c4s-store-owner-submit {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: #0f8ccf;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(14, 140, 207, 0.22);
}

.c4s-store-owner-dashboard .c4s-store-owner-form .c4s-store-owner-submit:hover,
.c4s-store-owner-dashboard .c4s-store-owner-form .c4s-store-owner-submit:focus {
  background: #075985;
  color: #ffffff !important;
}

.c4s-store-owner-dashboard .c4s-store-media-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 18px;
}

.c4s-store-owner-dashboard .c4s-store-preview {
  max-width: 190px;
  max-height: 104px;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  object-fit: contain;
}

.c4s-store-owner-dashboard .c4s-responsive-table {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.c4s-store-owner-dashboard .c4s-responsive-table table {
  width: 100%;
  min-width: 480px;
  margin: 0;
  border-collapse: collapse;
}

.c4s-store-owner-dashboard .c4s-responsive-table th {
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.c4s-store-owner-dashboard .c4s-responsive-table th,
.c4s-store-owner-dashboard .c4s-responsive-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: middle;
}

.c4s-store-owner-dashboard .c4s-responsive-table tbody tr:last-child td {
  border-bottom: 0;
}

.c4s-store-owner-dashboard .c4s-responsive-table a {
  color: #075985;
  font-weight: 900;
  text-decoration: none;
}

.c4s-store-owner-dashboard .c4s-form-message {
  margin: 0 0 16px;
  border-radius: 8px;
}

@media screen and (max-width: 1023px) {
  .c4s-dashboard-workspace {
    grid-template-columns: 1fr;
  }

  .c4s-dashboard-workspace > .c4s-dashboard-card:first-child {
    grid-row: auto;
  }
}

@media screen and (max-width: 767px) {
  body.c4s-store-owner-dashboard-page #content-wrap,
  body.c4s-store-owner-dashboard-page #content-wrap.container,
  body.c4s-store-owner-dashboard-page .container.container-index {
    width: min(100% - 20px, 1220px) !important;
  }

  .c4s-store-owner-dashboard {
    margin-bottom: 36px;
  }

  .c4s-store-owner-dashboard .c4s-dashboard-header {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    border-radius: 12px;
  }

  .c4s-store-owner-dashboard .c4s-dashboard-header h2 {
    font-size: 26px;
  }

  .c4s-dashboard-logout {
    width: 100%;
  }

  .c4s-dashboard-stats {
    grid-template-columns: 1fr;
  }

  .c4s-store-owner-dashboard .c4s-dashboard-card {
    padding: 18px;
    border-radius: 12px;
  }

  .c4s-store-owner-dashboard .c4s-dashboard-card h3 {
    font-size: 20px;
  }

  .c4s-store-owner-dashboard .c4s-store-owner-form {
    grid-template-columns: 1fr;
  }

  .c4s-store-owner-dashboard .c4s-store-media-previews {
    flex-direction: column;
  }

  .c4s-store-owner-dashboard .c4s-store-preview {
    width: 100%;
    max-width: 100%;
  }
}

/* Remove parent blog/page chrome from the Store Owner dashboard only. */
body.c4s-store-owner-dashboard-page .page-header,
body.c4s-store-owner-dashboard-page .page-header-cover,
body.c4s-store-owner-dashboard-page .blog-page-header,
body.c4s-store-owner-dashboard-page .blog-page-header-cover,
body.c4s-store-owner-dashboard-page .custom-page-header {
  display: none !important;
}

body.c4s-store-owner-dashboard-page #content-wrap {
  padding-top: 34px !important;
}

@media screen and (max-width: 767px) {
  body.c4s-store-owner-dashboard-page #content-wrap {
    padding-top: 18px !important;
  }
}

/* Hide the theme/plugin rating widget on Store Owner dashboard only. */
body.c4s-store-owner-dashboard-page .rating-store-content,
body.c4s-store-owner-dashboard-page .store-rating,
body.c4s-store-owner-dashboard-page .bp-star-ratings,
body.c4s-store-owner-dashboard-page .bpsr-stars,
body.c4s-store-owner-dashboard-page .bpsr-star,
body.c4s-store-owner-dashboard-page .bpsr-legend,
body.c4s-store-owner-dashboard-page .ui.rating,
body.c4s-store-owner-dashboard-page [class*="star-rating"],
body.c4s-store-owner-dashboard-page [class*="star_ratings"] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Clean Store Owner registration page chrome. */
body.c4s-store-owner-register-page .rating-store-content,
body.c4s-store-owner-register-page .store-rating,
body.c4s-store-owner-register-page .bp-star-ratings,
body.c4s-store-owner-register-page .bpsr-stars,
body.c4s-store-owner-register-page .bpsr-star,
body.c4s-store-owner-register-page .bpsr-legend,
body.c4s-store-owner-register-page .ui.rating,
body.c4s-store-owner-register-page [class*="star-rating"],
body.c4s-store-owner-register-page [class*="star_ratings"],
body.c4s-store-owner-register-page .post-ratings,
body.c4s-store-owner-register-page .kk-star-ratings,
body.c4s-store-owner-register-page .entry-rating,
body.c4s-store-owner-register-page .ratings,
body.c4s-store-owner-register-page .rate-this-post {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

body.c4s-store-owner-register-page .how-page-section,
body.c4s-store-owner-register-page .c4s-static-how-section,
body.c4s-store-owner-register-page .c4s-how-ready {
  display: none !important;
}

/* Footer Store Partner CTA under the brand description. */
.c4s-footer-partner-cta {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(203, 213, 225, 0.16);
}

.c4s-footer-partner-cta h2 {
  margin: 0 0 8px;
  color: #ffffff !important;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
}

.c4s-footer-partner-cta p {
  margin: 0 0 14px;
  color: #cbd5e1 !important;
  font-size: 14px;
  line-height: 1.5;
}

.c4s-footer-partner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.c4s-footer-partner-button,
.c4s-footer-partner-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none !important;
}

.c4s-footer-partner-button,
.c4s-footer-partner-button:visited {
  background: #0ea5e9;
  color: #ffffff !important;
}

.c4s-footer-partner-button:hover,
.c4s-footer-partner-button:focus {
  background: #0284c7;
  color: #ffffff !important;
}

.c4s-footer-partner-login,
.c4s-footer-partner-login:visited {
  border: 1px solid rgba(203, 213, 225, 0.35);
  color: #ffffff !important;
}

.c4s-footer-partner-login:hover,
.c4s-footer-partner-login:focus {
  border-color: #0ea5e9;
  color: #7dd3fc !important;
}

@media screen and (max-width: 767px) {
  .c4s-footer-partner-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
/* Circle store logo cards below the header. */
.c4s-store-logo-row-section {
  background: #f5fbff;
  border-bottom: 1px solid rgba(19, 155, 215, 0.14);
  box-shadow: 0 10px 24px rgba(0, 31, 91, 0.05);
}

.c4s-store-logo-row-section .container {
  max-width: 1220px;
}

.c4s-store-logo-row-nav {
  padding: 12px 0 14px;
}

.c4s-store-logo-row-list {
  gap: 18px;
  align-items: flex-start;
}

.c4s-store-logo-row-item {
  width: 92px;
}

body .c4s-store-logo-row-link,
.c4s-store-logo-row-link {
  width: 82px;
  height: 82px;
  margin: 0 auto;
  padding: 12px;
  border: 1px solid rgba(19, 155, 215, 0.28);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(0, 31, 91, 0.10);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

body .c4s-store-logo-row-link:hover,
body .c4s-store-logo-row-link:focus,
.c4s-store-logo-row-link:hover,
.c4s-store-logo-row-link:focus {
  border-color: #139bd7;
  box-shadow: 0 12px 28px rgba(19, 155, 215, 0.22);
  transform: translateY(-3px);
  outline: none;
}

.c4s-store-logo-row-link img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

@media (max-width: 768px) {
  .c4s-store-logo-row-section .container {
    padding-left: 10px;
    padding-right: 10px;
  }

  .c4s-store-logo-row-nav {
    padding: 10px 0 12px;
  }

  .c4s-store-logo-row-list {
    justify-content: flex-start;
    gap: 14px;
    min-width: max-content;
    padding: 0 2px 3px;
  }

  .c4s-store-logo-row-item {
    width: 76px;
  }

  body .c4s-store-logo-row-link,
  .c4s-store-logo-row-link {
    width: 70px;
    height: 70px;
    padding: 10px;
  }
}
/* Subtle homepage deal card hover effects without CTA color changes. */
body.home .c4s-coupon-section .c4s-section-coupon-card,
body.home .c4s-travel-deals-section .c4s-travel-deal-card,
body.home .c4s-taxonomy-trending-section .coupon-listing-item {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  will-change: transform;
}

body.home .c4s-coupon-section .c4s-section-coupon-card:hover,
body.home .c4s-coupon-section .c4s-section-coupon-card:focus-within,
body.home .c4s-travel-deals-section .c4s-travel-deal-card:hover,
body.home .c4s-travel-deals-section .c4s-travel-deal-card:focus-within,
body.home .c4s-taxonomy-trending-section .coupon-listing-item:hover,
body.home .c4s-taxonomy-trending-section .coupon-listing-item:focus-within {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(19, 155, 215, 0.22);
  box-shadow: 0 12px 26px rgba(0, 31, 91, 0.10);
}

body.home .c4s-coupon-section .c4s-section-coupon-card .c4s-section-coupon-cta,
body.home .c4s-travel-deals-section .c4s-travel-deal-button,
body.home .c4s-taxonomy-trending-section .trnd-get-code-btn {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  transform-origin: center;
}

body.home .c4s-coupon-section .c4s-section-coupon-card:hover .c4s-section-coupon-cta,
body.home .c4s-coupon-section .c4s-section-coupon-card:focus-within .c4s-section-coupon-cta,
body.home .c4s-coupon-section .c4s-section-coupon-card .c4s-section-coupon-cta:hover,
body.home .c4s-coupon-section .c4s-section-coupon-card .c4s-section-coupon-cta:focus {
  background: #e55b25 !important;
  color: #ffffff !important;
  transform: scale(1.035) !important;
  box-shadow: 0 8px 18px rgba(229, 91, 37, 0.20) !important;
}

body.home .c4s-travel-deals-section .c4s-travel-deal-button,
body.home .c4s-travel-deals-section .c4s-travel-deal-button:visited,
body.home .c4s-travel-deals-section .c4s-travel-deal-button:hover,
body.home .c4s-travel-deals-section .c4s-travel-deal-button:focus,
body.home .c4s-travel-deals-section .c4s-travel-deal-card:hover .c4s-travel-deal-button,
body.home .c4s-travel-deals-section .c4s-travel-deal-card:focus-within .c4s-travel-deal-button {
  background: #246bdf !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

body.home .c4s-travel-deals-section .c4s-travel-deal-card:hover .c4s-travel-deal-button,
body.home .c4s-travel-deals-section .c4s-travel-deal-card:focus-within .c4s-travel-deal-button,
body.home .c4s-travel-deals-section .c4s-travel-deal-button:hover,
body.home .c4s-travel-deals-section .c4s-travel-deal-button:focus,
body.home .c4s-taxonomy-trending-section .coupon-listing-item:hover .trnd-get-code-btn,
body.home .c4s-taxonomy-trending-section .coupon-listing-item:focus-within .trnd-get-code-btn,
body.home .c4s-taxonomy-trending-section .trnd-get-code-btn:hover,
body.home .c4s-taxonomy-trending-section .trnd-get-code-btn:focus {
  transform: scale(1.035) !important;
}

@media (prefers-reduced-motion: reduce) {
  body.home .c4s-coupon-section .c4s-section-coupon-card,
  body.home .c4s-travel-deals-section .c4s-travel-deal-card,
  body.home .c4s-taxonomy-trending-section .coupon-listing-item,
  body.home .c4s-coupon-section .c4s-section-coupon-card .c4s-section-coupon-cta,
  body.home .c4s-travel-deals-section .c4s-travel-deal-button,
  body.home .c4s-taxonomy-trending-section .trnd-get-code-btn {
    transition: none;
  }

  body.home .c4s-coupon-section .c4s-section-coupon-card:hover,
  body.home .c4s-coupon-section .c4s-section-coupon-card:focus-within,
  body.home .c4s-travel-deals-section .c4s-travel-deal-card:hover,
  body.home .c4s-travel-deals-section .c4s-travel-deal-card:focus-within,
  body.home .c4s-taxonomy-trending-section .coupon-listing-item:hover,
  body.home .c4s-taxonomy-trending-section .coupon-listing-item:focus-within,
  body.home .c4s-coupon-section .c4s-section-coupon-card:hover .c4s-section-coupon-cta,
  body.home .c4s-coupon-section .c4s-section-coupon-card:focus-within .c4s-section-coupon-cta,
  body.home .c4s-travel-deals-section .c4s-travel-deal-card:hover .c4s-travel-deal-button,
  body.home .c4s-travel-deals-section .c4s-travel-deal-card:focus-within .c4s-travel-deal-button,
  body.home .c4s-taxonomy-trending-section .coupon-listing-item:hover .trnd-get-code-btn,
  body.home .c4s-taxonomy-trending-section .coupon-listing-item:focus-within .trnd-get-code-btn {
    transform: none !important;
  }
}
/* Larger Coupon4Sure brand logos in header and footer. */
body .site-header .logo_area,
body .primary-header .logo_area {
  max-width: 230px !important;
}

body .site-header .logo_area img,
body .primary-header .logo_area img {
  width: auto !important;
  max-width: 230px !important;
  max-height: 74px !important;
  object-fit: contain;
}

body #colophon.site-footer.c4s-premium-footer .c4s-footer-logo,
body .site-footer.c4s-premium-footer .c4s-footer-logo {
  max-width: 240px !important;
  margin-bottom: 24px;
}

body #colophon.site-footer.c4s-premium-footer .c4s-footer-logo img,
body .site-footer.c4s-premium-footer .c4s-footer-logo img {
  width: auto !important;
  max-width: 240px !important;
  max-height: 82px !important;
  object-fit: contain;
}

@media (max-width: 768px) {
  body .primary-header .logo_area,
  body .site-header .logo_area {
    max-width: 150px !important;
  }

  body .primary-header .logo_area img,
  body .site-header .logo_area img {
    max-width: 150px !important;
    max-height: 48px !important;
  }

  body #colophon.site-footer.c4s-premium-footer .c4s-footer-logo,
  body .site-footer.c4s-premium-footer .c4s-footer-logo {
    max-width: 210px !important;
  }

  body #colophon.site-footer.c4s-premium-footer .c4s-footer-logo img,
  body .site-footer.c4s-premium-footer .c4s-footer-logo img {
    max-width: 210px !important;
    max-height: 72px !important;
  }
}
/* Coupon4Sure admin bar header gap fix */
@media screen and (min-width: 783px) {
  body.admin-bar {
    margin-top: -32px !important;
  }
}

@media screen and (max-width: 782px) {
  body.admin-bar {
    margin-top: 0 !important;
  }
}

/* Coupon4Sure coupon modal close alignment */
body .ui.modal.coupon-modal .coupon-header {
  position: relative;
}

body .ui.modal.coupon-modal .coupon-header > .close.icon {
  top: 18px !important;
  right: max(18px, calc((100% - 600px) / 2 + 18px)) !important;
  z-index: 5;
  width: 24px;
  height: 24px;
  background-size: 18px 18px;
}

@media screen and (max-width: 500px) {
  body .ui.modal.coupon-modal .coupon-header > .close.icon {
    top: 12px !important;
    right: 12px !important;
  }
}

/* Mobile footer should end right after the copyright line. */
@media screen and (max-width: 782px) {
  html,
  body {
    height: auto !important;
    min-height: 0 !important;
    background: #eef8ff !important;
    overflow-x: hidden !important;
  }

  body #page.site,
  body #page.hfeed.site,
  body .site {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    background: #eef8ff !important;
    overflow: visible !important;
  }

  body #content.site-content,
  body .site-content {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    background: #eef8ff !important;
  }

  body .c4s-static-how-section,
  body .c4s-newsletter-section,
  body #colophon.site-footer.c4s-premium-footer,
  body footer#colophon.site-footer.c4s-premium-footer,
  body .site-footer.c4s-premium-footer {
    flex: 0 0 auto !important;
  }

  body #colophon.site-footer.c4s-premium-footer,
  body footer#colophon.site-footer.c4s-premium-footer,
  body .site-footer.c4s-premium-footer {
    display: block !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    padding-top: 26px !important;
    padding-bottom: 0 !important;
    background: #0f172a !important;
    overflow: hidden !important;
  }

  body #colophon.site-footer.c4s-premium-footer .c4s-footer-inner,
  body .site-footer.c4s-premium-footer .c4s-footer-inner {
    display: block !important;
    min-height: 0 !important;
    height: auto !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  body #colophon.site-footer.c4s-premium-footer .c4s-footer-bottom,
  body .site-footer.c4s-premium-footer .c4s-footer-bottom {
    margin-bottom: 0 !important;
    padding-bottom: max(16px, env(safe-area-inset-bottom)) !important;
  }
}

/* Footer must be the last visible block; source markup after wp_footer stays out of layout. */
body .c4s-banner-slider-source[hidden],
body .coupon4sure-header-search-source[hidden],
body [hidden] {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Mobile homepage sticky header spacing and header controls. */
@media screen and (max-width: 782px) {

  body.admin-bar {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  body.admin-bar .site-header,
  body.admin-bar .site-header .primary-header {
    margin-top: 0 !important;
  }
}

@media screen and (max-width: 767px) {
  body.home {
    --c4s-mobile-sticky-header-height: 44px;
  }

  body .site-header .primary-header,
  body .primary-header {
    min-height: 44px !important;
    margin-bottom: 0 !important;
  }

  body .primary-header > .container {
    min-height: 44px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    align-items: center !important;
  }

  body .primary-header .site-navigation,
  body .primary-header .primary-navigation {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
  }

  body .primary-header .nav-toggle,
  body .site-header #nav_toggle_open,
  body .site-header #nav_toggle_close {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
  }

  body .site-header #nav_toggle_open .bars.icon {
    margin: 0 !important;
    line-height: 1 !important;
  }

  body .site-header #nav_toggle_close,
  body .site-header #nav_toggle_close.nav_toggle_inactive,
  body .site-header #nav_toggle_close:not(.nav_toggle_active) {
    display: none !important;
  }

  body .site-header #nav_toggle_open.nav_toggle_active {
    display: flex !important;
  }

  body .site-header #nav_toggle_open.nav_toggle_inactive {
    display: none !important;
  }

  body .site-header #nav_toggle_close.nav_toggle_active {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body .site-header #nav_toggle_open.nav_toggle_inactive {
    display: none !important;
  }

  body .site-header #nav_toggle_close .close.icon {
    margin: 0 !important;
    line-height: 1 !important;
  }

  body.home #content.site-content,
  body.home .site-content,
  body.home .c4s-top-categories-section,
  body.home .c4s-banner-section,
  body.home .frontpage-2nd-main,
  body.home .frontpage-widget-after-main {
    margin-top: 0 !important;
  }

  body.home #content.site-content,
  body.home .site-content,
  body.home .c4s-top-categories-section,
  body.home .c4s-banner-section,
  body.home .frontpage-2nd-main {
    padding-top: 0 !important;
  }

  body.home .c4s-top-categories-section {
    clear: both !important;
    transform: none !important;
  }

  body.home .c4s-top-categories-nav {
    padding-top: 3px !important;
  }

  body.home .c4s-top-categories-list {
    padding-top: 0 !important;
  }

  body.home.sticky-header #site-header-nav-wrapper {
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.home.sticky-header .c4s-top-categories-section {
    padding-top: var(--c4s-mobile-sticky-header-height) !important;
  }

  body.home .site-header,
  body.home .site-header .primary-header {
    margin-bottom: 0 !important;
  }

  body.home .c4s-top-categories-section {
    margin-top: -1px !important;
    border-top: 0 !important;
  }

  body.home.sticky-header .c4s-top-categories-section {
    padding-top: calc(var(--c4s-mobile-sticky-header-height) - 1px) !important;
  }
}

/* Mobile menu close control: keep it above the opened menu layer. */
@media screen and (max-width: 767px) {
  body .site-header #nav_toggle_close {
    display: none !important;
  }

  body .site-header #nav_toggle_close.nav_toggle_active {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 100000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: #1e2937 !important;
    color: #ffffff !important;
    line-height: 1 !important;
  }

  body.admin-bar .site-header #nav_toggle_close.nav_toggle_active {
    top: 32px !important;
  }

  body .site-header #nav_toggle_close.nav_toggle_active .close.icon,
  body .site-header #nav_toggle_close.nav_toggle_active .close.icon::before {
    margin: 0 !important;
    color: #ffffff !important;
    font-size: 18px !important;
    line-height: 1 !important;
  }

  body .site-header #nav_toggle_open.nav_toggle_inactive {
    display: none !important;
  }

  body .site-header .primary-navigation .st-menu.st-menu-mobile > li > a {
    padding-left: 44px !important;
  }

  body .site-header .primary-navigation .st-menu.st-menu-mobile .sub-menu a {
    padding-left: 56px !important;
  }

  body .site-header .primary-navigation .st-menu.st-menu-mobile > li.c4s-mega-menu-item > .c4s-mega-menu,
  body .site-header .primary-navigation .st-menu.st-menu-mobile > li.c4s-mega-menu-item.nav-toggle-dropdown > .c4s-mega-menu,
  body .site-header .primary-navigation .st-menu.st-menu-mobile > li.c4s-mega-menu-item > .nav-toggle-subarrow {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* Keep the opened mobile menu below the compact header instead of pinning to viewport top. */
@media screen and (max-width: 767px) {
  body .site-header .primary-navigation .st-menu.st-menu-mobile {
    position: fixed !important;
    top: 34px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-height: calc(100vh - 44px) !important;
    margin-top: 0 !important;
    z-index: 99999 !important;
  }

  body.admin-bar .site-header .primary-navigation .st-menu.st-menu-mobile {
    top: 76px !important;
    max-height: calc(100vh - 76px) !important;
  }

  body .site-header #nav_toggle_close.nav_toggle_active {
    position: absolute !important;
    top: 0 !important;
    left: auto !important;
    right: 0 !important;
    z-index: 100001 !important;
  }

  body.admin-bar .site-header #nav_toggle_close.nav_toggle_active {
    top: 0 !important;
  }
}

/* Keep the relocated header search out of header height calculations. */
body .site-header .primary-header {
  overflow: visible !important;
}

body .primary-header > .container {
  position: relative !important;
}

body .primary-header .header-search-relocated {
  position: absolute !important;
  top: 50% !important;
  right: 15px !important;
  transform: translateY(-50%) !important;
  display: block !important;
  flex: none !important;
  order: initial !important;
  width: clamp(250px, 27vw, 350px) !important;
  min-width: 250px !important;
  max-width: 350px !important;
  height: 42px !important;
  margin: 0 !important;
  align-self: auto !important;
  z-index: 40 !important;
}

@media screen and (min-width: 768px) {
  body .primary-header > .container {
    min-height: 62px !important;
    padding-right: calc(clamp(250px, 27vw, 350px) + 28px) !important;
    flex-wrap: nowrap !important;
  }

  body .primary-header .header-search-relocated #header-search {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
  }
}

@media screen and (max-width: 767px) {
  body .primary-header > .container {
    min-height: 44px !important;
    padding-right: 0 !important;
  }

  body .primary-header .header-search-relocated {
    top: 0 !important;
    right: 0 !important;
    transform: none !important;
    display: flex !important;
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
  }

  body .primary-header .header-search-relocated #header-search {
    top: calc(100% + 10px) !important;
  }
}

/* Footer redesign: existing content only, arranged in the approved 4-column layout. */
body #colophon.site-footer.c4s-premium-footer,
body footer#colophon.site-footer.c4s-premium-footer {
  padding: 54px 16px 0 !important;
  background: #1e2937 !important;
  color: #c7d4e6 !important;
  overflow: hidden !important;
}

body #colophon.site-footer.c4s-premium-footer .c4s-footer-inner {
  width: 100% !important;
  max-width: 1160px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

body #colophon.site-footer.c4s-premium-footer .c4s-footer-grid {
  display: grid !important;
  grid-template-columns: minmax(220px, 1.22fr) minmax(170px, 1fr) minmax(180px, 1fr) minmax(220px, 1fr) !important;
  align-items: start !important;
  gap: 44px !important;
}

body #colophon.site-footer.c4s-premium-footer .c4s-footer-brand {
  grid-column: auto !important;
}

body #colophon.site-footer.c4s-premium-footer .c4s-footer-logo {
  display: inline-flex !important;
  align-items: center !important;
  max-width: 190px !important;
  margin: 0 0 22px !important;
}

body #colophon.site-footer.c4s-premium-footer .c4s-footer-logo img {
  display: block !important;
  width: auto !important;
  max-width: 190px !important;
  max-height: 60px !important;
  object-fit: contain !important;
}

body #colophon.site-footer.c4s-premium-footer .c4s-footer-brand p,
body #colophon.site-footer.c4s-premium-footer .c4s-footer-partner-cta p {
  margin: 0 !important;
  color: #b9c7d9 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.72 !important;
}

body #colophon.site-footer.c4s-premium-footer .c4s-footer-brand p {
  max-width: 275px !important;
}

body #colophon.site-footer.c4s-premium-footer .c4s-footer-column h2,
body #colophon.site-footer.c4s-premium-footer .c4s-footer-partner-cta h2 {
  position: relative !important;
  margin: 0 0 28px !important;
  padding: 0 0 13px !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
}

body #colophon.site-footer.c4s-premium-footer .c4s-footer-column h2::after,
body #colophon.site-footer.c4s-premium-footer .c4s-footer-partner-cta h2::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 34px !important;
  height: 3px !important;
  border-radius: 999px !important;
  background: #1598ff !important;
}

body #colophon.site-footer.c4s-premium-footer .c4s-footer-column ul {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body #colophon.site-footer.c4s-premium-footer .c4s-footer-column li {
  margin: 0 !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16) !important;
}

body #colophon.site-footer.c4s-premium-footer .c4s-footer-column a {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  min-height: 42px !important;
  padding: 0 24px 0 0 !important;
  color: #d8e4f2 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
  transform: none !important;
  transition: color 180ms ease, padding-left 180ms ease !important;
}

body #colophon.site-footer.c4s-premium-footer .c4s-footer-column a::after {
  content: "›" !important;
  position: absolute !important;
  right: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #e4efff !important;
  font-size: 23px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
}

body #colophon.site-footer.c4s-premium-footer .c4s-footer-column a::before {
  content: "" !important;
  display: inline-block !important;
  flex: 0 0 auto !important;
  width: 7px !important;
  height: 7px !important;
  margin-right: 11px !important;
  border: 2px solid #1598ff !important;
  border-radius: 999px !important;
}

body #colophon.site-footer.c4s-premium-footer .c4s-footer-column a:hover,
body #colophon.site-footer.c4s-premium-footer .c4s-footer-column a:focus {
  color: #4db8ff !important;
  padding-left: 4px !important;
}

body #colophon.site-footer.c4s-premium-footer .c4s-footer-partner-cta {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

body #colophon.site-footer.c4s-premium-footer .c4s-footer-partner-cta p {
  margin-bottom: 22px !important;
  max-width: 270px !important;
}

body #colophon.site-footer.c4s-premium-footer .c4s-footer-partner-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 12px !important;
}

body #colophon.site-footer.c4s-premium-footer .c4s-footer-partner-button,
body #colophon.site-footer.c4s-premium-footer .c4s-footer-partner-login {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 48px !important;
  width: 100% !important;
  padding: 0 18px !important;
  border-radius: 7px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

body #colophon.site-footer.c4s-premium-footer .c4s-footer-partner-button,
body #colophon.site-footer.c4s-premium-footer .c4s-footer-partner-button:visited {
  border: 1px solid #1598ff !important;
  background: #1598ff !important;
  color: #ffffff !important;
}

body #colophon.site-footer.c4s-premium-footer .c4s-footer-partner-login,
body #colophon.site-footer.c4s-premium-footer .c4s-footer-partner-login:visited {
  border: 1px solid rgba(203, 213, 225, 0.48) !important;
  background: rgba(255, 255, 255, 0.035) !important;
  color: #ffffff !important;
}

body #colophon.site-footer.c4s-premium-footer .c4s-footer-partner-button:hover,
body #colophon.site-footer.c4s-premium-footer .c4s-footer-partner-button:focus {
  border-color: #3ab0ff !important;
  background: #3ab0ff !important;
  color: #ffffff !important;
}

body #colophon.site-footer.c4s-premium-footer .c4s-footer-partner-login:hover,
body #colophon.site-footer.c4s-premium-footer .c4s-footer-partner-login:focus {
  border-color: #1598ff !important;
  background: rgba(21, 152, 255, 0.12) !important;
  color: #ffffff !important;
}

body #colophon.site-footer.c4s-premium-footer .c4s-footer-bottom {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100vw !important;
  max-width: none !important;
  margin: 52px calc(50% - 50vw) 0 !important;
  padding: 24px 16px max(24px, env(safe-area-inset-bottom)) !important;
  border-top: 1px solid rgba(148, 163, 184, 0.18) !important;
  background: transparent !important;
}

body #colophon.site-footer.c4s-premium-footer .c4s-footer-bottom p {
  margin: 0 !important;
  color: #aebbd0 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  text-align: center !important;
}

@media screen and (max-width: 1023px) {
  body #colophon.site-footer.c4s-premium-footer .c4s-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 34px 38px !important;
  }

  body #colophon.site-footer.c4s-premium-footer .c4s-footer-brand {
    grid-column: auto !important;
  }
}

@media screen and (max-width: 767px) {
  body #colophon.site-footer.c4s-premium-footer,
  body footer#colophon.site-footer.c4s-premium-footer {
    padding: 34px 16px 0 !important;
  }

  body #colophon.site-footer.c4s-premium-footer .c4s-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  body #colophon.site-footer.c4s-premium-footer .c4s-footer-brand p,
  body #colophon.site-footer.c4s-premium-footer .c4s-footer-partner-cta p {
    max-width: none !important;
  }

  body #colophon.site-footer.c4s-premium-footer .c4s-footer-column h2,
  body #colophon.site-footer.c4s-premium-footer .c4s-footer-partner-cta h2 {
    margin-bottom: 16px !important;
    font-size: 15px !important;
  }

  body #colophon.site-footer.c4s-premium-footer .c4s-footer-column a {
    min-height: 40px !important;
    font-size: 13px !important;
  }

  body #colophon.site-footer.c4s-premium-footer .c4s-footer-bottom {
    margin-top: 34px !important;
  }
}

/* Final mobile menu close placement: keep it in the original left slot, with a smaller icon. */
@media screen and (max-width: 767px) {
  body .site-header #nav_toggle_close.nav_toggle_active {
    position: absolute !important;
    top: 0 !important;
    right: auto !important;
    left: 0 !important;
    z-index: 100002 !important;
    width: 44px !important;
    height: 44px !important;
    background: transparent !important;
    color: #111827 !important;
  }

  body.admin-bar .site-header #nav_toggle_close.nav_toggle_active {
    top: 0 !important;
  }

  body .site-header #nav_toggle_close.nav_toggle_active .close.icon,
  body .site-header #nav_toggle_close.nav_toggle_active .close.icon::before {
    color: #111827 !important;
    font-size: 14px !important;
    line-height: 1 !important;
  }
}

/* Store coupon page: restore the original Get Code coupon-peel styling. */
body.tax-coupon_store .coupon-button-type .coupon-code {
  color: #444444 !important;
  background: linear-gradient(315deg, rgba(0, 0, 0, 0.06) 10%, rgba(0, 0, 0, 0) 15%, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.06) 40%, rgba(0, 0, 0, 0.06) 60%, rgba(0, 0, 0, 0) 65%, rgba(0, 0, 0, 0) 85%, rgba(0, 0, 0, 0.06) 90%) repeat scroll 0 0 / 6px 6px rgba(0, 0, 0, 0) !important;
  border: 2px dashed #ff9900 !important;
  border-radius: 5px !important;
  box-shadow: none !important;
  max-width: 250px !important;
  padding: 10px 5px 11px !important;
  text-align: right !important;
}

body.tax-coupon_store .coupon-button-type .coupon-code .get-code {
  top: -2px !important;
  left: -2px !important;
  min-width: 82% !important;
  padding: 15px 20px 16px !important;
  border-radius: 7px 0 0 7px !important;
  background: #ff9900 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

body.tax-coupon_store .coupon-button-type .coupon-code .get-code::after {
  border-left-color: #ff9900 !important;
}

body.tax-coupon_store .coupon-button-type .coupon-code:hover,
body.tax-coupon_store .coupon-button-type .coupon-code:focus,
body.tax-coupon_store .coupon-button-type .coupon-code:hover .get-code {
  background: linear-gradient(315deg, rgba(0, 0, 0, 0.06) 10%, rgba(0, 0, 0, 0) 15%, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.06) 40%, rgba(0, 0, 0, 0.06) 60%, rgba(0, 0, 0, 0) 65%, rgba(0, 0, 0, 0) 85%, rgba(0, 0, 0, 0.06) 90%) repeat scroll 0 0 / 6px 6px rgba(0, 0, 0, 0) !important;
  box-shadow: none !important;
  opacity: 0.9 !important;
  transform: none !important;
}

body.tax-coupon_store .coupon-button-type .coupon-code:hover .get-code {
  background: #ff9900 !important;
}

body.tax-coupon_store .coupon-button-type .coupon-code:hover .get-code::after {
  border-left-color: #ff9900 !important;
}

/* Footer typography color: keep all footer text white. */
body #colophon.site-footer.c4s-premium-footer,
body #colophon.site-footer.c4s-premium-footer *,
body footer#colophon.site-footer.c4s-premium-footer,
body footer#colophon.site-footer.c4s-premium-footer * {
  color: #ffffff !important;
}

body #colophon.site-footer.c4s-premium-footer h1,
body #colophon.site-footer.c4s-premium-footer h2,
body #colophon.site-footer.c4s-premium-footer h3,
body #colophon.site-footer.c4s-premium-footer h4,
body #colophon.site-footer.c4s-premium-footer p,
body #colophon.site-footer.c4s-premium-footer li,
body #colophon.site-footer.c4s-premium-footer span,
body #colophon.site-footer.c4s-premium-footer a,
body #colophon.site-footer.c4s-premium-footer a:visited,
body #colophon.site-footer.c4s-premium-footer a:hover,
body #colophon.site-footer.c4s-premium-footer a:focus,
body #colophon.site-footer.c4s-premium-footer .c4s-footer-column a,
body #colophon.site-footer.c4s-premium-footer .c4s-footer-bottom p,
body #colophon.site-footer.c4s-premium-footer .c4s-footer-brand p,
body #colophon.site-footer.c4s-premium-footer .c4s-footer-partner-cta p {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Mobile coupon card DOM move target: used count sits inside the image/logo box. */
@media screen and (max-width: 480px) {
  body .tending-coupon-listing-item .store-thumb-link .store-thumb {
    position: relative !important;
  }

  body .tending-coupon-listing-item .store-thumb-link .store-thumb > ul.use-coupon.c4s-used-on-thumb {
    position: absolute !important;
    top: 4px !important;
    left: 50% !important;
    z-index: 8 !important;
    display: block !important;
    float: none !important;
    width: auto !important;
    max-width: calc(100% - 14px) !important;
    margin: 0 !important;
    padding: 3px 9px !important;
    transform: translateX(-50%) !important;
    border: 1px solid rgba(7, 92, 168, 0.18) !important;
    border-radius: 999px !important;
    background: #eef7ff !important;
    box-shadow: 0 4px 12px rgba(7, 92, 168, 0.18) !important;
    color: #075ca8 !important;
    list-style: none !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  body .tending-coupon-listing-item .store-thumb-link .store-thumb > ul.use-coupon.c4s-used-on-thumb li {
    display: block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #075ca8 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
  }
}

/* Desktop header layout: keep navigation clear of relocated search. */
@media screen and (min-width: 1024px) {
  body .primary-header > .container {
    display: grid !important;
    grid-template-columns: minmax(180px, 230px) minmax(0, 1fr) clamp(300px, 25vw, 420px) !important;
    align-items: center !important;
    gap: 22px !important;
    min-height: 82px !important;
    padding-right: 15px !important;
  }

  body .primary-header .logo_area,
  body .site-header .logo_area {
    grid-column: 1 !important;
    width: auto !important;
    max-width: 230px !important;
    margin: 0 !important;
  }

  body .primary-header #site-header-nav,
  body .primary-header .site-navigation {
    grid-column: 2 !important;
    width: auto !important;
    min-width: 0 !important;
    justify-self: end !important;
    position: relative !important;
    z-index: 45 !important;
  }

  body .primary-header .primary-navigation {
    float: none !important;
  }

  body .primary-header .st-menu {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
  }

  body .primary-header .st-menu > li {
    float: none !important;
  }

  body .primary-header .st-menu > li > a {
    padding-right: 12px !important;
    padding-left: 12px !important;
    white-space: nowrap !important;
  }

  body .primary-header .header-search-relocated {
    grid-column: 3 !important;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    justify-self: stretch !important;
    z-index: 40 !important;
  }
}

@media screen and (min-width: 1024px) and (max-width: 1180px) {
  body .primary-header > .container {
    grid-template-columns: minmax(155px, 190px) minmax(0, 1fr) minmax(260px, 320px) !important;
    gap: 14px !important;
  }

  body .primary-header .st-menu > li > a {
    padding-right: 8px !important;
    padding-left: 8px !important;
    font-size: 12px !important;
  }
}

/* Desktop header balance: give the nav enough room between logo and search. */
@media screen and (min-width: 1024px) {
  body .primary-header > .container {
    grid-template-columns: minmax(180px, 230px) minmax(0, 1fr) clamp(300px, 23vw, 350px) !important;
  }
}

@media screen and (min-width: 1024px) and (max-width: 1180px) {
  body .primary-header > .container {
    grid-template-columns: minmax(155px, 190px) minmax(0, 1fr) minmax(250px, 300px) !important;
  }
}

/* All Stores logo color variants kept in CSS instead of inline HTML styles. */
.all-store.c4s-all-stores-ready .c4s-all-store-logo-bg-1 { background-color: #f8fbff; }
.all-store.c4s-all-stores-ready .c4s-all-store-logo-bg-2 { background-color: #f6fffb; }
.all-store.c4s-all-stores-ready .c4s-all-store-logo-bg-3 { background-color: #fff8f3; }
.all-store.c4s-all-stores-ready .c4s-all-store-logo-bg-4 { background-color: #faf5ff; }
.all-store.c4s-all-stores-ready .c4s-all-store-logo-bg-5 { background-color: #ffffff; }

/* Compact arrows for the Popular Stores carousel. */
.home .c4s-popular-stores-section .c4s-store-carousel-arrow,
.home .widget_popular_stores.c4s-popular-stores-carousel .c4s-store-carousel-arrow {
  width: 30px !important;
  height: 30px !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16) !important;
}

.home .c4s-popular-stores-section .c4s-store-carousel-arrow:hover,
.home .c4s-popular-stores-section .c4s-store-carousel-arrow:focus-visible,
.home .widget_popular_stores.c4s-popular-stores-carousel .c4s-store-carousel-arrow:hover,
.home .widget_popular_stores.c4s-popular-stores-carousel .c4s-store-carousel-arrow:focus-visible {
  transform: translateY(-50%) scale(1.04) !important;
}

.home .c4s-popular-stores-section .c4s-store-carousel-prev,
.home .widget_popular_stores.c4s-popular-stores-carousel .c4s-store-carousel-prev {
  left: 6px !important;
}

.home .c4s-popular-stores-section .c4s-store-carousel-next,
.home .widget_popular_stores.c4s-popular-stores-carousel .c4s-store-carousel-next {
  right: 6px !important;
}

@media screen and (max-width: 767px) {
  .home .c4s-popular-stores-section .c4s-store-carousel-arrow,
  .home .widget_popular_stores.c4s-popular-stores-carousel .c4s-store-carousel-arrow {
    width: 26px !important;
    height: 26px !important;
    font-size: 17px !important;
  }

  .home .c4s-popular-stores-section .c4s-store-carousel-prev,
  .home .widget_popular_stores.c4s-popular-stores-carousel .c4s-store-carousel-prev {
    left: 4px !important;
  }

  .home .c4s-popular-stores-section .c4s-store-carousel-next,
  .home .widget_popular_stores.c4s-popular-stores-carousel .c4s-store-carousel-next {
    right: 4px !important;
  }
}

/* Homepage performance and layout stability. */
body.home .home-slider-wrapper,
body.home .home-slider-wrapper .slider-item,
body.home .home-slider-wrapper .item,
body.home .home-slider-wrapper .slide-img,
body.home .home-slider-wrapper .slide-img img {
  aspect-ratio: 1200 / 320;
  min-height: 220px;
}

body.home .home-slider-wrapper {
  overflow: hidden;
  background: #eef1f4;
}

body.home .home-slider-wrapper .slide-img,
body.home .home-slider-wrapper .slide-img a,
body.home .home-slider-wrapper .slide-img img {
  display: block;
  width: 100%;
  height: 100%;
}

body.home .home-slider-wrapper .slide-img img,
body.home .c4s-banner-image {
  object-fit: cover;
}

body.home .home-slider-wrapper .slide-des:empty {
  display: none !important;
}

body.home .c4s-banner-slider,
body.home .c4s-banner-slide,
body.home .c4s-banner-media {
  aspect-ratio: 1200 / 260;
  min-height: 150px;
}

body.home .site-header .c4s-banner-section {
  display: block;
  min-height: 198px;
}

body.home .site-header .c4s-banner-section .container {
  min-height: inherit;
}

body.home .c4s-banner-media img {
  width: 100%;
  height: 100%;
}

body.home .coupon-item,
body.home .tending-coupon-listing-item,
body.home .c4s-travel-deal-card,
body.home .c4s-featured-card-link {
  contain: layout paint;
  min-height: 230px;
}

body.home .store-thumb,
body.home .coupon-item .store-thumb,
body.home .tending-coupon-listing-item .store-thumb,
body.home .c4s-travel-deal-logo,
body.home .c4s-featured-ready .banner-img,
body.home .background-logo,
body.home .c4s-store-carousel-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  min-height: 96px;
  overflow: hidden;
  background: #f7f9fc;
}

body.home .store-thumb img,
body.home .coupon-item .store-thumb img,
body.home .tending-coupon-listing-item .store-thumb img,
body.home .c4s-travel-deal-logo img,
body.home .c4s-featured-ready .banner-img img,
body.home .background-logo img,
body.home .c4s-store-carousel-logo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

body.home .widget_popular_stores.c4s-popular-stores-carousel .store-item,
body.home .c4s-popular-stores-section .store-item,
body.home .c4s-store-carousel-item {
  flex: 0 0 auto;
  min-height: 148px;
  contain: layout paint;
}

body.home .c4s-popular-stores-section .c4s-store-carousel-item .store-thumb,
body.home .c4s-popular-stores-section .c4s-store-carousel-item .background-logo,
body.home .c4s-popular-stores-section .c4s-store-carousel-item img {
  width: 64px;
  height: 64px;
  aspect-ratio: 1 / 1;
}

body.home .best-live-sale-section .sale-item,
body.home .best-live-sale-section .sale-item > a {
  min-height: 264px;
}

body.home .best-live-sale-section .bls-title {
  min-height: 54px;
}

body.home .best-live-sale-section .banner-img {
  min-height: 108px;
}

body.home .best-live-sale-section .c4s-featured-meta,
body.home .best-live-sale-section .c4s-featured-cta {
  min-height: 32px;
}

body.home .coupon-button-type,
body.home .coupon-button-type .coupon-code,
body.home .coupon-button-type .coupon-deal,
body.home .coupon-button-type .coupon-print {
  min-height: 44px;
}

body.home .c4s-below-fold-section,
body.home .frontpage-after-main,
body.home .frontpage-3rd-main {
  content-visibility: auto;
  contain-intrinsic-size: 1px 680px;
}

@media screen and (max-width: 767px) {
  body.home .home-slider-wrapper,
  body.home .home-slider-wrapper .slider-item,
  body.home .home-slider-wrapper .item,
  body.home .home-slider-wrapper .slide-img,
  body.home .home-slider-wrapper .slide-img img {
    aspect-ratio: 16 / 7;
    min-height: 135px;
  }

  body.home .c4s-banner-slider,
  body.home .c4s-banner-slide,
  body.home .c4s-banner-media {
    aspect-ratio: 16 / 7;
    min-height: 110px;
  }

  body.home .site-header .c4s-banner-section {
    min-height: 136px;
  }

  body.home .store-thumb,
  body.home .coupon-item .store-thumb,
  body.home .tending-coupon-listing-item .store-thumb,
  body.home .c4s-travel-deal-logo,
  body.home .c4s-featured-ready .banner-img,
  body.home .background-logo,
  body.home .c4s-store-carousel-logo {
    min-height: 82px;
  }

  body.home .coupon-item,
  body.home .tending-coupon-listing-item,
  body.home .c4s-travel-deal-card,
  body.home .c4s-featured-card-link {
    min-height: 210px;
  }
}

body.home .c4s-coupon-section .c4s-section-coupon-card {
  min-height: 92px;
  contain: layout paint;
}

body.home .c4s-coupon-section .c4s-section-coupon-logo {
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  min-height: 0;
  aspect-ratio: 1 / 1;
}

body.home .c4s-coupon-section .c4s-section-coupon-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media screen and (max-width: 560px) {
  body.home .c4s-coupon-section .c4s-section-coupon-card {
    min-height: 78px;
  }

  body.home .c4s-coupon-section .c4s-section-coupon-logo {
    flex-basis: 54px;
    width: 54px;
    height: 54px;
  }
}

/* Final desktop Categories dropdown sizing after header search relocation. */
@media screen and (min-width: 1024px) {
  body .primary-header .c4s-mega-menu,
  body .site-header .primary-navigation .st-menu > li.c4s-mega-menu-item > .c4s-mega-menu {
    left: 50% !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(155px, 1fr)) !important;
    column-gap: 28px !important;
    row-gap: 8px !important;
    width: min(1040px, calc(100vw - 64px)) !important;
    max-width: none !important;
    padding: 18px 38px 24px !important;
    transform: translateX(-50%) !important;
  }

  body .primary-header .c4s-mega-menu .c4s-mega-menu-category,
  body .site-header .primary-navigation .st-menu > li.c4s-mega-menu-item > .c4s-mega-menu .c4s-mega-menu-category {
    min-width: 0 !important;
  }

  body .primary-header .c4s-mega-menu .c4s-mega-menu-category > a,
  body .site-header .primary-navigation .st-menu > li.c4s-mega-menu-item > .c4s-mega-menu .c4s-mega-menu-category > a {
    display: block !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
  }
}

/* Urgent banner stability fix: keep the homepage slider bounded in normal flow. */
body.home .c4s-banner-section,
body.home .site-header .c4s-banner-section {
  position: relative !important;
  clear: both !important;
  z-index: 1 !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 18px 0 24px !important;
  overflow: visible !important;
}

body.home .c4s-banner-section > .container,
body.home .site-header .c4s-banner-section > .container {
  width: calc(100% - 30px) !important;
  max-width: 1200px !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
  overflow: visible !important;
}

body.home .c4s-banner-slider {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  max-width: 1200px !important;
  height: 300px !important;
  min-height: 0 !important;
  max-height: 360px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  overflow: hidden !important;
  isolation: auto !important;
  aspect-ratio: auto !important;
  background: #eef1f4 !important;
}

body.home .c4s-banner-slides,
body.home .c4s-banner-slide,
body.home .c4s-banner-slide > a,
body.home .c4s-banner-media {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
}

body.home .c4s-banner-slides {
  display: grid !important;
}

body.home .c4s-banner-slide {
  grid-area: 1 / 1 !important;
  overflow: hidden !important;
}

body.home .c4s-banner-slide.is-active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body.home .c4s-banner-media {
  position: relative !important;
  display: block !important;
  overflow: hidden !important;
}

body.home .c4s-banner-slide img,
body.home .c4s-banner-media img,
body.home .c4s-banner-media .c4s-banner-image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center !important;
}

body.home .c4s-banner-media .c4s-banner-foreground {
  position: relative !important;
  inset: auto !important;
  z-index: 2 !important;
}

body.home .c4s-banner-media .c4s-banner-blur {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

body.home .c4s-banner-overlay {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

@media screen and (max-width: 1023px) {
  body.home .c4s-banner-slider {
    height: 240px !important;
    max-height: 300px !important;
  }
}

@media screen and (max-width: 767px) {
  body.home .c4s-banner-section,
  body.home .site-header .c4s-banner-section {
    padding: 12px 0 18px !important;
  }

  body.home .c4s-banner-section > .container,
  body.home .site-header .c4s-banner-section > .container {
    width: calc(100% - 24px) !important;
  }

  body.home .c4s-banner-slider {
    height: 180px !important;
    max-height: 220px !important;
  }
}

/* Phase 3 accessibility: larger safe hit areas without changing the layout rhythm. */
body .c4s-logo-title {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

body .c4s-logo-title a {
  display: inline-flex !important;
  align-items: center !important;
}

body.home .c4s-banner-dots {
  gap: 10px !important;
}

body.home .c4s-banner-dot {
  position: relative !important;
  min-width: 12px !important;
  width: 12px !important;
  min-height: 12px !important;
  height: 12px !important;
}

body.home .c4s-banner-dot::before {
  position: absolute;
  inset: -14px;
  content: "";
}

body.home .c4s-banner-dot.is-active {
  width: 28px !important;
}

body.home .c4s-popular-stores-section .c4s-store-carousel-arrow,
body.home .widget_popular_stores.c4s-popular-stores-carousel .c4s-store-carousel-arrow {
  min-width: 40px !important;
  min-height: 40px !important;
}

body.home .c4s-coupon-section-header > a,
body.home .c4s-travel-deals-view-all,
body.home .c4s-travel-deal-details,
body.home .coupon-footer a {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 40px !important;
}

body.home .c4s-travel-deal-button,
body.home .trnd-get-code-btn,
body.home .coupon-button,
body.home .coupon-deal {
  min-height: 40px !important;
}

/* Phase 3C accessibility contrast fixes, scoped to confirmed failing homepage elements. */
body .primary-header .header-search-relocated #coupon4sure-header-search-field::placeholder {
  color: #4b5563 !important;
  opacity: 1 !important;
}

body.home .c4s-banner-arrow,
body.home .c4s-store-carousel-arrow,
body.home .c4s-popular-stores-section .c4s-store-carousel-arrow,
body.home .widget_popular_stores.c4s-popular-stores-carousel .c4s-store-carousel-arrow {
  background: #075ca8 !important;
  color: #ffffff !important;
}

body.home .c4s-banner-arrow:hover,
body.home .c4s-banner-arrow:focus-visible,
body.home .c4s-store-carousel-arrow:hover,
body.home .c4s-store-carousel-arrow:focus-visible,
body.home .c4s-popular-stores-section .c4s-store-carousel-arrow:hover,
body.home .c4s-popular-stores-section .c4s-store-carousel-arrow:focus-visible,
body.home .widget_popular_stores.c4s-popular-stores-carousel .c4s-store-carousel-arrow:hover,
body.home .widget_popular_stores.c4s-popular-stores-carousel .c4s-store-carousel-arrow:focus-visible {
  background: #073b66 !important;
  color: #ffffff !important;
}

body.home .c4s-coupon-section-header > a {
  color: #075ca8 !important;
}

body.home .c4s-coupon-section-header > a:hover,
body.home .c4s-coupon-section-header > a:focus-visible {
  color: #073b66 !important;
}

body.home .c4s-section-coupon-cta,
body.home .c4s-coupon-section .c4s-section-coupon-card .c4s-section-coupon-cta,
body.home .c4s-coupon-section .c4s-section-coupon-card .c4s-section-coupon-cta:visited {
  background: #075ca8 !important;
  color: #ffffff !important;
}

body.home .c4s-section-coupon-cta:hover,
body.home .c4s-section-coupon-cta:focus-visible,
body.home .c4s-coupon-section .c4s-section-coupon-card .c4s-section-coupon-cta:hover,
body.home .c4s-coupon-section .c4s-section-coupon-card .c4s-section-coupon-cta:focus-visible {
  background: #073b66 !important;
  color: #ffffff !important;
}

/* Phase 3D accessibility contrast fixes. */
body .primary-header .screen-reader-text {
  color: #ffffff !important;
}

body .c4s-newsletter-copy p {
  color: #475569 !important;
}

body .c4s-newsletter-form button,
body .c4s-footer-partner-button,
body .c4s-footer-partner-button:visited {
  background: #075ca8 !important;
  color: #ffffff !important;
}

body .c4s-newsletter-form button:hover,
body .c4s-newsletter-form button:focus,
body .c4s-footer-partner-button:hover,
body .c4s-footer-partner-button:focus {
  background: #073b66 !important;
  color: #ffffff !important;
}

body #colophon.site-footer.c4s-premium-footer .c4s-footer-partner-button,
body #colophon.site-footer.c4s-premium-footer .c4s-footer-partner-button:visited {
  background: #075ca8 !important;
  border-color: #075ca8 !important;
  color: #ffffff !important;
}

body #colophon.site-footer.c4s-premium-footer .c4s-footer-partner-button:hover,
body #colophon.site-footer.c4s-premium-footer .c4s-footer-partner-button:focus {
  background: #073b66 !important;
  border-color: #073b66 !important;
  color: #ffffff !important;
}

body.home #content > .frontpage-2nd-main.frontpage-after-main:has(.content-widgets:empty) {
  display: none !important;
}

body #colophon.site-footer.c4s-premium-footer .c4s-footer-column a {
  padding-right: 0 !important;
}

body #colophon.site-footer.c4s-premium-footer .c4s-footer-column a::after {
  content: none !important;
  display: none !important;
}

/* Mobile store coupon filter tabs: keep all coupon types visible without affecting desktop. */
@media screen and (max-width: 767px) {
  body.tax-coupon_store #coupon-filter-bar {
    margin-bottom: 16px !important;
    overflow: visible !important;
  }

  body.tax-coupon_store #coupon-filter-bar .filter-coupons-buttons {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
  }

  body.tax-coupon_store #coupon-filter-bar .coupons-types-wrap {
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  body.tax-coupon_store #coupon-filter-bar .couponlist-smallscreen-info {
    display: none !important;
  }

  body.tax-coupon_store #coupon-filter-bar .coupon-types-list {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 2px 2px 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  body.tax-coupon_store #coupon-filter-bar .coupon-types-list::-webkit-scrollbar {
    display: none;
  }

  body.tax-coupon_store #coupon-filter-bar .coupon-types-list .store-filter-button,
  body.tax-coupon_store #coupon-filter-bar .coupon-types-list .store-filter-button.ui.button.tiny,
  body.tax-coupon_store #coupon-filter-bar .coupon-types-list .store-filter-button.current {
    float: none !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

  body.tax-coupon_store #coupon-filter-bar .coupon-types-list .store-filter-button .offer-count {
    display: inline !important;
    margin-left: 0 !important;
    font-size: 12px !important;
    line-height: 1 !important;
  }

  body.tax-coupon_store #coupon-filter-bar .submit-coupon-button {
    float: none !important;
    display: inline-flex !important;
    align-self: flex-end !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 36px !important;
    margin: 0 2px 0 auto !important;
    padding: 9px 14px !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }
}

/* Prevent parent sticky header overlap on coupon category archive pages. */
body.tax-coupon_category #masthead.site-header,
body.tax-coupon_category .site-header {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  width: 100% !important;
  transform: none !important;
}

body.tax-coupon_category #site-header-nav-wrapper {
  height: auto !important;
  min-height: 0 !important;
}

body.tax-coupon_category .custom-page-header {
  clear: both;
  position: relative;
  z-index: 0;
}

/* Let the homepage top category strip scroll normally near the top instead of sitting under the sticky header. */
body.home.c4s-home-near-top-unpin #masthead.site-header,
body.home.c4s-home-near-top-unpin .site-header {
  position: static !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  width: 100% !important;
  transform: none !important;
}

/* Mobile Phase M2: keep mobile CLS fixes isolated from the frozen desktop layout. */
@media screen and (max-width: 767px) {
  body.home.sticky-header #masthead.site-header,
  body.home.sticky-header .site-header {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    width: 100% !important;
    transform: none !important;
  }

  body.home.sticky-header #site-header-nav-wrapper {
    height: 65px !important;
    min-height: 65px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.home .c4s-top-categories-section {
    margin-top: 1px !important;
    min-height: 139px !important;
  }

  body.home.sticky-header .c4s-top-categories-section {
    padding-top: 0 !important;
  }

  body.home #masthead.site-header,
  body.home .site-header .primary-header,
  body.home .primary-header,
  body.home .primary-header > .container {
    min-height: 65px !important;
  }

  body.home .primary-header .logo_area,
  body.home .c4s-logo-title,
  body.home .c4s-logo-title a {
    width: 144px !important;
    height: 48px !important;
    min-height: 48px !important;
  }

  body.home .site-header .logo_area img,
  body.home .primary-header .logo_area img,
  body.home .c4s-logo-title img {
    display: block !important;
    width: 144px !important;
    height: 48px !important;
    aspect-ratio: 2173 / 724 !important;
    object-fit: contain !important;
  }

  body.home .c4s-top-category-icon {
    flex: 0 0 50px !important;
    width: 50px !important;
    height: 50px !important;
    aspect-ratio: 1 / 1 !important;
  }

  body.home .c4s-top-category-icon img {
    display: block !important;
    width: 46px !important;
    height: 46px !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
  }

  body.home .c4s-store-logo-row-section {
    min-height: 122px !important;
  }

  body.home .c4s-store-logo-row-link {
    min-width: 70px !important;
    min-height: 70px !important;
  }

  body.home .c4s-store-logo-row-link img {
    display: block !important;
    width: 70px !important;
    height: 70px !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
  }

  body.home .c4s-banner-section {
    min-height: 198px !important;
  }

  body.home .c4s-banner-slide {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: 0 !important;
  }

  body.home .c4s-banner-slide.is-active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    z-index: 2 !important;
  }

  body.home .widget_popular_stores {
    min-height: 254px !important;
  }

  body.home .widget_popular_stores .c4s-popular-stores-heading {
    min-height: 80px !important;
  }

  body.home .widget_popular_stores .c4s-store-carousel-viewport {
    min-height: 138px !important;
    overflow: hidden !important;
  }

  body.home .widget_popular_stores .c4s-store-carousel-track {
    min-height: 126px !important;
  }

  body.home .widget_popular_stores .c4s-store-carousel-item {
    flex: 0 0 112px !important;
    width: 112px !important;
    min-height: 126px !important;
  }

  body.home .widget_popular_stores .store-thumb,
  body.home .widget_popular_stores .background-logo,
  body.home .widget_popular_stores img {
    width: 68px !important;
    height: 68px !important;
    aspect-ratio: 1 / 1 !important;
  }

  body.home .c4s-below-fold-section {
    contain-intrinsic-size: 1px 760px !important;
  }

  body.home .c4s-homepage-section-stack .c4s-below-fold-section {
    contain-intrinsic-size: 1px 720px !important;
  }

  body.home .c4s-travel-deals-section.c4s-below-fold-section {
    contain-intrinsic-size: 1px 680px !important;
  }

  body.home .frontpage-after-main,
  body.home .frontpage-3rd-main {
    contain-intrinsic-size: 1px 980px !important;
  }
}

/* Mobile-only store filters and header alignment refinements. */
@media screen and (max-width: 768.98px) {
  body.tax-coupon_store #coupon-filter-bar .filter-coupons-buttons {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 0 !important;
  }

  body.tax-coupon_s[Truncated]

/* Keep Featured Discounts media from bleeding into the coupon title area. */
body.home .c4s-featured-ready .c4s-featured-card-link {
  isolation: isolate !important;
}

body.home .c4s-featured-ready .banner-img {
  flex: 0 0 108px !important;
  width: 100% !important;
  height: 108px !important;
  min-height: 0 !important;
  max-height: 108px !important;
  margin: 0 0 12px !important;
  padding: 10px !important;
  overflow: hidden !important;
  border-radius: 8px !important;
  background: #f7f9fc !important;
  box-sizing: border-box !important;
}

body.home .c4s-featured-ready .banner-img img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

body.home .c4s-featured-ready .banner-img > *:not(img) {
  max-width: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
}

body.home .c4s-featured-ready .c4s-featured-store,
body.home .c4s-featured-ready .bls-title,
body.home .c4s-featured-ready .c4s-featured-meta,
body.home .c4s-featured-ready .c4s-featured-cta {
  position: relative !important;
  z-index: 1 !important;
  flex: 0 0 auto !important;
}

body.home .c4s-featured-ready .bls-title {
  clear: both !important;
}

@media screen and (max-width: 767px) {
  body.home .c4s-featured-ready .banner-img {
    flex-basis: 94px !important;
    height: 94px !important;
    max-height: 94px !important;
  }
}


/* Keep Featured Discounts media from bleeding into the coupon title area. */
body.home .c4s-featured-ready .c4s-featured-card-link {
  isolation: isolate !important;
}

body.home .c4s-featured-ready .banner-img {
  flex: 0 0 108px !important;
  width: 100% !important;
  height: 108px !important;
  min-height: 0 !important;
  max-height: 108px !important;
  margin: 0 0 12px !important;
  padding: 10px !important;
  overflow: hidden !important;
  border-radius: 8px !important;
  background: #f7f9fc !important;
  box-sizing: border-box !important;
}

body.home .c4s-featured-ready .banner-img img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

body.home .c4s-featured-ready .banner-img > *:not(img) {
  max-width: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
}

body.home .c4s-featured-ready .c4s-featured-store,
body.home .c4s-featured-ready .bls-title,
body.home .c4s-featured-ready .c4s-featured-meta,
body.home .c4s-featured-ready .c4s-featured-cta {
  position: relative !important;
  z-index: 1 !important;
  flex: 0 0 auto !important;
}

body.home .c4s-featured-ready .bls-title {
  clear: both !important;
}

@media screen and (max-width: 767px) {
  body.home .c4s-featured-ready .banner-img {
    flex-basis: 94px !important;
    height: 94px !important;
    max-height: 94px !important;
  }
}
/* Header Logo */
.site-header .logo img,
.site-logo img,
.custom-logo {
    max-height: 60px;
    width: auto;
}