.mytheme-store-notice-bar{
  top:0;
  left:0;
  right:0;
  z-index:99999;
  background:var(--sn-bg);
  color:var(--sn-fg);
  font-size:var(--sn-fs);
  padding:12px 14px;
  box-sizing:border-box;
  box-shadow:0 10px 30px rgba(0,0,0,.14);
}
.mytheme-store-notice-bar.mytheme-pos--fixed{position:fixed;}
.mytheme-store-notice-bar.mytheme-pos--fixed_header{position:fixed;}
.mytheme-store-notice-bar.mytheme-pos--sticky{position:sticky;}
body.admin-bar .mytheme-store-notice-bar{top:32px;}
@media (max-width: 782px){body.admin-bar .mytheme-store-notice-bar{top:46px;}}

.mytheme-store-notice-bar *{box-sizing:border-box;}

.mytheme-notice-inner{
  position:relative;
  max-width:1240px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-align:center;
  padding-right:48px;
}

.mytheme-notice-badges{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:center;
}

.mytheme-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 12px;
  border-radius:999px;
  font-size:12px;
  line-height:1;
  font-weight:700;
  letter-spacing:.2px;
}

.mytheme-badge--promo{
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.24);
  backdrop-filter:saturate(130%) blur(8px);
}

.mytheme-notice-text{
  line-height:1.35;
  max-width:920px;
}

.mytheme-notice-copy-stack{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.mytheme-notice-headline{
  margin:0;
  color:inherit;
  line-height:1.02;
  letter-spacing:-.03em;
  font-weight:900;
  font-size:clamp(20px, 3vw, 36px);
}

.mytheme-notice-subheadline{
  margin:0;
  color:inherit;
  opacity:.98;
  line-height:1.3;
  font-size:clamp(14px, 1.4vw, 18px);
  max-width:780px;
}

.mytheme-notice-extra{
  margin-top:2px;
}

.mytheme-notice-extra > *:first-child{margin-top:0;}
.mytheme-notice-extra > *:last-child{margin-bottom:0;}

.mytheme-notice-actions{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:10px;
  flex-wrap:wrap;
}

.mytheme-notice-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 16px;
  border-radius:999px;
  text-decoration:none !important;
  font-weight:800;
  line-height:1;
  color:inherit;
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.26);
  box-shadow:0 8px 20px rgba(0,0,0,.14);
  transition:transform .12s ease, background .12s ease, box-shadow .12s ease;
}

.mytheme-notice-button:hover{
  color:inherit;
  background:rgba(255,255,255,.24);
  transform:translateY(-1px);
  box-shadow:0 10px 24px rgba(0,0,0,.18);
}

.mytheme-notice-text > *:first-child{margin-top:0;}
.mytheme-notice-text > *:last-child{margin-bottom:0;}

.mytheme-notice-text h2,
.mytheme-notice-text h3,
.mytheme-notice-text h4{
  margin:0;
  color:inherit;
  line-height:1.05;
  letter-spacing:-.02em;
  font-weight:800;
}

.mytheme-notice-text h2{font-size:clamp(22px, 3vw, 34px);}
.mytheme-notice-text h3{font-size:clamp(18px, 2.2vw, 26px);}
.mytheme-notice-text h4{font-size:clamp(16px, 2vw, 20px);}

.mytheme-notice-text p{
  margin:0;
  color:inherit;
  opacity:.97;
}

.mytheme-notice-text p + p{margin-top:6px;}

.mytheme-notice-text strong{
  font-weight:800;
  color:inherit;
}

.mytheme-notice-text em{
  font-style:italic;
  opacity:.96;
}

.mytheme-notice-text ul,
.mytheme-notice-text ol{
  margin:8px 0 0;
  padding-left:18px;
  text-align:left;
}

.mytheme-notice-text li + li{margin-top:4px;}

.mytheme-notice-text a{
  color:inherit;
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:3px;
}

.mytheme-notice-text p > a:only-child{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  margin-top:4px;
  border-radius:999px;
  text-decoration:none;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.24);
  box-shadow:0 8px 20px rgba(0,0,0,.12);
}

.mytheme-notice-text p > a:only-child:hover{
  background:rgba(255,255,255,.22);
  transform:translateY(-1px);
}

.mytheme-countdown-container{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  justify-content:center;
}

.mytheme-countdown-prefix{
  font-weight:700;
  opacity:.96;
}

.mytheme-countdown{
  display:inline-block;
  background:var(--sn-cbg);
  color:var(--sn-cfg);
  padding:6px 10px;
  border-radius:10px;
  font-size:var(--sn-cfs);
  font-variant-numeric:tabular-nums;
  font-weight:800;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);
}

.mytheme-notice-dismiss{
  position:absolute;
  right:8px;
  top:8px;
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.24);
  border-radius:999px;
  color:inherit;
  font-size:22px;
  line-height:1;
  cursor:pointer;
  opacity:.96;
}
.mytheme-notice-dismiss:hover{
  opacity:1;
  background:rgba(255,255,255,.22);
}
@media (min-width: 782px){
  .mytheme-notice-dismiss{
    top:50%;
    transform:translateY(-50%);
  }
}

/* Template: Classic */
.mytheme-notice--classic .mytheme-notice-inner{
  gap:10px;
}

