/* gadgetlogy Sale Notice v0.1.8 — centered desktop announcement, per-campaign colors. */
.gdl-sale-top, .gdl-sale-float, .gdl-sale-top *, .gdl-sale-float * { box-sizing: border-box; }
/* Each placement inherits its own independently editable, validated colors. */
.gdl-sale-top {
  --gdl-sale-bg: #242424; --gdl-sale-title: #ffffff;
  --gdl-sale-desc: #dbdbdb; --gdl-sale-accent: #dcc18f;
  --gdl-sale-cta-bg: #d7bc87; --gdl-sale-cta-text: #202020;
  --gdl-sale-border: #373737;
  position: relative; z-index: 7; width: 100%; background: var(--gdl-sale-bg);
  border-top: 1px solid var(--gdl-sale-border); border-bottom: 1px solid var(--gdl-sale-border);
  color: var(--gdl-sale-title); font-family: inherit; line-height: 1.35;
}
.gdl-sale-top__link { display: block; color: var(--gdl-sale-title) !important; text-decoration: none !important; }
/* Editorial layout A: short, centered information group, never split across the page. */
.gdl-sale-top__inner {
  width: min(900px, calc(100% - 32px)); min-height: 58px; margin-inline: auto;
  display: flex; flex-wrap: nowrap; align-items: center; justify-content: center;
  gap: 16px; padding: 8px 0;
}
.gdl-sale-top__marker {
  flex: none; display: inline-block; padding: 5px 9px;
  background: var(--gdl-sale-accent); color: var(--gdl-sale-bg);
  font-family: inherit; font-size: 10px; line-height: 1.25; font-weight: 850;
  letter-spacing: .14em;
}
.gdl-sale-top__copy {
  display: flex; flex-direction: column; justify-content: center;
  flex: 0 1 auto; min-width: 0; max-width: 480px; gap: 3px;
}
.gdl-sale-top__title {
  display: block; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  color: var(--gdl-sale-title); font-weight: 800; font-size: 15px; line-height: 1.4;
}
.gdl-sale-top__sub {
  display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  color: var(--gdl-sale-desc); font-size: 12px; line-height: 1.35;
}
.gdl-sale-top__cta {
  position: relative; isolation: isolate; overflow: hidden; display: inline-block;
  flex: none; max-width: min(40vw, 320px); min-width: 0; overflow: hidden; text-overflow: ellipsis;
  padding: 10px 17px; background: var(--gdl-sale-cta-bg);
  color: var(--gdl-sale-cta-text); font-size: 12px; font-weight: 800;
  white-space: nowrap; border-radius: 2px;
  transition: filter .2s ease, transform .2s ease;
}
.gdl-sale-top__cta::after { content: ' ↗'; }
/* A restrained shimmer happens only while hovered/focused, never automatically. */
.gdl-sale-top__cta::before {
  content: ''; position: absolute; z-index: 1; top: -70%; bottom: -70%; left: -40%;
  width: 33%; pointer-events: none; transform: translateX(-180%) rotate(24deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  transition: transform .55s ease;
}
.gdl-sale-top__disclosure { flex: none; color: var(--gdl-sale-desc); font-size: 10px; opacity: .85; letter-spacing: .05em; }
.gdl-sale-top__link:hover .gdl-sale-top__cta,
.gdl-sale-top__link:focus-visible .gdl-sale-top__cta { filter: brightness(1.08); transform: translateY(-1px); }
.gdl-sale-top__link:hover .gdl-sale-top__cta::before,
.gdl-sale-top__link:focus-visible .gdl-sale-top__cta::before { transform: translateX(520%) rotate(24deg); }
.gdl-sale-top__link:focus-visible { outline: 3px solid var(--gdl-sale-accent); outline-offset: -3px; }
/* SANGO's theme option is not changed; suppress it only while our active bar is visible. */
body.gdl-sale-has-active #container > .header-info, body.gdl-sale-has-active .header-info { display: none !important; }

.gdl-sale-float {
  --gdl-sale-bg: #242424; --gdl-sale-title: #ffffff;
  --gdl-sale-desc: #e4e4e4; --gdl-sale-accent: #d7bc87;
  --gdl-sale-cta-bg: #d7bc87; --gdl-sale-cta-text: #202020;
  --gdl-sale-border: #3b3b3b;
  position: fixed; z-index: 9995; right: 20px; bottom: 76px;
  width: min(365px, calc(100vw - 32px)); padding: 12px 14px 9px;
  color: var(--gdl-sale-title); background: var(--gdl-sale-bg); border: 1px solid var(--gdl-sale-border); border-radius: 6px;
  font-family: inherit; box-shadow: 0 10px 32px rgba(0,0,0,.20);
  opacity: 0; transform: translateY(14px); pointer-events: none; visibility: hidden;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
}
.gdl-sale-float--visible { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.gdl-sale-float__top { display: flex; align-items: center; gap: 8px; min-height: 28px; padding-right: 38px; }
.gdl-sale-float__marker { display:inline-block; padding: 5px 9px; background: var(--gdl-sale-accent); color: var(--gdl-sale-cta-text); font-size: 10px; font-weight: 850; letter-spacing: .14em; line-height: 1.25; border-radius: 2px; }
.gdl-sale-float__title { min-width: 0; flex: 1; color: var(--gdl-sale-title); font-size: 12px; font-weight: 750; line-height: 1.45; overflow-wrap: anywhere; }
.gdl-sale-float__close { position: absolute; top: 2px; right: 2px; flex: none; width: 32px; height: 32px; border: 0; border-radius: 4px; padding: 0; line-height: 1; font-size: 23px; background: transparent; color: var(--gdl-sale-desc); cursor: pointer; box-shadow: none; }
.gdl-sale-float__close:hover, .gdl-sale-float__close:focus-visible { opacity: .75; color: var(--gdl-sale-title); }
.gdl-sale-float__bottom { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.gdl-sale-float__sub { min-width: 0; flex: 1; color: var(--gdl-sale-desc); font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.gdl-sale-float__cta { flex: none; padding: 10px 12px; border-radius: 3px; text-decoration: none !important; font-size: 11px; font-weight: 800; background: var(--gdl-sale-cta-bg); color: var(--gdl-sale-cta-text) !important; }
.gdl-sale-float__cta::after { content: ' ↗'; }
.gdl-sale-float__cta:hover { filter: brightness(1.08); }
.gdl-sale-float__cta:focus-visible, .gdl-sale-float__close:focus-visible { outline: 2px solid var(--gdl-sale-accent); outline-offset: 2px; }
.gdl-sale-float__pr { display: block; margin-top: 6px; text-align: right; color: var(--gdl-sale-desc); opacity: .85; font-size: 9px; letter-spacing: .01em; }
@media (max-width: 640px) {
  /* Mobile retains the existing compact, single-row layout. */
  .gdl-sale-top__inner { width: calc(100% - 24px); min-height: 48px; gap: 8px; justify-content: flex-start; }
  .gdl-sale-top__marker { padding: 4px 6px; font-size: 9px; }
  .gdl-sale-float__marker { padding: 4px 7px; font-size: 9px; }
  .gdl-sale-top__copy { flex: 1 1 auto; min-width: 0; max-width: none; }
  .gdl-sale-top__title { font-size: 12px; }
  .gdl-sale-top__sub { display: none; }
  .gdl-sale-top__cta { flex: 0 1 auto; min-width: 0; max-width: 45%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 7px 8px; font-size: 10px; }
  .gdl-sale-top__disclosure { font-size: 8px; }
  .gdl-sale-float { right: 12px; left: 12px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: auto; }
  .gdl-sale-float__top { padding-right: 42px; }
  .gdl-sale-float__close { top: 2px; right: 2px; }
  .gdl-sale-float--nav { bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .gdl-sale-float { transition: none; transform: none; }
  .gdl-sale-top__link, .gdl-sale-top__cta, .gdl-sale-top__cta::before, .gdl-sale-float * { transition: none; }
}
