:root {
  --mydojo-cta-black: #111111;
  --mydojo-cta-graphite: #353535;
  --mydojo-cta-gray: #6b6b6b;
}

.mydojo-cta-wrapper {
  display: flex;
  width: 100%;
  margin: 24px 0 34px;
}

.mydojo-cta-align-left { justify-content: flex-start; }
.mydojo-cta-align-center { justify-content: center; }
.mydojo-cta-align-right { justify-content: flex-end; }

.mydojo-cta-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 40px;
  padding: 9px 22px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  background: linear-gradient(135deg,#626262 0%,#363636 52%,#141414 100%);
  color: #fff !important;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none !important;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: 0 8px 20px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.13);
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease, background .22s ease, color .22s ease;
}

.mydojo-cta-button > span {
  position: relative;
  z-index: 1;
}

.mydojo-cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -34%;
  width: 42%;
  height: 100%;
  background: linear-gradient(115deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.06) 42%,rgba(255,255,255,.23) 52%,rgba(255,255,255,.06) 62%,rgba(255,255,255,0) 100%);
  transform: skewX(-22deg);
  opacity: .52;
  pointer-events: none;
  z-index: 0;
  transition: left .38s ease, opacity .25s ease;
}

.mydojo-cta-button::after {
  position: relative;
  z-index: 1;
  content: "";
  display: inline-flex;
  flex: 0 0 auto;
  width: 1.85em;
  height: 1.85em;
  margin-left: 12px;
  border-radius: 999px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none'%3E%3Cpath d='M6.5 14h14.5' stroke='%23111111' stroke-width='4.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M15.5 8.5L21 14l-5.5 5.5' stroke='%23111111' stroke-width='4.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 70% 70%;
  border: 1px solid rgba(255,255,255,.94);
  box-shadow: 0 6px 14px rgba(0,0,0,.2), inset 0 0 0 1px rgba(0,0,0,.05);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.mydojo-cta-button:hover,
.mydojo-cta-button:focus {
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 11px 24px rgba(0,0,0,.23), inset 0 1px 0 rgba(255,255,255,.15);
  filter: brightness(1.06);
  text-decoration: none !important;
}

.mydojo-cta-button:hover::before,
.mydojo-cta-button:focus::before {
  left: 105%;
  opacity: .75;
}

.mydojo-cta-button:hover::after,
.mydojo-cta-button:focus::after {
  transform: translate(4px,-1px) scale(1.07);
  box-shadow: 0 8px 17px rgba(0,0,0,.23), inset 0 0 0 1px rgba(0,0,0,.07);
}

.mydojo-cta-button:focus-visible {
  outline: 3px solid rgba(17,17,17,.25);
  outline-offset: 3px;
}

.mydojo-cta-button--compact {
  max-width: 100%;
  padding: 8px 20px;
  font-size: 17px;
}

.mydojo-cta-button--wide {
  width: 100%;
  max-width: 860px;
  min-height: 44px;
  padding: 10px 24px;
  font-size: 18px;
  line-height: 1.45;
}

.mydojo-cta-button--outline {
  background: #fff;
  color: #111 !important;
  border-color: rgba(17,17,17,.24);
  box-shadow: 0 5px 13px rgba(0,0,0,.09);
}

.mydojo-cta-button--outline:hover,
.mydojo-cta-button--outline:focus {
  background: linear-gradient(135deg,#626262 0%,#363636 52%,#141414 100%);
  color: #fff !important;
  border-color: transparent;
}

.mydojo-cta-button--outline::after {
  background-color: rgba(17,17,17,.05);
  border-color: rgba(17,17,17,.13);
  box-shadow: 0 4px 10px rgba(0,0,0,.08), inset 0 0 0 1px rgba(17,17,17,.04);
}

.mydojo-cta-button--outline:hover::after,
.mydojo-cta-button--outline:focus::after {
  background-color: #fff;
}

.mydojo-cta-button--full,
.mydojo-cta-width-full .mydojo-cta-button {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 640px) {
  .mydojo-cta-wrapper { margin: 22px 0 32px; }
  .mydojo-cta-button,
  .mydojo-cta-button--compact,
  .mydojo-cta-button--wide {
    width: 100%;
    padding: 10px 18px;
    font-size: 17px;
    line-height: 1.42;
    border-radius: 14px;
  }
}
