.ywf-widget,
.ywf-widget *,
.ywf-auto-shell,
.ywf-auto-shell * {
  box-sizing: border-box;
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif !important;
}

.ywf-widget {
  --ywf-page: #240626;
  --ywf-card: #680052;
  --ywf-text: #fff;
  --ywf-muted: rgba(255, 255, 255, 0.76);
  --ywf-primary: #863297;
  --ywf-pointer: #ecabe4;
  --ywf-button: #ecabe4;
  --ywf-button-text: #680052;
  --ywf-wheel-ring: #fff;
  --ywf-dots: #cd9cd8;
  --ywf-radius: 4px;
  --ywf-size: 525px;
  --ywf-pattern: none;
  --ywf-pattern-opacity: 0.12;
  --ywf-pattern-size: 330px;
  --ywf-logo-scale: 1;
  --ywf-logo-x: 0%;
  --ywf-logo-y: 0%;
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  max-width: 1120px;
  container-name: ywf-widget;
  container-type: inline-size;
  min-height: 650px;
  margin: 0 auto;
  overflow: hidden;
  color: var(--ywf-text);
  background: var(--ywf-page);
  direction: rtl;
  text-align: right;
}

.ywf-pattern {
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: var(--ywf-pattern-opacity);
  background-image: var(--ywf-pattern);
  background-position: center;
  background-repeat: repeat;
  background-size: var(--ywf-pattern-size);
  pointer-events: none;
}

.ywf-widget:after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(
      circle at 8% 22%,
      color-mix(in srgb, var(--ywf-pointer) 18%, transparent),
      transparent 34%
    ),
    radial-gradient(
      circle at 90% 86%,
      color-mix(in srgb, var(--ywf-primary) 30%, transparent),
      transparent 42%
    );
  pointer-events: none;
}

.ywf-card {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 650px;
  padding: 26px 34px;
  direction: ltr;
}

.ywf-stage,
.ywf-copy {
  position: relative;
  min-width: 0;
}

.ywf-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 58%;
  min-height: 560px;
  direction: ltr;
}

.ywf-copy {
  flex: 0 1 400px;
  width: 400px;
  padding: 18px 20px 18px 34px;
  direction: rtl;
}

.ywf-copy-inner {
  width: 100%;
  padding: clamp(20px, 2.6vw, 34px);
  background: var(--ywf-card);
  border: 1px solid color-mix(in srgb, var(--ywf-text) 12%, transparent);
  border-radius: var(--ywf-radius);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.14);
}