/* Template: Pills */
.mytheme-notice--pills .mytheme-notice-inner{
  gap:12px;
}
.mytheme-notice--pills .mytheme-notice-text{
  font-weight:600;
}
.mytheme-notice--pills .mytheme-badge--promo{
  background:rgba(255,255,255,.18);
  box-shadow:0 6px 18px rgba(0,0,0,.12);
}

/* Template: Gradient */
.mytheme-notice--gradient{
  background:
    radial-gradient(circle at 15% 50%, rgba(255,255,255,.18), transparent 32%),
    linear-gradient(115deg, var(--sn-bg), rgba(0,0,0,.35));
}
.mytheme-notice--gradient .mytheme-badge--promo{
  background:rgba(0,0,0,.24);
  border-color:rgba(255,255,255,.18);
}

/* Template: Boxed */
.mytheme-notice--boxed{
  padding:14px 12px;
  background:linear-gradient(180deg, var(--sn-bg), rgba(0,0,0,.18));
}
.mytheme-notice--boxed .mytheme-notice-inner{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.18);
  border-radius:18px;
  padding:14px 18px;
  width:min(1140px, calc(100% - 8px));
  backdrop-filter:blur(10px) saturate(130%);
}

/* Template: Split CTA */
.mytheme-notice--split{
  background:
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,0) 40%),
    var(--sn-bg);
}
.mytheme-notice--split .mytheme-notice-inner{
  gap:14px;
}
.mytheme-notice--split .mytheme-countdown-container{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.16);
  padding:8px 10px;
  border-radius:14px;
}

/* Template: Spotlight */
.mytheme-notice--spotlight{
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,.22), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.10), transparent 26%),
    linear-gradient(135deg, var(--sn-bg), rgba(0,0,0,.42));
}
.mytheme-notice--spotlight .mytheme-notice-inner{
  gap:14px;
}
.mytheme-notice--spotlight .mytheme-badge--promo{
  background:rgba(255,255,255,.22);
  border-color:rgba(255,255,255,.22);
}
.mytheme-notice--spotlight .mytheme-notice-text h2,
.mytheme-notice--spotlight .mytheme-notice-text h3{
  text-shadow:0 6px 18px rgba(0,0,0,.18);
}

/* Template: Elegant Dark */
.mytheme-notice--elegant{
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0)),
    linear-gradient(90deg, rgba(255,255,255,.03), rgba(255,255,255,0) 25%, rgba(255,255,255,.03)),
    var(--sn-bg);
}
.mytheme-notice--elegant .mytheme-notice-inner{
  gap:12px;
}
.mytheme-notice--elegant .mytheme-badge--promo{
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.15);
}
.mytheme-notice--elegant .mytheme-notice-text{
  letter-spacing:.01em;
}

@media (min-width: 782px){
  .mytheme-notice-inner{
    flex-direction:row;
    justify-content:center;
    text-align:left;
    align-items:center;
    gap:14px;
  }

  .mytheme-notice-badges{
    justify-content:flex-start;
  }

  .mytheme-countdown-container{
    justify-content:flex-start;
  }

  .mytheme-notice--split .mytheme-notice-inner{
    justify-content:space-between;
  }

  .mytheme-notice--split .mytheme-notice-text{
    max-width:780px;
  }

  .mytheme-notice--split .mytheme-countdown-container{
    margin-left:auto;
  }
}

@media (max-width: 767px){
  .mytheme-store-notice-bar{
    padding:12px 12px;
  }

  .mytheme-notice-inner{
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-start;
    text-align:left;
    gap:10px;
    padding-right:38px;
  }

  .mytheme-notice-badges{
    justify-content:flex-start;
  }

  .mytheme-badge{
    font-size:11px;
    padding:5px 10px;
  }

  .mytheme-notice-text{
    width:100%;
    max-width:none;
  }

  .mytheme-notice-copy-stack{
    gap:6px;
  }

  .mytheme-notice-headline{
    font-size:clamp(20px, 7vw, 28px);
    line-height:1.04;
  }

  .mytheme-notice-subheadline{
    font-size:14px;
    line-height:1.32;
    max-width:none;
  }

  .mytheme-notice-extra{
    font-size:13px;
  }

  .mytheme-notice-actions{
    width:100%;
    margin-top:8px;
  }

  .mytheme-notice-button{
    width:100%;
    justify-content:center;
    min-height:40px;
  }

  .mytheme-countdown-container{
    width:100%;
    justify-content:flex-start;
    margin-left:0;
    gap:6px;
  }

  .mytheme-countdown-prefix{
    font-size:12px;
  }

  .mytheme-countdown{
    font-size:14px;
    padding:6px 9px;
  }

  .mytheme-notice-dismiss{
    top:6px;
    right:6px;
    transform:none;
    width:30px;
    height:30px;
    font-size:18px;
  }
}

/* Prevent content hidden behind fixed bar */
:root{--mytheme-store-notice-offset:0px;}
body{--mytheme-store-notice-offset:0px;}

body.mytheme-has-store-notice.mytheme-store-notice--fixed{
  padding-top:var(--mytheme-store-notice-offset);
}

body.mytheme-has-store-notice.mytheme-store-notice--fixed-header{
  padding-top:var(--mytheme-store-notice-offset);
}
