.hidden {
  display: none;
}

.cw-overlay {
  position: fixed;
  min-height: 100vh;
  width: 100%;
  z-index: 999;
  top: 0;
  left: 0;
  background-color: hsl(0deg 0% 100% / 75%);
  backdrop-filter: blur(5px);
}

.cw-container {
  font-family: Roboto, Arial, sans-serif;
  position: fixed;
  width: 100%;
  bottom: 0;
  z-index: 999999;
  display: none;
  justify-content: center;
  --cw-section-y-gap: 0.5rem;
}

.cw-container.show {
  display: flex;
}

.cw-progress {
  --cw-b-radius: 30px;
  position: relative;
  height: 2rem;
  padding: 3px;
  border-radius: var(--cw-b-radius);
  border: 3px solid var(--cw-primary);
}

.cw-progress__text {
  position: absolute;
  left: 50%;
  top: 50%;
  margin-top: 1px;
  transform: translate(-50%, -50%);
  font-size: 0.9rem;
  font-weight: 600;
}

.cw-progress__inner {
  border-radius: var(--cw-b-radius);
  height: 100%;
  width: 100%;
}

.cw-progress__inner::before {
  content: "";
  display: block;
  height: 100%;
  width: var(--cw-progress);
  border-radius: var(--cw-b-radius);
  background-color: var(--cw-primary);
  transform-origin: left;
  transition: transform 0.4s linear;
  animation: 1s ease progress;
}

.counter-widget {
  width: 100%;
  padding: 2rem 3% 1rem;
  color: #000;
  background-color: var(--cw-bg);
  /* background-image: linear-gradient(to right, rgb(197 93 32 / 50%) 10%, transparent), var(--cw-bg-image); */
  background-image: var(--cw-bg-image);
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 0.5rem 1rem 0rem rgba(0, 0, 0, 0.333);
  border-radius: 1rem 1rem 0 0;
}

.counter-widget__container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: calc(2 * var(--cw-section-y-gap));
}

.counter-widget__left {
  display: flex;
  flex-direction: column;
  width: 100%;
  justify-content: space-between;
  gap: var(--cw-section-y-gap);
}

.counter-widget__logo {
  align-self: center;
}

.counter-widget__logo--movie {
  position: absolute;
  height: 2.5rem;
  left: 14.5%;
  top: 0.75rem;
}

.counter-widget__close,
.counter-widget__label {
  position: absolute;
  border-radius: 99999px;
  background-color: var(--cw-primary);
  color: var(--cw-primary-text);
}

.counter-widget__close {
  right: 0;
  top: -4.25rem;
  height: 3rem;
  width: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  text-align: center;
  text-indent: 1px;
  font-size: 2rem;
  box-shadow: 0 0 0.5rem 0 rgb(0 0 0 / 25%);
}

.counter-widget__label {
  padding: 0.25rem 0.75rem;
  left: 0;
  top: -3rem;
  font-weight: 600;
}

.counter-widget__title {
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.75rem;
  margin-bottom: 0;
}

.counter-widget__progress {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.counter-widget__progress .cw-progress {
  margin-top: auto;
}

.counter-widget__options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.cw-button,
.counter-widget__options button,
.counter-widget__options input {
  height: 34px;
}

.counter-widget__button {
  margin-top: 0;
}

a.cw-button,
.counter-widget__button,
.counter-widget__options button,
.counter-widget__options input[data-cw-donate-input] {
  box-sizing: border-box;
  border: 2px solid var(--cw-primary);
  color: var(--cw-primary-text);
  border-radius: 999999px;
  cursor: pointer;
}

a.cw-button,
.counter-widget__button,
.counter-widget__options button {
  background-color: var(--cw-primary);
  padding: 0.1rem 0.5rem;
}

a.cw-button:hover,
.counter-widget__options button:hover,
.counter-widget__options button.selected {
  background-color: var(--cw-primary-darker);
  border-color: var(--cw-primary-darker);
}

.counter-widget__options input {
  background-color: #fff;
  color: var(--cw-primary);
}

a.cw-button {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  font-weight: 600;
  height: auto;
  padding: 0.3rem 1.5rem;
  text-decoration: none;
}

a.cw-button span {
  display: inline-block;
  margin-right: 0.5rem;
  color: var(--cw-primary-text);
}

.counter-widget__progress-text,
.counter-widget__options-label {
  margin-bottom: 0.5rem;
}

.counter-widget__options-label {
  color: var(--cw-text);
}

.counter-widget__options input::placeholder {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--cw-primary);
  opacity: 1;
}

