:root {
  --topbanner-height: 48px;
}

/*body {*/
/*  padding-top: calc(var(--topbanner-height) + 72px);*/
/*}*/

.ps-topbanner-slide .ps-topbanner-content {
  opacity: 0;
  transform: translateY(-12px);
}

.ps-topbanner-slide.is-active .ps-topbanner-content {
  animation: topBannerContentDown 3s ease forwards;
}

@keyframes topBannerContentDown {
  0% {
    opacity: 0;
    transform: translateY(-12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}



#ps_topbanner_wrapper.ps-topbanner-slider {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  min-height: var(--topbanner-height);
  z-index: 900;
  
}

.ps-topbanner-slides {
  position: relative;
  width: 100%;
}

.ps-topbanner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity;
  text-align: center;
}

.ps-topbanner-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ps-topbanner-inner {
  width: 100%;
  max-width: 420px; 
  min-height: var(--topbanner-height);

  margin: 0 auto;
  padding: 8px 14px;
  box-sizing: border-box;

  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  align-items: center;
  column-gap: 8px;
}

.ps-topbanner-arrow {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 10;
  pointer-events: auto;
  touch-action: manipulation;
}

.ps-topbanner-prev {
  grid-column: 1;
}



.ps-topbanner-next {
  grid-column: 3;
}

.ps_topbanner_desktop,
.ps_topbanner_mobile {
  min-width: 0;
}



.ps_topbanner_cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
}

/* opcional: limitar o texto principal a 2 linhas */
.ps_topbanner_desktop p,
.ps_topbanner_mobile p {
    margin-bottom: 0px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* responsivo */
@media (min-width: 992px) {
  .ps_topbanner_mobile {
    display: none;
  }
}

/*.ps-topbanner-content {*/
/*  grid-column: 2;*/
/*  min-width: 0;*/
/*  display: flex;*/
/*  align-items: center;*/
/*  justify-content: center;*/
/*  gap: 8px;*/
/*  text-align: center;*/
/*}*/

@media (max-width: 991px) {
  .ps_topbanner-inner {
    max-width: 100%;
    grid-template-columns: 26px minmax(0, 1fr) 26px;
    column-gap: 6px;
    padding: 8px 8px;
  }

  .ps-topbanner-arrow {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 24px;
    padding: 0;
    touch-action: manipulation;
  }

  .ps_topbanner_desktop {
    display: none;
  }

  /*.ps-topbanner-content {*/
  /*  gap: 6px;*/
  /*}*/
}

