@keyframes dcard-pulse {
  0% { box-shadow: 0 0 0 0 rgba(233, 81, 28, .55); }
  70% { box-shadow: 0 0 0 16px rgba(233, 81, 28, 0); }
  100% { box-shadow: 0 0 0 0 rgba(233, 81, 28, 0); }
}

.dcard {
  padding: 36px 30px 20px;
  background-color: #055da8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' stitchTiles='stitch' result='t'/%3E%3CfeColorMatrix in='t' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='2.5'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.25'/%3E%3C/svg%3E");
  border-radius: 8px;
  height: fit-content;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .32);
}
.dcard.dcard--on-light {
  box-shadow: none;
}
.dcard .dcard-title {
  margin: 0;
  color: #fff;
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: 34px;
  line-height: 1.18;
  text-transform: uppercase;
}
.dcard .dcard-freqs {
  display: flex;
  margin-top: 24px;
  background-color: #fff;
  padding: 4px;
  border-radius: 5px;
}
.dcard .dcard-freq {
  flex: 1;
  padding: 10px;
  color: #055da8;
  background-color: transparent;
  border: none;
  border-radius: 5px;
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
  cursor: pointer;
  transition: color .3s ease, background-color .3s ease;
}
.dcard .dcard-freq.is-active {
  color: #fff;
  background-color: #e9511c;
}
.dcard .dcard-form {
  margin-top: 22px;
}
.dcard .dcard-amounts {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.dcard .dcard-amount {
  padding: 12px;
  color: #055da8;
  text-align: center;
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.3;
  background-color: #fff;
  border-radius: 5px;
  border: 5px solid transparent;
  cursor: pointer;
  transition: background-color .3s ease, border-color .3s ease, transform .2s ease;
}
.dcard .dcard-amount:hover {
  transform: translateY(-3px);
}
.dcard .dcard-amount.is-active {
  background-color: #bddfec;
  border-color: #e9511c;
}
.dcard .dcard-input {
  grid-column: span 2;
  width: 100%;
  height: auto;
  padding: 14px 24px;
  text-align: center;
  font-family: 'Anton', sans-serif;
  font-size: 26px;
  line-height: 1;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 6px;
  outline: none;
}
.dcard .dcard-input::placeholder {
  color: #fff;
  opacity: 1;
}
.dcard .dcard-input:focus::placeholder {
  color: transparent;
  opacity: 0;
}
.dcard .dcard-submit {
  padding: 7px 11px 6px 20px;
  width: 100%;
  border: none;
  border-radius: 50px;
  background: #e9511c;
  font-family: 'Anton', sans-serif;
  font-size: 22px;
  line-height: 1;
  text-align: left;
  text-decoration: none;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  margin: 20px 0 0;
  cursor: pointer;
  transition: background-color .3s ease, color .3s ease;
  animation: dcard-pulse 2.6s ease-out infinite;
}
.dcard .dcard-submit:hover {
  background: #fff;
  color: #e9511c;
}
.dcard .dcard-submit-amount {
  text-align: center;
}
.dcard .dcard-submit-arrow {
  width: 40px;
  height: 40px;
  border-radius: 100%;
  background-color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background-color .3s ease;
}
.dcard .dcard-submit-arrow img {
  width: 14px;
  height: 8px;
  transition: transform .3s ease, filter .3s ease;
}
.dcard .dcard-submit:hover .dcard-submit-arrow {
  background-color: #e9511c;
}
.dcard .dcard-submit:hover .dcard-submit-arrow img {
  filter: brightness(0) invert(1);
  transform: translateX(3px);
}
.dcard .dcard-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 20px 0 0;
  font-size: 11px;
  line-height: 15px;
  color: #fff;
}
.dcard .dcard-secure img {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

.dcard.dcard--frame {
  padding: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
}
.dcard .dcard-frame {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}
.dcard .dcard-frame iframe {
  display: block;
  width: 100%;
  height: var(--dcard-frame-h, 620px);
  border: 0;
}
.dcard.dcard--frame.dcard--on-light .dcard-secure {
  color: #1d1a55;
}

.dcard-toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1d1a55;
  color: #fff;
  padding: 12px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  z-index: 70;
}
.dcard-toast.on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .dcard .dcard-submit {
    animation: none;
  }
}

@media (max-width: 600px) {
  .dcard .dcard-amounts {
    grid-template-columns: minmax(0, 1fr);
  }
  .dcard .dcard-input {
    grid-column: auto;
  }
}

@media (min-width: 1700px) {
  .dcard {
    padding: 2.5002vw 2.0835vw 1.389vw;
    border-radius: 0.5556vw;
    box-shadow: 0 2.0835vw 4.8614vw rgba(0, 0, 0, .32);
  }
  .dcard.dcard--on-light,
  .dcard.dcard--frame {
    box-shadow: none;
  }
  .dcard.dcard--frame {
    padding: 0;
    border-radius: 0;
  }
  .dcard .dcard-title {
    font-size: 2.3613vw;
  }
  .dcard .dcard-freqs {
    margin-top: 1.6668vw;
    padding: 0.2778vw;
    border-radius: 0.3472vw;
  }
  .dcard .dcard-freq {
    padding: 0.6945vw;
    border-radius: 0.3472vw;
    font-size: 1.389vw;
  }
  .dcard .dcard-form {
    margin-top: 1.5279vw;
  }
  .dcard .dcard-frame {
    border-radius: 0.5556vw;
    height: calc(var(--dcard-frame-h, 620px) * var(--mdm-k));
  }
  .dcard .dcard-frame iframe {
    width: calc(100% / var(--mdm-k));
    transform: scale(var(--mdm-k));
    transform-origin: 0 0;
  }
  .dcard .dcard-amounts {
    gap: 1.1112vw;
  }
  .dcard .dcard-amount {
    padding: 0.8334vw;
    font-size: 1.9446vw;
    border-radius: 0.3472vw;
    border: 0.3472vw solid transparent;
  }
  .dcard .dcard-amount:hover {
    transform: translateY(-0.2083vw);
  }
  .dcard .dcard-input {
    padding: 0.9723vw 1.6668vw;
    font-size: 1.8057vw;
    border: 0.0694vw solid rgba(255, 255, 255, .6);
    border-radius: 0.4167vw;
  }
  .dcard .dcard-submit {
    padding: 0.4861vw 0.7639vw 0.4167vw 1.389vw;
    border-radius: 3.4724vw;
    font-size: 1.5279vw;
    gap: 0.9723vw;
    margin: 1.389vw 0 0;
  }
  .dcard .dcard-submit-arrow {
    width: 2.7779vw;
    height: 2.7779vw;
  }
  .dcard .dcard-submit-arrow img {
    width: 0.9723vw;
    height: 0.5556vw;
  }
  .dcard .dcard-secure {
    gap: 0.4167vw;
    margin-top: 1.389vw;
    font-size: 0.7639vw;
    line-height: 1.0417vw;
  }
  .dcard .dcard-secure img {
    width: 0.7639vw;
    height: 0.7639vw;
  }
  .dcard-toast {
    bottom: 1.8057vw;
    transform: translateX(-50%) translateY(1.389vw);
    padding: 0.8334vw 1.5279vw;
    border-radius: 3.4724vw;
    font-size: 0.9723vw;
  }
}
