.apa-voucher-center {
  margin: 30px auto;
}

.apa-voucher-hero img {
  
  border-radius: 24px;
  
  margin-bottom: 30px;
}

.apa-voucher-kicker {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  margin: 0 0 8px;
  opacity: .8;
}

.apa-voucher-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
}

.apa-voucher-intro {
  margin: 12px 0 0;
  max-width: 700px;
  color: rgba(255, 255, 255, .82);
}

.apa-voucher-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 20px;
}

.apa-voucher-filters,
.apa-voucher-sorts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.apa-voucher-sort-drawer-header,
.apa-voucher-filter-drawer,
.apa-voucher-mobile-backdrop {
  display: none;
}
#bartop.apa-voucher-mobile-bartop{
  display: none !important;
}
.apa-voucher-search {
  width: 100%;
  margin-top: 8px;
}



.apa-voucher-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: #f3f3f3;
  color: #111;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  transition: all .18s ease;
  border: 0;
  cursor: pointer;
}

.apa-voucher-pill:hover,
.apa-voucher-pill.is-active {
  background: #111;
  color: #fff;
}

.apa-voucher-results-wrap {
  position: relative;
  min-height: 120px;
}

.apa-voucher-loading {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(2px);
  border-radius: 18px;
  z-index: 3;
  font-weight: 700;
  color: #111;
}

.apa-voucher-center.is-loading .apa-voucher-loading {
  display: flex;
}

.apa-voucher-center.is-loading .apa-voucher-results,
.apa-voucher-center.is-loading [data-voucher-toolbar-wrap] {
  opacity: .35;
  pointer-events: none;
}

.apa-voucher-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(17, 17, 17, .2);
  border-top-color: #111;
  animation: apa-voucher-spin .8s linear infinite;
}

@keyframes apa-voucher-spin {
  to {
    transform: rotate(360deg);
  }
}

.apa-voucher-result-summary {
  margin-bottom: 14px;
  color: #444;
}

.apa-voucher-section-title {
      margin: 26px 0 12px;
    color: #000;
    font-size: 20px;
    line-height: 1.3;
    font-family: 'UTM';
    font-weight: 100;
    text-transform: uppercase;
}

.apa-voucher-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.apa-voucher-card {
  border: 1px solid #919191;
  border-radius: 15px;
  background: #f8f8f8;
  padding: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .04);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.apa-voucher-card.is-active {
  border-color: #111;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .12);
  transform: translateY(-2px);
}

.apa-voucher-card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.apa-voucher-type {
  display: inline-flex;
  background: #fff2d9;
  color: #aa6a00;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  margin-bottom: 10px;
}

.apa-voucher-card h2 {
      margin: 0;
    font-size: 22px;
    line-height: 1.2;
    font-family: UTM;
    font-weight: 100;
    text-transform: uppercase;
    color: #000;
}

.apa-voucher-badge {
  
    text-align: center;
    background: #111;
    color: #fff;
    border-radius: 5px;
    padding: 5px 8px;
    font-weight: 700;
    position: relative;
    font-size: 12px;
}
.apa-voucher-badge:after{
  content: "";
  display: inline-block;
  width: 30px;
  height: 30px;
  position: absolute;
  top: 0;
  background: url(../../img/sale-bage.png) center no-repeat;
      background-size: 30px;
}
.apa-voucher-desc {
  margin: 14px 0 0;
  color: #444;
  min-height: 45px;
}
.apa-voucher-desc p{
  font-style: italic;
  
}
.apa-voucher-desc p:last-child {
  margin-bottom: 0;
}
.apa-voucher-center .apa-voucher-search-input{
      border-radius: 10px !important;
    max-width: 400px !important;
    margin: auto;
    display: block;
    width: 100% !important;
    font-weight: 100;
    font-size: 15px !important;
}

.apa-voucher-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  font-size: 13px;
  color: #666;
  flex-wrap: wrap;
}

.apa-voucher-actions {
      display: flex;
    gap: 6px;
    margin-top: 8px;
}

.apa-voucher-copy,
.apa-voucher-use {
  display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    padding: 2px 6px;
    font-weight: 700;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    min-height: initial;
    line-height: initial;
        font-size: 12px;
}

.apa-voucher-copy {
      background: #dd3333;
    color: #fff;
    margin: 0;
    min-height: 30px;
    text-transform: inherit;
    font-weight: 100;
}
.apa-voucher-use:hover{
  background-color: crimson;
  color: #fff;
}


