.cg-reward[hidden],
.cg-reward-launcher[hidden] {
  display: none !important;
}

.cg-reward-open {
  overflow: hidden;
}

.cg-reward {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(1, 17, 35, .78);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.cg-reward__dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: clamp(28px, 5vw, 50px);
  color: #f7fbff;
  background:
    radial-gradient(circle at 100% 0, rgba(22, 119, 255, .3), transparent 38%),
    #071b32;
  border: 1px solid rgba(135, 192, 255, .24);
  border-radius: 4px;
  box-shadow: 0 30px 90px rgba(0, 9, 22, .52);
  outline: none;
  font-family: inherit;
}

.cg-reward__dialog::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: #ffd339;
}

.cg-reward__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 42px;
  height: 42px;
  padding: 0;
  color: #d9e9fb;
  background: transparent;
  border: 1px solid rgba(135, 192, 255, .24);
  border-radius: 50%;
  font: 400 30px/1 sans-serif;
  cursor: pointer;
}

.cg-reward__close:hover,
.cg-reward__close:focus-visible {
  color: #071b32;
  background: #ffd339;
  border-color: #ffd339;
  outline: none;
}

.cg-reward__eyebrow,
.cg-reward__result-label {
  margin: 0 0 11px;
  color: #61aaff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
}

.cg-reward__eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  margin: 0 12px 3px 0;
  background: #ffd339;
}

.cg-reward__title {
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 850;
  line-height: .98;
  letter-spacing: -.045em;
}

.cg-reward__intro {
  max-width: 590px;
  margin: 18px 0 28px;
  color: #c8ddf5;
  font-size: 17px;
  line-height: 1.6;
}

.cg-reward__choices {
  display: grid;
  gap: 12px;
}

.cg-reward__choices.has-codes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.cg-reward__choices.has-codes .cg-reward__result {
  padding: 22px;
}

.cg-reward__choices.has-codes .cg-reward__code-row {
  grid-template-columns: 1fr;
}

.cg-reward__choices.has-codes .cg-reward__code {
  font-size: 22px;
}

.cg-reward__choices.has-codes .cg-reward__copy,
.cg-reward__choices.has-codes .cg-reward__order {
  box-sizing: border-box;
  width: 100%;
}

.cg-reward__choice {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 16px;
  align-items: center;
  width: 100%;
  padding: 16px;
  color: #f7fbff;
  text-align: left;
  background: #0b2745;
  border: 1px solid rgba(135, 192, 255, .26);
  border-radius: 2px;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.cg-reward__choice:hover,
.cg-reward__choice:focus-visible {
  z-index: 1;
  background: #10365d;
  border-color: #ffd339;
  outline: none;
  transform: translateY(-2px);
}

.cg-reward__choice:disabled {
  cursor: wait;
  opacity: .62;
  transform: none;
}

.cg-reward__choice-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #06182d;
  background: #59e2c0;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -.05em;
}

.cg-reward__choice-icon.is-domain {
  padding: 7px;
}

.cg-reward__domain-logo {
  display: block;
  width: 42px;
  height: 42px;
  fill: none;
  stroke: #06182d;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.cg-reward__choice[data-reward="wordpress"] .cg-reward__choice-icon {
  color: #fff;
  background: #1677ff;
  border-radius: 50%;
}

.cg-reward__wordpress-logo {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.cg-reward__choice-copy {
  display: grid;
  gap: 5px;
}

.cg-reward__choice-copy strong {
  color: #fff;
  font-size: 19px;
  line-height: 1.2;
}

.cg-reward__choice-copy small {
  color: #bcd4ec;
  font-size: 14px;
  line-height: 1.45;
}

.cg-reward__choice-arrow {
  color: #ffd339;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  text-align: right;
  white-space: nowrap;
}

.cg-reward__status {
  min-height: 22px;
  margin: 16px 0 0;
  color: #86efda;
  font-size: 14px;
  line-height: 1.5;
}

.cg-reward__status.is-error {
  color: #ff9d9d;
}

.cg-reward__terms,
.cg-reward__note {
  margin: 10px 0 0;
  color: #8eabc8;
  font-size: 12px;
  line-height: 1.55;
}

.cg-reward__result {
  padding: clamp(20px, 4vw, 30px);
  background: #f8fbff;
  border-left: 5px solid #ffd339;
  color: #071b32;
}

.cg-reward__result-label {
  color: #1269ca;
}

.cg-reward__result h3 {
  margin: 0 0 18px;
  color: #071b32;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.08;
}

.cg-reward__code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.cg-reward__code {
  display: grid;
  place-items: center start;
  min-height: 58px;
  padding: 10px 18px;
  overflow-wrap: anywhere;
  color: #fff;
  background: #071b32;
  border: 2px dashed #61aaff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(22px, 5vw, 34px);
  font-weight: 900;
  letter-spacing: .06em;
}

.cg-reward__copy,
.cg-reward__order,
.cg-reward-launcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 20px;
  color: #071b32;
  background: #ffd339;
  border: 1px solid #e5ac00;
  border-radius: 2px;
  box-shadow: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.cg-reward__copy:hover,
.cg-reward__copy:focus-visible,
.cg-reward__order:hover,
.cg-reward__order:focus-visible,
.cg-reward-launcher:hover,
.cg-reward-launcher:focus-visible {
  background: #ffe16b;
  outline: 3px solid rgba(97, 170, 255, .45);
  outline-offset: 2px;
}

.cg-reward__order {
  margin-top: 14px;
}

.cg-reward__note {
  color: #516b86;
}

.cg-reward-launcher {
  position: fixed;
  z-index: 9998;
  right: 22px;
  bottom: 22px;
  border-radius: 999px;
  box-shadow: 0 15px 35px rgba(0, 20, 50, .28);
}

@media (max-width: 600px) {
  .cg-reward {
    align-items: end;
    padding: 0;
  }

  .cg-reward__dialog {
    width: 100%;
    max-height: 94vh;
    padding: 30px 20px 24px;
    border-width: 1px 0 0;
  }

  .cg-reward__choice {
    grid-template-columns: 48px 1fr auto;
    gap: 12px;
    padding: 13px;
  }

  .cg-reward__choice-icon {
    width: 48px;
    height: 48px;
  }

  .cg-reward__code-row {
    grid-template-columns: 1fr;
  }

  .cg-reward__choices.has-codes {
    grid-template-columns: 1fr;
  }

  .cg-reward__copy {
    width: 100%;
  }

  .cg-reward-launcher {
    right: 12px;
    bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cg-reward__choice {
    transition: none;
  }
}