.ywf-main-title {
  margin: 0 0 12px;
  color: var(--ywf-text);
  font-size: clamp(31px, 4vw, 50px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.8px;
}

.ywf-main-title em,
.ywf-main-title strong {
  color: var(--ywf-button);
  font-style: normal;
}

.ywf-subtitle {
  margin: 0 0 20px;
  color: var(--ywf-muted);
  font-size: 15px;
  font-weight: 450;
  line-height: 1.9;
}

.ywf-form-shell {
  margin: 24px 0 14px;
}

.ywf-form-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  color: #fff;
  background: rgba(255, 49, 74, 0.1);
  border: 3px solid #ff4050;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}

.ywf-form-error.is-nudging {
  animation: ywfNudge 0.3s linear;
}

.ywf-form {
  display: grid;
  gap: 14px;
}

.ywf-form[hidden],
.ywf-response[hidden],
.ywf-coupon-box[hidden],
.ywf-form-error[hidden] {
  display: none !important;
}

.ywf-form label {
  display: grid;
  gap: 7px;
  margin: 0;
  color: var(--ywf-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.ywf-form label b {
  color: #ff4050;
}

.ywf-form label small {
  margin-right: 4px;
  color: var(--ywf-muted);
  font-size: 11px;
  font-weight: 400;
}

.ywf-form input:not(.ywf-honeypot) {
  display: block;
  width: 100% !important;
  height: 43px;
  margin: 0;
  padding: 9px 12px;
  color: #333;
  background: #fff !important;
  border: 0 !important;
  border-radius: 4px;
  outline: 0;
  box-shadow: none !important;
  direction: ltr;
  text-align: left;
  font-size: 15px;
  font-weight: 450;
  line-height: 1;
}

.ywf-form input:not(.ywf-honeypot):focus {
  outline: 2px solid color-mix(in srgb, var(--ywf-button) 62%, #fff);
  outline-offset: 2px;
}

.ywf-form input::placeholder {
  color: #999;
}

.ywf-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.ywf-spin-button,
.ywf-result-ok {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 43px;
  margin: 2px 0 0;
  padding: 0 14px;
  color: var(--ywf-button-text);
  background: var(--ywf-button);
  border: 0;
  border-radius: 4px;
  box-shadow: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  text-transform: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
}

.ywf-spin-button:hover:not(:disabled),
.ywf-result-ok:hover {
  opacity: 0.86;
  transform: translateY(-1px);
}

.ywf-spin-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ywf-loader {
  display: none;
  align-items: center;
  gap: 4px;
  margin-right: 9px;
}

.ywf-loader i {
  display: block;
  width: 7px;
  height: 7px;
  background: currentColor;
  border-radius: 50%;
  animation: ywfBounce 1.1s infinite ease-in-out both;
}

.ywf-loader i:nth-child(1) {
  animation-delay: -0.32s;
}
.ywf-loader i:nth-child(2) {
  animation-delay: -0.16s;
}
.ywf-spin-button.is-loading .ywf-loader {
  display: inline-flex;
}

.ywf-privacy {
  margin: 8px 0 0;
  color: var(--ywf-muted);
  opacity: 0.8;
  font-size: 11px;
  line-height: 1.8;
}

.ywf-alert {
  margin: 0 0 14px;
  padding: 10px 12px;
  color: #fff;
  background: rgba(255, 172, 36, 0.12);
  border: 2px solid #ffb24b;
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.8;
}

.ywf-odds {
  margin-top: 14px;
  color: var(--ywf-muted);
}

.ywf-odds summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.ywf-odds > div {
  display: grid;
  gap: 7px;
  margin-top: 9px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

.ywf-odds span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
}

.ywf-odds b {
  color: var(--ywf-text);
}

.ywf-wheel-wrap {
  position: relative;
  width: min(var(--ywf-size), 525px, 52vw);
  max-width: 100%;
  aspect-ratio: 1;
}

.ywf-wheel-frame {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  filter: drop-shadow(9px 10px 0 rgba(0, 0, 0, 0.16));
}

.ywf-wheel-rotor {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  will-change: transform;
  transition: transform 6.5s ease-out;
}

.ywf-canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.ywf-hub {
  position: absolute;
  z-index: 8;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 26%;
  aspect-ratio: 1;
  color: var(--ywf-wheel-ring);
  background: var(--ywf-wheel-ring);
  border: clamp(7px, 1vw, 11px) solid
    color-mix(in srgb, var(--ywf-wheel-ring) 83%, #d9d9d9);
  border-radius: 50%;
  box-shadow:
    7px 8px 0 rgba(0, 0, 0, 0.12),
    inset 0 0 0 3px rgba(0, 0, 0, 0.04);
  transform: translate(-50%, -50%);
}

.ywf-hub-content {
  position: absolute;
  z-index: 2;
  inset: 6%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--ywf-primary);
  border-radius: 50%;
}

.ywf-hub-content img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  transform: translate(var(--ywf-logo-x), var(--ywf-logo-y))
    scale(var(--ywf-logo-scale));
  transform-origin: center;
}

.ywf-hub-content span {
  position: relative;
  z-index: 2;
  color: var(--ywf-wheel-ring);
  font-size: clamp(26px, 4vw, 47px);
  font-weight: 900;
  line-height: 1;
}

.ywf-pointer {
  position: absolute;
  z-index: 15;
  top: 50%;
  right: -52px;
  width: 95px;
  height: 51px;
  transform: translateY(-50%);
  transform-origin: 73.31% 44.89%;
  filter: drop-shadow(0 7px 6px rgba(0, 0, 0, 0.22));
  pointer-events: none;
}

.ywf-pointer-main {
  fill: var(--ywf-pointer);
}
.ywf-pointer-shadow {
  fill: #000;
  opacity: 0.16;
}
.ywf-pointer-pin {
  fill: var(--ywf-wheel-ring);
}
.ywf-widget.is-spinning .ywf-pointer {
  animation: ywfPointerWiggle 0.13s ease-in-out infinite alternate;
}

.ywf-response {
  color: var(--ywf-text);
}

.ywf-response-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 0 13px auto;
  color: var(--ywf-button-text);
  background: var(--ywf-button);
  border-radius: 50%;
  font-size: 23px;
}

.ywf-response h3 {
  margin: 0 0 7px;
  color: var(--ywf-text);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.5;
}

.ywf-response p {
  margin: 0 0 16px;
  color: var(--ywf-muted);
  font-size: 13px;
  line-height: 1.9;
}

.ywf-coupon-box {
  margin: 0 0 14px;
  padding: 12px;
  color: #333;
  background: #fff;
  border-radius: 4px;
}

.ywf-coupon-box > span {
  display: block;
  margin-bottom: 8px;
  color: #777;
  font-size: 11px;
}

.ywf-coupon-row {
  display: flex;
  align-items: center;
  gap: 8px;
  direction: ltr;
}

.ywf-coupon-box strong {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  color: #222;
  direction: ltr;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 1px;
  text-align: left;
}

.ywf-copy-coupon {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 10px;
  color: var(--ywf-button-text);
  background: var(--ywf-button);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.ywf-coupon-box small {
  display: block;
  margin-top: 8px;
  color: #777;
  font-size: 10px;
  text-align: right;
}

.ywf-lost .ywf-response-icon {
  color: #fff;
  background: #64748b;
}

.ywf-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.ywf-unavailable {
  padding: 18px;
  color: #9a3412;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 6px;
  text-align: center;
}

/* Automatic placement */
.ywf-auto-inline,
.ywf-auto-shell {
  display: none;
}

.ywf-auto-inline {
  margin: 28px 0;
}

.ywf-auto-inline .ywf-widget {
  border-radius: max(4px, var(--ywf-radius));
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.18);
}

.ywf-auto-layer[hidden] {
  display: none !important;
}

.ywf-auto-layer {
  position: fixed;
  z-index: 999990;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 2.6vw, 34px);
  direction: ltr;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease;
}

/* The popup is always centered; launcher side only affects the floating button. */
.ywf-position-right .ywf-auto-layer,
.ywf-position-left .ywf-auto-layer {
  justify-content: center;
}

.ywf-auto-layer.is-open {
  opacity: 1;
  visibility: visible;
}

.ywf-auto-overlay {
  position: absolute;
  inset: 0;
  padding: 0;
  background: rgba(7, 9, 18, 0.68);
  border: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.ywf-auto-panel {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100vw - 48px));
  height: auto;
  max-height: calc(100svh - 48px);
  overflow-x: hidden;
  overflow-y: auto;
  background: transparent;
  border-radius: max(14px, var(--ywf-radius, 4px));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.52);
  scrollbar-width: thin;
  opacity: 0;
  transform: translateY(26px) scale(0.965);
  transform-origin: center center;
  transition:
    transform 0.26s cubic-bezier(0.22, 0.75, 0.26, 1),
    opacity 0.2s ease;
}

