.sepal-counter-widget,
.sepal-counter-widget * {
  box-sizing: border-box;
}

.sepal-counter-widget {
  --sepal-counter-yellow: #f8bd00;
  --sepal-counter-yellow-light: #ffe08a;
  --sepal-counter-white: #ffffff;
  width: 100%;
  padding: 24px;
  font-family: inherit;
  color: var(--sepal-counter-white);
  background: transparent;
}

.sepal-counter-widget__inner {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: clamp(8px, 1vw, 14px);
  background: transparent;
}

.sepal-counter-widget__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(248, 189, 0, 0.42);
  border-radius: 26px;
  overflow: hidden;
  background: transparent;
}

.sepal-counter-widget__item {
  position: relative;
  min-height: 175px;
  padding: clamp(28px, 3.2vw, 48px) clamp(20px, 3vw, 42px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.sepal-counter-widget__item:nth-child(1),
.sepal-counter-widget__item:nth-child(2),
.sepal-counter-widget__item:nth-child(3) {
  border-bottom: 1px solid rgba(248, 189, 0, 0.62);
}

.sepal-counter-widget__item:nth-child(3n+1),
.sepal-counter-widget__item:nth-child(3n+2) {
  border-right: 1px solid rgba(248, 189, 0, 0.62);
}

.sepal-counter-widget__value {
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
  color: var(--sepal-counter-white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 5.1vw, 86px);
  line-height: 0.9;
  font-weight: 400;
  letter-spacing: -0.045em;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

.sepal-counter-widget__label {
  position: relative;
  z-index: 1;
  width: fit-content;
  color: var(--sepal-counter-yellow-light);
  font-size: clamp(12px, 1vw, 15px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sepal-counter-widget__label::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--sepal-counter-yellow);
  box-shadow: 0 0 12px rgba(248, 189, 0, 0.65);
  transform-origin: left;
  transform: scaleX(0.65);
  transition: transform 0.32s ease;
}

.sepal-counter-widget__item:hover .sepal-counter-widget__label::after {
  transform: scaleX(1.25);
}

@media (max-width: 900px) {
  .sepal-counter-widget__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sepal-counter-widget__item {
    border-right: none !important;
    border-bottom: 1px solid rgba(248, 189, 0, 0.42) !important;
  }

  .sepal-counter-widget__item:nth-child(odd) {
    border-right: 1px solid rgba(248, 189, 0, 0.42) !important;
  }

  .sepal-counter-widget__item:nth-last-child(-n+2) {
    border-bottom: none !important;
  }
}

@media (max-width: 600px) {
  .sepal-counter-widget {
    padding: 18px;
  }

  .sepal-counter-widget__inner {
    border-radius: 24px;
  }

  .sepal-counter-widget__grid {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .sepal-counter-widget__item {
    min-height: 150px;
    border-right: none !important;
    border-bottom: 1px solid rgba(248, 189, 0, 0.38) !important;
  }

  .sepal-counter-widget__item:last-child {
    border-bottom: none !important;
  }
}