.apa-voucher-copy.is-copied {
  background: #111;
  color: #fff;
}

.apa-voucher-use {
  background: #111;
  color: #fff;
}

.apa-voucher-use.is-active {
  background: #dd3333;
  color: #fff;
}

.apa-voucher-copy:focus-visible,
.apa-voucher-use:focus-visible,
.apa-coupon-products-close:focus-visible,
.apa-voucher-products-retry:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.apa-voucher-empty {
  padding: 24px;
  border-radius: 18px;
  background: #f7f7f7;
  color: #444;
}

.apa-voucher-products-wrap {
  position: relative;
  display: none;
  min-height: 140px;
  margin-top: 42px;
  scroll-margin-top: 90px;
}

.apa-voucher-products-wrap.has-products {
  display: block;
}

.apa-voucher-products-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  padding-top: 90px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .86);
  color: #111;
  font-weight: 700;
  backdrop-filter: blur(2px);
}

.apa-voucher-products-wrap.is-loading-products .apa-voucher-products-loading {
  display: flex;
}

.apa-voucher-products-wrap.is-loading-products [data-voucher-products] {
  min-height: 220px;
  opacity: .38;
  pointer-events: none;
}

.apa-coupon-products--center {
  padding: 0 0 60px;
}

.apa-coupon-products-inline-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid #e3ddd5;
  border-radius: 16px;
  background:
    radial-gradient(circle at 88% 20%, rgba(221, 51, 51, .13), transparent 28%),
    linear-gradient(135deg, #f8f5f0, #fff);
}

.apa-coupon-products-inline-header > div {
  max-width: 760px;
}

.apa-coupon-products-inline-header > div > p:first-child {
  margin: 0 0 7px;
  color: #9c6c2d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.apa-coupon-products-inline-header h2 {
  margin: 0;
  color: #111;
  font-family: UTM, serif;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 400;
  line-height: 1.15;
  text-transform: uppercase;
}

.apa-coupon-products-inline-header > div > div {
  margin-top: 8px;
  color: #5c554e;
}

.apa-coupon-products-inline-header > div > div p:last-child {
  margin-bottom: 0;
}

.apa-coupon-products-close,
.apa-voucher-products-retry {
  flex: 0 0 auto;
  min-height: 36px;
  margin: 0;
  padding: 7px 13px;
  border: 1px solid #111;
  border-radius: 5px;
  background: #fff;
  color: #111;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: none;
}

.apa-coupon-products-close:hover,
.apa-voucher-products-retry:hover {
  background: #111;
  color: #fff;
}

.apa-coupon-products-empty--center {
  margin-top: 0;
}

