/* Global stripe-footer  */
.stripe-footer-container,
.wp-block-template-part:has( > .stripe-footer) {
  bottom:0;
  position:sticky;
  margin: 0 !important;
  z-index: 10;
  &.close { 
    position:relative;
    bottom: 0;
    & button { display: none; }
  }
}

.single-post.postid-5636 .wp-block-template-part:has( > .stripe-footer) { 
  display:none; 
}

.stripe-footer {
  display:grid;
  grid-template-columns: 1fr 50px;
  padding-inline:1.5rem;
  color:#fff;
  box-sizing: border-box;
  align-items:center;
  background-image: radial-gradient( circle farthest-corner at 50% 52.5%,  rgba(14,53,92,1) 0%, rgba(16,14,72,1) 90% );
  & a { 
    color: #fff; 
    font-weight:600;
    text-decoration:none;
    &:hover {
      color:#ffcb03;
      & img {
       filter: drop-shadow(0 0 0.35rem #ffd90047);
      }
    }
  }
  & > * { z-index:2;}
  &::before {
    content: "";
    background: #0f0c29;
    background: linear-gradient(to right, #24243e, #302b63, #0f0c29);
    height: 60px;
    width: 30%;
    position:absolute;
    left:0;
    clip-path: polygon(-0.42% 19.9%, -0.74% 93.2%, 97.22% 88.90%, 92.5% 0.4%);
    opacity:.5;
    filter: blur(4px);
    z-index:1;
    top: 0;
  }
  &::after {
    content: "";
    background: #0f0c29;
    background: linear-gradient(to right, #24243e, #302b63, #0f0c29);
    height: 60px;
    width: 30%;
    position:absolute;
    right:0;
    clip-path: polygon(12.71% 15.90%, -0.99% 101.2%, 100% 100%, 100% 0%);
    opacity:.5;
    filter: blur(4px);
    z-index:1;
    top: 0;
  }
  & .stripe-footer__content {
    display:flex;
    justify-content:center;
    position:relative;
    padding: 1rem .2rem;
    height: 60px;
    & a {
      display:grid;
      grid-template-columns: 110px 1fr;
      font-size:1.2rem;
      width:100%;
      max-width:600px;
      @media (max-width: 600px) { 
        font-size: 1rem; 
        grid-template-columns: 80px 1fr;
        & span {
          font-size: 18px;
        }
      }
    }
    & > div:first-of-type {
      max-width:110px;
      position:relative;
    }
    & img {
      width:110px;
      height:110px;
      position:absolute;
      bottom:0;
      @media (max-width: 600px) { 
        width:80px;
        height:80px;
        bottom:-7px;
      }
    }
  }
  & button {
    background: none;
    border:none;
    color:#fff;
    font-size: 22px;
    cursor: pointer;
    &:hover {
      color:#ffcb03;
    }
  }
  @media (max-width:600px) {
    padding:.5rem;
  }

  /* confettis */ 

  & .confetti-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity:.5;
    pointer-events: none; /* Prevent interaction */
    overflow: hidden;
    z-index:1;
  }

  & .confetti-piece {
    position: absolute;
    width: 10px;
    height: 20px;
    background: var(--confetti-color, red);
    opacity: 0.9;
    animation: confetti-fall var(--fall-duration, 4s) linear infinite;
  }

  /* Randomize confetti properties */
  & .confetti-piece:nth-child(1) {
    left: 10%;
    --confetti-color: #ff6347;
    --fall-duration: 3s;
  }
  & .confetti-piece:nth-child(2) {
    left: 25%;
    --confetti-color: #ffa500;
    --fall-duration: 5s;
  }
  & .confetti-piece:nth-child(3) {
    left: 40%;
    --confetti-color: #32cd32;
    --fall-duration: 4.5s;
  }
  & .confetti-piece:nth-child(4) {
    left: 60%;
    --confetti-color: #1e90ff;
    --fall-duration: 3.5s;
  }
  & .confetti-piece:nth-child(5) {
    left: 80%;
    --confetti-color: #ff69b4;
    --fall-duration: 6s;
  }

  & .star__after {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:.5rem;
  }
  & .star__after::after {
    content: "";
    background: url(https://www.conciergerie.com.br/wp-content/themes/concierge/favicon.svg) no-repeat;
      background-size: auto;
    background-size: 1.3rem;
    display: inline-block;
    height: 1.4rem;
    width: 1.4rem;
    top: 0px;
    position: relative;
    @media (max-width: 400px) { display:none;}
  }
}

.single.post-template-default .wp-block-template-part:has(> .stripe-footer):not(.close) {
  @media (width < 901px) {
    bottom: 60px;
  }
}

@keyframes confetti-fall {
    0% {
      transform: translateY(-100%) rotate(0deg);
      opacity: 1;
    }
    100% {
      transform: translateY(100vh) rotate(360deg);
      opacity: 0.8;
    }
  }