.ywf-position-right .ywf-auto-panel,
.ywf-position-left .ywf-auto-panel {
  transform: translateY(26px) scale(0.965);
}

.ywf-auto-layer.is-open .ywf-auto-panel,
.ywf-position-right .ywf-auto-layer.is-open .ywf-auto-panel,
.ywf-position-left .ywf-auto-layer.is-open .ywf-auto-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.ywf-auto-panel > .ywf-widget {
  width: 100%;
  max-width: none;
  min-height: 650px;
  border-radius: inherit;
  box-shadow: none;
}

.ywf-auto-panel .ywf-card {
  min-height: 650px;
  padding: 26px 34px;
}

.ywf-auto-panel .ywf-stage {
  flex: 1 1 58%;
  margin: 0;
}

.ywf-auto-panel .ywf-copy {
  flex: 0 1 400px;
  width: 400px;
  padding: 18px 20px 18px 34px;
}

.ywf-auto-panel .ywf-wheel-wrap {
  width: min(var(--ywf-size), 525px, 48vw);
}

.ywf-auto-close {
  position: absolute;
  z-index: 50;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  color: var(--ywf-text, #fff);
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid color-mix(in srgb, currentColor 42%, transparent);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease;
}

.ywf-position-right .ywf-auto-close,
.ywf-position-left .ywf-auto-close {
  right: 14px;
  left: auto;
}

.ywf-auto-close:hover {
  background: rgba(0, 0, 0, 0.28);
  transform: rotate(8deg) scale(1.05);
}

.ywf-auto-close span {
  font-size: 24px;
  line-height: 1;
}

.ywf-width-medium .ywf-auto-panel {
  width: min(980px, calc(100vw - 48px));
}
.ywf-width-large .ywf-auto-panel {
  width: min(1120px, calc(100vw - 48px));
}
.ywf-width-compact .ywf-auto-panel {
  width: min(820px, calc(100vw - 48px));
}
.ywf-width-compact .ywf-auto-panel .ywf-stage {
  margin: 0;
}

/* Floating launcher copied from the supplied wheel UI */
.ywf-floating-trigger {
  position: fixed;
  z-index: 999980;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
  color: #222;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: transform 0.25s;
}

.ywf-position-right .ywf-floating-trigger {
  right: 20px;
  left: auto;
  flex-direction: row-reverse;
}

.ywf-floating-trigger:hover {
  transform: translateY(-3px);
}

.ywf-floating-icon {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 55px;
  height: 55px;
  background: var(--ywf-launcher-primary, #111);
  border-radius: 50%;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

.ywf-floating-icon:after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("widget-gift.png") center center / 38% no-repeat;
}

.ywf-floating-title {
  position: relative;
  display: block;
  margin-right: 15px;
  padding: 10px 17px;
  color: #222;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 4px;
  box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.13);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.ywf-floating-title:before {
  content: "";
  position: absolute;
  top: 50%;
  right: -5px;
  width: 9px;
  height: 9px;
  margin-top: -5px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-bottom: 0;
  border-left: 0;
  transform: rotate(45deg);
}

.ywf-position-right .ywf-floating-title {
  margin-right: 0;
  margin-left: 15px;
}

.ywf-position-right .ywf-floating-title:before {
  right: auto;
  left: -5px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-top: 0;
  border-right: 0;
}

.ywf-launcher-orb .ywf-floating-title {
  display: none;
}

.ywf-launcher-tab .ywf-floating-trigger {
  top: 50%;
  bottom: auto;
  left: -14px;
  transform: translateY(-50%);
}

.ywf-launcher-tab.ywf-position-right .ywf-floating-trigger {
  right: -14px;
  left: auto;
}

.ywf-launcher-tab .ywf-floating-icon {
  border-radius: 0 50% 50% 0;
  animation: ywfOutIn 5s ease-in-out infinite;
}

.ywf-launcher-tab.ywf-position-right .ywf-floating-icon {
  border-radius: 50% 0 0 50%;
}

.ywf-launcher-tab .ywf-floating-title {
  display: none;
}

.ywf-auto-shell[data-float-index="1"] .ywf-floating-trigger {
  bottom: 95px;
}
.ywf-auto-shell[data-float-index="2"] .ywf-floating-trigger {
  bottom: 170px;
}
.ywf-auto-shell[data-float-index="3"] .ywf-floating-trigger {
  bottom: 245px;
}

.ywf-mode-slide_in .ywf-auto-overlay {
  display: block;
}

.ywf-mode-slide_in .ywf-auto-panel {
  width: min(980px, calc(100vw - 48px));
}

.ywf-mode-slide_in .ywf-auto-panel .ywf-stage {
  margin: 0;
}

.ywf-auto-body-lock {
  overflow: hidden !important;
}

.ywf-confetti {
  position: fixed;
  z-index: 1000030;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ywf-confetti i {
  position: absolute;
  top: -30px;
  color: var(--ywf-primary);
  font-style: normal;
  font-size: 16px;
  animation: ywfFall 3s linear forwards;
}

.ywf-confetti i:nth-child(3n) {
  color: #ec4899;
}
.ywf-confetti i:nth-child(3n + 1) {
  color: #f59e0b;
}

@keyframes ywfBounce {
  0%,
  80%,
  100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

@keyframes ywfNudge {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-6px);
  }
  50% {
    transform: translateX(6px);
  }
  75% {
    transform: translateX(-3px);
  }
}

@keyframes ywfPointerWiggle {
  from {
    transform: translateY(-50%) rotate(-6deg);
  }
  to {
    transform: translateY(-50%) rotate(7deg);
  }
}

@keyframes ywfOutIn {
  0%,
  82%,
  100% {
    transform: translateX(0);
  }
  90% {
    transform: translateX(8px);
  }
}

@keyframes ywfFall {
  to {
    transform: translate(var(--drift), 110vh) rotate(620deg);
    opacity: 0.2;
  }
}

@media (min-width: 769px) {
  .ywf-auto-inline.ywf-show-desktop,
  .ywf-auto-shell.ywf-show-desktop {
    display: block;
  }
}

@media (max-width: 768px) {
  .ywf-auto-inline.ywf-show-mobile,
  .ywf-auto-shell.ywf-show-mobile {
    display: block;
  }
}

/* Viewport fallback for browsers without container queries. */
@media (max-width: 900px) {
  .ywf-widget {
    min-height: 0;
  }

  .ywf-card,
  .ywf-auto-panel .ywf-card {
    flex-direction: column;
    justify-content: flex-start;
    min-height: 0;
    padding: 18px;
  }

  .ywf-copy,
  .ywf-auto-panel .ywf-copy {
    order: 1;
    flex: 0 0 auto;
    width: min(100%, 640px);
    padding: 42px 0 0;
  }

  .ywf-stage,
  .ywf-auto-panel .ywf-stage {
    order: 2;
    flex: 0 0 auto;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 28px 18px 18px;
    transform: none;
  }

  .ywf-wheel-wrap,
  .ywf-auto-panel .ywf-wheel-wrap {
    width: min(var(--ywf-size), 480px, calc(100% - 32px));
    max-width: none;
  }

  .ywf-pointer {
    right: -30px;
    width: 66px;
    height: 37px;
  }

  .ywf-main-title {
    font-size: 27px;
  }

  .ywf-subtitle {
    margin-bottom: 12px;
    font-size: 13px;
  }

  .ywf-form-shell {
    margin-top: 15px;
  }

  .ywf-auto-layer {
    align-items: center;
    justify-content: center;
    padding: 10px;
  }

  .ywf-auto-panel,
  .ywf-width-medium .ywf-auto-panel,
  .ywf-width-large .ywf-auto-panel,
  .ywf-width-compact .ywf-auto-panel,
  .ywf-mode-slide_in .ywf-auto-panel {
    width: calc(100vw - 20px) !important;
    max-height: calc(100svh - 20px);
    border-radius: 18px;
  }

  .ywf-auto-panel > .ywf-widget {
    min-height: 0;
  }

  .ywf-auto-panel .ywf-card {
    min-height: 0;
  }

  .ywf-auto-close,
  .ywf-position-right .ywf-auto-close,
  .ywf-position-left .ywf-auto-close {
    position: absolute;
    top: 10px;
    right: 10px;
    left: auto;
  }

  .ywf-position-left .ywf-floating-trigger {
    left: 14px;
  }
  .ywf-position-right .ywf-floating-trigger {
    right: 14px;
  }
}

@media (max-width: 520px) {
  .ywf-card,
  .ywf-auto-panel .ywf-card {
    padding: 12px 10px;
  }

  .ywf-copy,
  .ywf-auto-panel .ywf-copy {
    padding-top: 40px;
  }

  .ywf-copy-inner {
    padding: 18px;
  }

  .ywf-stage,
  .ywf-auto-panel .ywf-stage {
    padding: 22px 0 12px;
  }

  .ywf-wheel-wrap,
  .ywf-auto-panel .ywf-wheel-wrap {
    width: min(var(--ywf-size), 410px, calc(100% - 26px));
  }

  .ywf-pointer {
    right: -22px;
    width: 52px;
    height: 30px;
  }

  .ywf-main-title {
    font-size: clamp(23px, 7.4vw, 27px);
  }

  .ywf-subtitle {
    font-size: 12px;
  }

  .ywf-form input:not(.ywf-honeypot) {
    height: 40px;
    font-size: 14px;
  }

  .ywf-spin-button,
  .ywf-result-ok {
    min-height: 41px;
  }

  .ywf-floating-icon {
    width: 50px;
    height: 50px;
  }

  .ywf-floating-title {
    max-width: min(170px, calc(100vw - 90px));
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
  }
}

/* The shortcode can sit in a narrow page-builder column even on a wide screen. */
@container ywf-widget (max-width: 900px) {
  .ywf-card {
    flex-direction: column;
    justify-content: flex-start;
    min-height: 0;
    padding: 18px;
  }

  .ywf-copy {
    order: 1;
    flex: 0 0 auto;
    width: min(100%, 640px);
    padding: 42px 0 0;
  }

  .ywf-stage {
    order: 2;
    flex: 0 0 auto;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 28px 18px 18px;
    transform: none;
  }

  .ywf-wheel-wrap {
    width: min(var(--ywf-size), 480px, calc(100% - 32px));
    max-width: none;
  }

  .ywf-pointer {
    right: -30px;
    width: 66px;
    height: 37px;
  }
}

@container ywf-widget (max-width: 520px) {
  .ywf-card {
    padding: 12px 10px;
  }

  .ywf-copy {
    padding-top: 40px;
  }

  .ywf-copy-inner {
    padding: 18px;
  }

  .ywf-stage {
    padding: 22px 0 12px;
  }

  .ywf-wheel-wrap {
    width: min(var(--ywf-size), 410px, calc(100% - 26px));
  }

  .ywf-pointer {
    right: -22px;
    width: 52px;
    height: 30px;
  }

  .ywf-main-title {
    font-size: clamp(23px, 7.4cqw, 27px);
  }
}

@media (max-width: 360px) {
  .ywf-wheel-wrap,
  .ywf-auto-panel .ywf-wheel-wrap {
    width: min(var(--ywf-size), calc(100% - 18px));
  }

  .ywf-pointer {
    right: -18px;
    width: 46px;
    height: 27px;
  }

  .ywf-auto-layer {
    padding: 6px;
  }

  .ywf-auto-panel,
  .ywf-width-medium .ywf-auto-panel,
  .ywf-width-large .ywf-auto-panel,
  .ywf-width-compact .ywf-auto-panel,
  .ywf-mode-slide_in .ywf-auto-panel {
    width: calc(100vw - 12px) !important;
    max-height: calc(100svh - 12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ywf-wheel-rotor {
    transition-duration: 0.01ms !important;
  }
  .ywf-widget.is-spinning .ywf-pointer,
  .ywf-launcher-tab .ywf-floating-icon {
    animation: none;
  }
}