.counter-widget__options button {
  flex-grow: 1;
}

.counter-widget__options input[data-cw-donate-input] {
  padding: 0.5rem 0 0.5rem 1rem;
  max-width: 160px;
  font-weight: 600;
}

.counter-widget input::first-line {
  display: inline-block;
}

.counter-widget__progress-text {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.counter-widget__container--light .counter-widget__progress-text,
.counter-widget__container--light .counter-widget__title,
.counter-widget__container--light .cw-progress__text {
  color: var(--cw-text);
}

.counter-widget__heroes {
  display: none;
}

.counter-widget__logo--movie {
  display: none;
}
.cw-counter-widget-heroes a.cw-button {
  width: 100%;
}

.counter-widget__options input[data-cw-donate-input] {
  color: var(--cw-primary);
}

@keyframes progress {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@media screen and (min-width: 350px) {
  a.cw-button,
  .counter-widget__options button {
    padding: 0.1rem 1rem;
  }
}

@media screen and (min-width: 450px) {
  a.cw-button,
  .counter-widget__options button,
  .counter-widget__options input {
    min-width: 80px;
  }
}

@media screen and (min-width: 768px) {
  .cw-container {
    left: 50%;
    max-width: 1024px;
    bottom: 1.25rem;
    transform: translateX(-50%);
    padding: 0 15px;
    /*keep bootstrap container width */
  }

  .counter-widget {
    border-radius: 1rem;
  }

  .counter-widget__left {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .counter-widget__title {
    width: 100%;
  }

  .counter-widget__container {
    flex-direction: row;
    align-items: end;
  }
}

@media screen and (max-width: 767px) {
  .counter-widget__options input {
    max-width: 40%;
  }
}

@media screen and (min-width: 768px) and (max-width: 1280px) {
  .counter-widget__progress-text-collected {
    display: none;
  }
}

@media screen and (min-width: 768px) {
  .cw-counter-widget-heroes a.cw-button {
    width: auto;
  }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  .counter-widget__buttons {
    width: 100%;
  }

  .counter-widget__progress {
    display: none;
  }
}

@media screen and (min-width: 1024px) {
  .cw-overlay {
    display: none;
  }
}

@media screen and (min-width: 1280px) {
  .cw-container {
    max-width: 1280px;
  }

  .counter-widget__close {
    top: -3rem;
    height: 2rem;
    width: 2rem;
  }

  .counter-widget__options input {
    width: auto;
  }

  .counter-widget__logo--movie {
    height: 2.75rem;
    top: 1.25rem;
    left: 18%;
    display: block;
  }

  .counter-widget__heroes {
    position: absolute;
    right: 3rem;
    top: -3.5rem;
    display: flex;
    color: var(--cw-text);
  }

  .counter-widget__heroes img {
    height: 3.5rem;
  }

  .counter-widget__heroes p {
    margin-bottom: 3px;
    margin-right: 0.5rem;
    align-self: flex-end;
  }

  .counter-widget__progress {
    margin-right: 2rem;
  }
}

@media screen and (min-width: 1536px) {
  .cw-container {
    max-width: 1360px;
  }

  .counter-widget__logo--movie {
    height: 2.8rem;
    top: 1.2rem;
    left: 20%;
  }
}

.cw-counter-widget-banner {
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  padding: 1.5rem;
  overflow: auto;
}

@media screen and (min-width: 768px) {
  .cw-counter-widget-banner {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

@media screen and (min-width: 1280px) {
  .cw-counter-widget-banner {
  }
}

.cw-tpl-banner {
  position: relative;
  padding: 0;
  width: 300px;
  height: 600px;
  border-radius: 1rem;
  margin: auto;
  background-image: var(--cw-bg-mobile-image);
}

@media screen and (min-width: 768px) {
  .cw-tpl-banner {
    width: 750px;
    height: 200px;
    margin: auto auto 0;
    background-image: var(--cw-bg-tablet-image);
  }
}

@media screen and (min-width: 1280px) {
  .cw-tpl-banner {
    width: 970px;
    height: 250px;
    background-image: var(--cw-bg-image);
  }
}

.cw-tpl-banner .counter-widget__close {
  top: -1.5rem;
  right: 1.5rem;
  z-index: 1;
}

.cw-link-overlap {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 0;
}
