/* ===== deal-card-refinement.css ===== */
/* SaveDeals shared deal-card title + merchant refinement.
   Scoped to deal cards so unrelated site components are unaffected. */
.deal-card .deal-store {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-width: 0;
    max-width: 100%;
    color: #4b5563;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.2;
}

.deal-card .deal-store:hover,
.deal-card .deal-store:focus-visible {
    color: #111827;
    text-decoration: none;
}

.deal-card .deal-store-logo {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    object-fit: contain;
    display: block;
    border-radius: 4px;
    background: #fff;
}

.deal-card .deal-store-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.deal-card .card-title {
    margin: 0 0 .5rem;
    font-size: 15px;
    line-height: 1.32;
    font-weight: 600;
    letter-spacing: -0.008em;
}

.deal-card .card-title a {
    color: #202124;
    text-decoration: none;
}

.deal-card .card-title a:hover,
.deal-card .card-title a:focus-visible {
    color: #111827;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

/* Keep card height consistent while preserving the complete title in HTML. */
.deal-card .card-title a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

@media (max-width: 575.98px) {
    .deal-card .deal-store {
        font-size: .75rem;
        gap: .4rem;
    }

    .deal-card .deal-store-logo {
        width: 18px;
        height: 18px;
        flex-basis: 18px;
    }

    .deal-card .card-title {
        font-size: 14px;
        line-height: 1.32;
        letter-spacing: -0.006em;
    }
}

/* ===== search-suggestions.css ===== */
/* SaveDeals global search suggestions â€” shared across desktop + mobile. */
.sd-site-shell .sd-global-search{
  position:relative!important;
  overflow:visible!important;
  z-index:30!important;
}
.sd-site-shell .sd-search-suggestions{
  contain:layout paint!important;
  position:absolute;
  left:0;
  right:0;
  top:calc(100% + 7px);
  z-index:3000;
  display:block;
  max-height:min(62vh,520px);
  overflow:auto;
  padding:6px;
  border:1px solid #d9e0e7;
  border-radius:10px;
  background:#fff;
  box-shadow:0 14px 36px rgba(15,23,42,.18),0 3px 10px rgba(15,23,42,.08);
}
.sd-site-shell .sd-search-suggestions[hidden]{display:none!important}
.sd-search-suggestion{
  display:grid;
  grid-template-columns:40px minmax(0,1fr);
  align-items:center;
  gap:10px;
  width:100%;
  min-height:52px;
  padding:7px 8px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#1f2937;
  text-align:left;
  text-decoration:none;
  cursor:pointer;
}
.sd-search-suggestion:hover,.sd-search-suggestion.is-active{background:#f4f7fa}
.sd-search-suggestion-thumb{
  width:40px!important;height:40px!important;max-width:40px!important;max-height:40px!important;display:flex;align-items:center;justify-content:center;
  border-radius:7px;overflow:hidden;background:#f4f6f8;color:#7b8794;
  font-size:14px;flex:0 0 40px;
}
.sd-search-suggestion-thumb img{
  display:block!important;
  width:40px!important;height:40px!important;
  max-width:40px!important;max-height:40px!important;
  min-width:0!important;min-height:0!important;
  object-fit:cover!important;
}
.sd-search-suggestion-title{
  min-width:0;
  overflow:hidden;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  font-size:13px;
  line-height:1.32;
  font-weight:700;
  color:#202932;
}
.sd-search-suggestion-meta{
  margin-top:3px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:10.5px;
  line-height:1.2;
  color:#7a8794;
}
.sd-search-suggestion-type{
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:.04em;
  font-weight:800;
  color:#8a96a3;
}
.sd-search-suggestions-empty{padding:14px 12px;font-size:12px;color:#7b8794}

@media (max-width:991.98px){
  .sd-site-shell .sd-global-search{z-index:60!important}
  .sd-site-shell .sd-search-suggestions{top:calc(100% + 6px);max-height:50vh;border-radius:9px}
  .sd-search-suggestion{grid-template-columns:34px minmax(0,1fr);min-height:48px;padding:6px 7px;gap:8px}
  .sd-search-suggestion-thumb{width:34px!important;height:34px!important;max-width:34px!important;max-height:34px!important;flex-basis:34px}
  .sd-search-suggestion-thumb img{width:34px!important;height:34px!important;max-width:34px!important;max-height:34px!important}
  .sd-search-suggestion-title{font-size:12px;line-height:1.3;-webkit-line-clamp:2}
  .sd-search-suggestion-meta{font-size:9.5px}
}

@media (max-width:575.98px){
  .sd-site-shell .sd-search-suggestions{top:calc(100% + 5px);left:-1px;right:-1px;padding:5px;max-height:56vh}
  .sd-search-suggestion{grid-template-columns:32px minmax(0,1fr);min-height:46px}
  .sd-search-suggestion-thumb{width:32px!important;height:32px!important;max-width:32px!important;max-height:32px!important;flex-basis:32px}
  .sd-search-suggestion-thumb img{width:32px!important;height:32px!important;max-width:32px!important;max-height:32px!important}
  .sd-search-suggestion-title{font-size:12px}
  .sd-search-suggestion-meta{font-size:9px}
}

/* Runtime safety: only the canonical ID container should be visible. */
.sd-site-shell .sd-global-search > .sd-search-suggestions:not(#sdSearchSuggestions){display:none!important;}

/* v6: hard guard against duplicate containers created by cached legacy scripts. */
.sd-site-shell .sd-global-search > .sd-search-suggestions:not(#sdSearchSuggestions),
.sd-site-shell .sd-global-search .sd-search-suggestions:not(#sdSearchSuggestions){display:none!important}

/* ===== ajax-ui.css ===== */
/* SaveDeals AJAX feedback */
.sd-ajax-toast-host{position:fixed;right:18px;bottom:18px;z-index:1085;display:flex;flex-direction:column;gap:8px;max-width:min(360px,calc(100vw - 36px));pointer-events:none}
.sd-ajax-toast{padding:.7rem .9rem;border:1px solid rgba(0,0,0,.08);border-radius:.7rem;background:#fff;box-shadow:0 .5rem 1.5rem rgba(0,0,0,.12);font-size:.88rem;font-weight:600;opacity:0;transform:translateY(8px);transition:opacity .18s ease,transform .18s ease}
.sd-ajax-toast.show{opacity:1;transform:translateY(0)}
.sd-ajax-toast.error{border-color:#f0b6b6;color:#842029}
.sd-ajax-toast.success{border-color:#b7dec0;color:#146c43}
@media (max-width:575.98px){.sd-ajax-toast-host{right:12px;left:12px;bottom:12px;max-width:none}.sd-ajax-toast{text-align:center}}

/* ===== header-unified-lock.css ===== */
/*
 * SaveDeals â€” final public header lock
 * Loaded after page CSS so deal.php and every public route use one identical
 * header geometry. Search suggestion popup styling remains in its own CSS.
 */

.sd-site-shell,
.sd-site-shell *{box-sizing:border-box!important}

.sd-site-shell{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  display:block!important;
  position:relative!important;
  z-index:1040!important;
  background:#fff!important;
  color:#fff!important;
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif!important;
}

/* Mobile: pin the shell to the viewport so the full header (logo/search/department
   nav) stays fixed while scrolling. Must live in this file â€” it loads last and
   would otherwise override an equal-specificity !important fixed rule declared
   in page-level styles. No body/main offset; header overlays content top. */
@media (max-width: 991.98px){
  .sd-site-shell{
    position:fixed!important;
    top:0!important;
    left:0!important;
    right:0!important;
    z-index:1050!important;
  }
}

.sd-site-shell .sd-header-container{
  width:min(1280px,calc(100% - 32px))!important;
  max-width:1280px!important;
  margin-inline:auto!important;
  padding:0!important;
}

/* Utility strip */
.sd-site-shell .sd-utility-bar{
  width:100%!important;
  min-height:32px!important;
  height:32px!important;
  margin:0!important;
  padding:0!important;
  background:#111827!important;
  color:#d5d9d9!important;
  font-size:12px!important;
  line-height:1!important;
  border:0!important;
}
.sd-site-shell .sd-utility-bar .sd-header-container{
  min-height:32px!important;
  height:32px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
}
.sd-site-shell .sd-utility-left,
.sd-site-shell .sd-utility-right{
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
}
.sd-site-shell .sd-utility-note,
.sd-site-shell .sd-utility-right a{
  color:#d5d9d9!important;
  text-decoration:none!important;
  white-space:nowrap!important;
  font:inherit!important;
  line-height:1!important;
}
.sd-site-shell .sd-utility-right a:hover,
.sd-site-shell .sd-utility-right a:focus-visible{
  color:#fff!important;
  text-decoration:none!important;
}
.sd-site-shell .sd-utility-note i{margin-right:4px!important;color:#ffad2e!important}
.sd-site-shell .sd-header-count{
  display:inline-flex!important;
  min-width:18px!important;
  width:auto!important;
  height:18px!important;
  padding:0 5px!important;
  align-items:center!important;
  justify-content:center!important;
  margin-left:3px!important;
  border-radius:999px!important;
  background:#ff9900!important;
  color:#111!important;
  font-size:10px!important;
  font-weight:900!important;
  line-height:1!important;
}

/* Main header */
.sd-site-shell .sd-main-header{
  width:100%!important;
  min-height:72px!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  background:#17222d!important;
  color:#fff!important;
  border:0!important;
  display:block!important;
}
.sd-site-shell .sd-main-header-inner{
  width:100%!important;
  min-height:72px!important;
  margin:0!important;
  padding:10px 0!important;
  display:grid!important;
  grid-template-columns:auto minmax(320px,1fr) auto!important;
  grid-template-rows:auto!important;
  align-items:center!important;
  gap:18px!important;
}

/* Brand */
.sd-site-shell .sd-brand{
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  color:#fff!important;
  text-decoration:none!important;
  font-weight:800!important;
  line-height:1!important;
  white-space:nowrap!important;
  margin:0!important;
  padding:0!important;
}
.sd-site-shell .sd-brand:hover,
.sd-site-shell .sd-brand:focus-visible{color:#fff!important;text-decoration:none!important}
.sd-site-shell .sd-brand-mark{
  width:36px!important;
  height:36px!important;
  flex:0 0 36px!important;
  display:grid!important;
  place-items:center!important;
  border:2px solid #fff!important;
  border-radius:5px!important;
  color:#fff!important;
  background:transparent!important;
  font-size:20px!important;
  font-weight:900!important;
  line-height:1!important;
  margin:0!important;
  padding:0!important;
}
.sd-site-shell .sd-brand-text{
  display:block!important;
  color:#fff!important;
  font-size:20px!important;
  font-weight:800!important;
  line-height:1!important;
  margin:0!important;
  padding:0!important;
}

/* Search geometry only; suggestion popup remains controlled by search-suggestions.css */
.sd-site-shell .sd-global-search{
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:42px!important;
  min-height:42px!important;
  margin:0!important;
  padding:0!important;
  display:flex!important;
  align-items:stretch!important;
  grid-column:2!important;
  grid-row:1!important;
  position:relative!important;
  border:0!important;
  border-radius:7px!important;
  overflow:visible!important;
  background:#fff!important;
  box-shadow:none!important;
}
.sd-site-shell .sd-global-search label{display:none!important}
.sd-site-shell .sd-global-search input{
  flex:1 1 auto!important;
  width:100%!important;
  min-width:0!important;
  height:42px!important;
  min-height:42px!important;
  margin:0!important;
  border:0!important;
  outline:0!important;
  border-radius:7px 0 0 7px!important;
  background:#fff!important;
  color:#1f2937!important;
  padding:0 15px!important;
  font-family:inherit!important;
  font-size:14px!important;
  font-weight:450!important;
  line-height:42px!important;
}
.sd-site-shell .sd-global-search input::placeholder{color:#667085!important;opacity:1!important}
.sd-site-shell .sd-global-search button{
  width:56px!important;
  min-width:56px!important;
  flex:0 0 56px!important;
  height:42px!important;
  min-height:42px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0 7px 7px 0!important;
  background:#ff9900!important;
  color:#1c232a!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  font-family:inherit!important;
  font-size:13px!important;
  font-weight:800!important;
  line-height:1!important;
  box-shadow:none!important;
}
.sd-site-shell .sd-global-search button:hover,
.sd-site-shell .sd-global-search button:focus-visible{background:#ffad2e!important;color:#1c232a!important}
.sd-site-shell .sd-global-search button i{font-size:14px!important;line-height:1!important}
.sd-site-shell .sd-search-button-label{display:none!important}

/* Desktop actions */
.sd-site-shell .sd-header-actions{
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:4px!important;
  flex:0 0 auto!important;
  margin:0!important;
  padding:0!important;
}
.sd-site-shell .sd-header-actions a{
  min-width:74px!important;
  min-height:46px!important;
  padding:5px 9px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:2px!important;
  color:#fff!important;
  text-decoration:none!important;
  border-radius:6px!important;
  margin:0!important;
  line-height:1!important;
}
.sd-site-shell .sd-header-actions a:hover,
.sd-site-shell .sd-header-actions a:focus-visible{color:#fff!important;text-decoration:none!important;background:rgba(255,255,255,.08)!important;outline:0!important}
.sd-site-shell .sd-action-small{
  display:block!important;
  color:#cbd5df!important;
  font-size:10px!important;
  font-weight:600!important;
  line-height:1!important;
  margin:0!important;
  padding:0!important;
}
.sd-site-shell .sd-header-actions strong{
  display:block!important;
  color:#fff!important;
  font-size:12px!important;
  font-weight:800!important;
  line-height:1!important;
  margin:0!important;
  padding:0!important;
}

/* Mobile shortcuts */
.sd-site-shell .sd-mobile-header-actions{
  display:none!important;
  align-items:center!important;
  gap:4px!important;
  margin:0!important;
  padding:0!important;
}
.sd-site-shell .sd-mobile-header-action{
  min-width:64px!important;
  min-height:40px!important;
  padding:5px 7px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:2px!important;
  color:#fff!important;
  text-decoration:none!important;
  border-radius:6px!important;
  font-size:10px!important;
  font-weight:700!important;
  line-height:1!important;
  margin:0!important;
}
.sd-site-shell .sd-mobile-header-action:hover,
.sd-site-shell .sd-mobile-header-action:focus-visible{color:#fff!important;text-decoration:none!important;background:rgba(255,255,255,.08)!important;outline:0!important}
.sd-site-shell .sd-mobile-header-action-icon{font-size:16px!important;line-height:1!important;color:#fff!important}
.sd-site-shell .sd-mobile-header-action strong{font-size:10px!important;line-height:1!important}

/* Department rail */
.sd-site-shell .sd-department-nav{
  width:100%!important;
  min-height:43px!important;
  margin:0!important;
  padding:0!important;
  background:#243342!important;
  border-top:1px solid rgba(255,255,255,.06)!important;
  border-bottom:1px solid rgba(0,0,0,.12)!important;
}
.sd-site-shell .sd-department-inner{
  width:100%!important;
  min-height:43px!important;
  margin:0 auto!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  gap:2px!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scrollbar-width:none!important;
  white-space:nowrap!important;
}
.sd-site-shell .sd-department-inner::-webkit-scrollbar{display:none!important}
.sd-site-shell .sd-department-inner>a{
  flex:0 0 auto!important;
  min-height:43px!important;
  height:43px!important;
  margin:0!important;
  padding:0 11px!important;
  display:inline-flex!important;
  align-items:center!important;
  gap:6px!important;
  color:#eef3f7!important;
  text-decoration:none!important;
  font-family:inherit!important;
  font-size:12px!important;
  font-weight:700!important;
  line-height:1!important;
  border:0!important;
  border-bottom:3px solid transparent!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.sd-site-shell .sd-department-inner>a:hover,
.sd-site-shell .sd-department-inner>a:focus-visible{
  color:#fff!important;
  text-decoration:none!important;
  background:rgba(255,255,255,.06)!important;
  border:0!important;
  border-bottom:3px solid #ff9900!important;
  outline:0!important;
}
.sd-site-shell .sd-department-inner>a.is-accent{
  color:#ffd39a!important;
  background:transparent!important;
  border-bottom-color:transparent!important;
}
.sd-site-shell .sd-department-inner>a.is-accent:hover,
.sd-site-shell .sd-department-inner>a.is-accent:focus-visible{
  color:#fff0d2!important;
  border-bottom-color:#ff9900!important;
  background:rgba(255,255,255,.06)!important;
}
.sd-site-shell .sd-all-departments{
  font-weight:850!important;
  color:#fff!important;
  border-right:1px solid rgba(255,255,255,.10)!important;
  border-bottom-color:transparent!important;
  padding-right:15px!important;
  margin-right:3px!important;
}
.sd-site-shell .sd-all-departments i{color:#ffad2e!important}

/* Tablet */
@media(max-width:991.98px){
  .sd-site-shell .sd-main-header-inner{
    min-height:105px!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-rows:auto 42px!important;
    align-items:center!important;
    gap:8px 12px!important;
    padding:8px 0 9px!important;
  }
  .sd-site-shell .sd-brand{grid-column:1!important;grid-row:1!important}
  .sd-site-shell .sd-header-actions{display:none!important}
  .sd-site-shell .sd-mobile-header-actions{display:flex!important;grid-column:2!important;grid-row:1!important}
  .sd-site-shell .sd-global-search{grid-column:1 / -1!important;grid-row:2!important;width:100%!important;height:42px!important}
  .sd-site-shell .sd-department-inner>a{min-height:40px!important;height:40px!important}
}

/* Small mobile */
@media(max-width:575.98px){
  .sd-site-shell .sd-header-container{width:calc(100% - 20px)!important;max-width:none!important}
  .sd-site-shell .sd-utility-bar{min-height:30px!important;height:30px!important;font-size:11px!important}
  .sd-site-shell .sd-utility-bar .sd-header-container{min-height:30px!important;height:30px!important}
  .sd-site-shell .sd-utility-note{max-width:65vw!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .sd-site-shell .sd-main-header-inner{min-height:105px!important;gap:7px 8px!important;padding-top:8px!important;padding-bottom:8px!important}
  .sd-site-shell .sd-brand-mark{width:34px!important;height:34px!important;flex-basis:34px!important;font-size:19px!important}
  .sd-site-shell .sd-brand-text{font-size:18px!important}
  .sd-site-shell .sd-mobile-header-actions{gap:4px!important}
  .sd-site-shell .sd-mobile-header-action{min-width:58px!important;min-height:38px!important;padding-inline:6px!important;font-size:9px!important}
  .sd-site-shell .sd-mobile-header-action-icon{font-size:14px!important}
  .sd-site-shell .sd-global-search{height:42px!important;min-height:42px!important}
  .sd-site-shell .sd-global-search input{height:42px!important;min-height:42px!important;font-size:13px!important;padding-inline:12px!important}
  .sd-site-shell .sd-global-search button{width:48px!important;min-width:48px!important;flex-basis:48px!important;height:42px!important;min-height:42px!important}
  .sd-site-shell .sd-department-inner{min-height:40px!important}
  .sd-site-shell .sd-department-inner>a{min-height:40px!important;height:40px!important;padding-inline:9px!important;font-size:11px!important}
}
