.crm-has-promo-topbar {
  --crm-topbar-height: 36px;
  --crm-topbar-admin-height: 0px;
  scroll-padding-top: calc(var(--crm-topbar-height) + var(--crm-topbar-admin-height) + 80px);
}

.crm-has-promo-topbar.crm-topbar-admin {
  --crm-topbar-admin-height: 32px;
}

.crm-has-promo-topbar body {
  padding-top: var(--crm-topbar-height);
}

.crm-has-promo-topbar .tpl .tpl-header {
  top: calc(var(--crm-topbar-height) + var(--crm-topbar-admin-height) + 10px);
}

.crm-promo-topbar {
  box-sizing: border-box;
  position: fixed;
  top: var(--crm-topbar-admin-height, 0px);
  left: 0;
  right: 0;
  z-index: 11;
  height: var(--crm-topbar-height, 36px);
  background: #8ad545;
  color: #13200c;
  font-family: "Inter-Light", sans-serif;
}

.crm-promo-topbar[hidden] {
  display: none;
}

.crm-promo-topbar__inner {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 4px 20px;
}

.crm-promo-topbar__message {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  white-space: nowrap;
}

.crm-promo-topbar__track {
  display: flex;
  width: max-content;
}

.crm-promo-topbar__message:not(.crm-promo-topbar__message--moving) {
  overflow-x: auto;
  scrollbar-width: none;
}

.crm-promo-topbar__message::-webkit-scrollbar {
  display: none;
}

.crm-promo-topbar__track > span {
  box-sizing: border-box;
  padding-right: 48px;
}

.crm-promo-topbar__message--moving .crm-promo-topbar__track {
  animation: crm-promo-marquee 32s linear infinite;
}

.crm-promo-topbar__message--moving {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}

.crm-promo-topbar__message:hover .crm-promo-topbar__track,
.crm-promo-topbar__message:focus .crm-promo-topbar__track {
  animation-play-state: paused;
}

.crm-promo-topbar__timer {
  display: flex;
  gap: 8px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.crm-promo-topbar__timer > span {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.crm-promo-topbar__timer b {
  font-size: 15px;
  font-weight: 600;
}

.crm-promo-topbar__timer small {
  font-size: 10px;
}

.crm-promo-topbar__button {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  max-width: 220px;
  padding: 4px 12px;
  border-radius: 7px;
  background: #13200c;
  color: #fff;
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.crm-promo-topbar__button:hover {
  background: #263c18;
}

.crm-promo-topbar__button:focus-visible,
.crm-promo-topbar__message:focus-visible {
  outline: 2px solid #13200c;
  outline-offset: 2px;
}

.tpl .crm-promo-form {
  padding-top: 32px;
}

.tpl .crm-promo-form:focus {
  outline: none;
}

.tpl .crm-promo-form__card {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 32px;
  border: 1px solid #8ad545;
  border-radius: 24px;
  background: #10141b;
  color: #fff;
}

.tpl .crm-promo-form h2 {
  margin: 0 0 24px;
  color: #fff;
  font-size: 28px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.tpl .crm-promo-form .tpl-row {
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  margin-top: 20px;
}

.tpl .crm-promo-form .tpl-row > * {
  width: 100%;
  min-width: 0;
}

.tpl .crm-promo-form .tpl-row > p {
  order: 2;
  margin: 4px 0 0;
}

.tpl .crm-promo-form .wpcf7-acceptance {
  display: block;
  color: #2f3359;
  font-size: 12px;
  line-height: 1.5;
}

.tpl .crm-promo-form .wpcf7-list-item {
  display: block;
  margin: 0;
}

.tpl .crm-promo-form .wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: inherit;
}

.tpl .crm-promo-form .wpcf7-acceptance input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: #8ad545;
}

.tpl .crm-promo-form .wpcf7-list-item-label {
  min-width: 0;
  color: inherit;
  overflow-wrap: anywhere;
}

.tpl .crm-promo-form .wpcf7-acceptance a {
  color: inherit;
  text-decoration: underline;
}

.tpl .crm-promo-form input[type="submit"] {
  width: 100%;
  min-height: 44px;
  font-size: 14px;
}

@keyframes crm-promo-marquee {
  to { transform: translateX(var(--crm-promo-cycle, 0px)); }
}

@media (max-width: 1200px) {
  .crm-has-promo-topbar .tpl .tpl-nav {
    top: calc(var(--crm-topbar-height) + var(--crm-topbar-admin-height));
    min-height: calc(100dvh - var(--crm-topbar-height) - var(--crm-topbar-admin-height));
  }
}

@media (max-width: 782px) {
  .crm-has-promo-topbar.crm-topbar-admin {
    --crm-topbar-admin-height: 46px;
  }

  .crm-has-promo-topbar #wpadminbar {
    position: fixed;
  }
}

@media (max-width: 767px) {
  .crm-has-promo-topbar {
    --crm-topbar-height: 52px;
  }

  .crm-has-promo-topbar .tpl .tpl-header {
    top: calc(var(--crm-topbar-height) + var(--crm-topbar-admin-height));
  }

  .crm-promo-topbar__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 14px 32px;
    gap: 2px 12px;
    padding: 2px 15px;
  }

  .crm-promo-topbar__message {
    grid-column: 1 / -1;
    font-size: 11px;
    line-height: 14px;
  }

  .crm-promo-topbar__timer {
    gap: 4px;
  }

  .crm-promo-topbar__timer > span {
    flex-direction: column;
    align-items: center;
    gap: 0;
    min-width: 22px;
  }

  .crm-promo-topbar__timer b {
    font-size: 14px;
  }

  .crm-promo-topbar__button {
    min-height: 32px;
    width: 100%;
    justify-self: end;
  }

  .tpl .crm-promo-form__card {
    padding: 24px 18px;
  }

  .tpl .crm-promo-form h2 {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .crm-promo-topbar__message--moving {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .crm-promo-topbar__message {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .crm-promo-topbar__message--moving .crm-promo-topbar__track {
    animation: none;
  }

  .crm-promo-topbar__track > [aria-hidden="true"] {
    display: none;
  }
}