@media (max-width: 1024px) {
  .apa-voucher-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 849px) {
  .apa-voucher-center {
    padding-bottom: 86px;
  }

  .apa-voucher-toolbar {
    display: block;
  }

  .apa-voucher-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
    width: 100%;
    overflow-x: auto;
    padding: 3px 2px 8px;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    transition: box-shadow .25s ease, background-color .25s ease;
  }

  .apa-voucher-filters::-webkit-scrollbar {
    display: none;
  }

  .apa-voucher-filters.is-mobile-highlighted {
    border-radius: 999px;
    background: #fff5f5;
    box-shadow: 0 0 0 5px rgba(221, 51, 51, .08);
  }

  .apa-voucher-filters .apa-voucher-pill {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 9px 12px;
    font-size: 12px;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .apa-voucher-sorts {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1004;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: min(86vw, 360px);
    padding: 22px 18px calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto;
    border-left: 1px solid #eee;
    background: #fff;
    box-shadow: -20px 0 48px rgba(0, 0, 0, .16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(105%, 0, 0);
    transition: transform .32s cubic-bezier(.22, 1, .36, 1), opacity .2s ease, visibility .32s;
  }

  .apa-voucher-sorts.is-mobile-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
  }

  .apa-voucher-filter-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1004;
    display: flex;
    flex-direction: column;
    width: min(88vw, 370px);
    padding: 22px 18px calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto;
    border-left: 1px solid #eee;
    background: #fff;
    box-shadow: -20px 0 48px rgba(0, 0, 0, .18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(105%, 0, 0);
    transition: transform .3s cubic-bezier(.2, .7, .2, 1), opacity .2s ease, visibility .3s;
  }

  .apa-voucher-filter-drawer.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
  }

  .apa-voucher-filter-drawer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eee;
  }

  .apa-voucher-filter-drawer-header span,
  .apa-voucher-filter-drawer-header strong {
    display: block;
  }

  .apa-voucher-filter-drawer-header span {
    margin-bottom: 4px;
    color: #8a817b;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  .apa-voucher-filter-drawer-header strong {
    color: #111;
    font-family: UTM, serif;
    font-size: 21px;
    font-weight: 400;
    text-transform: uppercase;
  }

  .apa-voucher-filter-drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    min-height: 38px;
    margin: 0;
    padding: 0;
    border: 1px solid #e6e1dc;
    border-radius: 50%;
    background: #f8f6f3;
    color: #111;
    font-size: 25px;
    font-weight: 300;
    line-height: 1;
  }

  .apa-voucher-filter-drawer-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .apa-voucher-filter-drawer-body .apa-voucher-filter-btn {
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    padding: 13px 15px;
    border: 1px solid #ece8e3;
    border-radius: 10px;
    background: #f8f7f5;
    font-size: 13px;
  }

  .apa-voucher-filter-drawer-body .apa-voucher-filter-btn.is-active {
    border-color: #111;
    background: #111;
    color: #fff;
  }

  .apa-voucher-sort-drawer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eee;
  }

  .apa-voucher-sort-drawer-header span,
  .apa-voucher-sort-drawer-header strong {
    display: block;
  }

  .apa-voucher-sort-drawer-header span {
    margin-bottom: 4px;
    color: #8a817b;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  .apa-voucher-sort-drawer-header strong {
    color: #111;
    font-family: UTM, serif;
    font-size: 21px;
    font-weight: 400;
    text-transform: uppercase;
  }

  .apa-voucher-sort-drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    min-height: 38px;
    margin: 0;
    padding: 0;
    border: 1px solid #e6e1dc;
    border-radius: 50%;
    background: #f8f6f3;
    color: #111;
    font-size: 25px;
    font-weight: 300;
    line-height: 1;
  }

  .apa-voucher-sorts .apa-voucher-sort-btn {
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    padding: 13px 15px;
    border: 1px solid #ece8e3;
    border-radius: 10px;
    background: #f8f7f5;
    margin-bottom: 5px;
    font-size: 13px;
  }


  .apa-voucher-sorts .apa-voucher-sort-btn.is-active {
    border-color: #111;
    background: #111;
    color: #fff;
  }

  .apa-voucher-mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1003;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(17, 17, 17, .42);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    backdrop-filter: blur(2px);
    transition: opacity .22s ease, visibility .22s;
  }

  .apa-voucher-mobile-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.apa-voucher-sort-drawer-open,
  body.apa-voucher-drawer-open {
    overflow: hidden;
  }

  #bartop.apa-voucher-mobile-bartop {
            position: fixed;
        bottom: 85px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 99;
        background: #2d2d2d;
        max-width: 250px;
        width: 90%;
        display: flex !important;
  }


  #bartop.apa-voucher-mobile-bartop .apa-voucher-mobile-tool {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    max-width: none !important;
    gap: 8px;
    min-height: 45px;
    margin: 0;
    padding: 10px 14px;
    
    border-radius: 0;
    background: transparent;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: uppercase;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .apa-voucher-mobile-tool + .apa-voucher-mobile-tool {
    border-left: 1px solid #e6e3df;
  }

  .apa-voucher-mobile-tool[aria-expanded='true'] {
    background: #111;
    color: #fff;
  }


  .apa-voucher-mobile-tool svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

@media (max-width: 640px) {
  .apa-voucher-center {
    padding-inline: 12px;
    margin-top: 0;
    padding: 0;
  }
  

  .apa-voucher-hero {
    
    border-radius: 0px;
    margin: 0 -15px;
  }
  .apa-voucher-hero img{
    margin-bottom: 15px;
    border-radius: 0;
  }

  .apa-voucher-grid {
    grid-template-columns: 1fr;
  }

  .apa-voucher-card-top {
    flex-direction: column;
  }

  .apa-voucher-products-wrap {
    margin-top: 30px;
  }

  .apa-coupon-products--center {
    padding-inline: 0;
  }

  .apa-coupon-products-inline-header {
    flex-direction: column;
  }
}
