.sioy-wc-widget {
  display: block;
  margin: 14px 0 0;
}

.sioy-wc-widget.sioy-wc-widget--checking {
  opacity: 0.92;
}

.sioy-wc-widget[hidden],
.sioy-wc-widget--hidden {
  display: none !important;
}

.sioy-wc-widget .sioy-wc-button {
  all: unset;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 44px !important;
  height: auto !important;
  padding: 0 18px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: var(--sioy-wc-button-radius, 10px) !important;
  background: var(--sioy-wc-button-bg, #08275c) !important;
  color: var(--sioy-wc-button-color, #fff) !important;
  font: inherit !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: none !important;
  cursor: pointer !important;
  box-shadow: 0 8px 20px rgba(8, 39, 92, 0.18) !important;
  transition: background-color 0.15s ease, filter 0.15s ease !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.sioy-wc-widget .sioy-wc-button:hover,
.sioy-wc-widget .sioy-wc-button:focus {
  background: var(--sioy-wc-button-hover-bg, #0a3268) !important;
  filter: brightness(1.02);
}

.sioy-wc-modal[hidden] {
  display: none !important;
}

.sioy-wc-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 2147483647;
  isolation: isolate;
  overscroll-behavior: contain;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 24px;
}

.sioy-wc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.sioy-wc-dialog {
  position: relative;
  width: min(94vw, 1010px, calc((100dvh - 48px) * 1.523));
  aspect-ratio: 1010 / 663;
  max-height: calc(100dvh - 48px);
  margin: 0;
  background: #fbfbfb;
  border-radius: 32px;
  overflow: hidden;
  z-index: 2;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.18);
}

.sioy-wc-dialog iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fbfbfb;
}

.sioy-wc-modal .sioy-wc-close {
  all: unset !important;
  box-sizing: border-box !important;
  display: grid !important;
  place-items: center !important;
  position: absolute !important;
  top: 40px !important;
  right: 40px !important;
  z-index: 4 !important;
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08) !important;
  color: #111827 !important;
  font-family: Poppins, Arial, "Helvetica Neue", Helvetica, sans-serif !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  line-height: 40px !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: none !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.sioy-wc-modal-open {
  overflow: hidden !important;
  height: 100%;
}

.sioy-wc-modal--camera-fullscreen {
  padding: 0;
  place-items: stretch;
}

.sioy-wc-modal--camera-fullscreen .sioy-wc-backdrop {
  background: #000;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.sioy-wc-modal--camera-fullscreen .sioy-wc-dialog {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
  background: #000;
}

.sioy-wc-modal--camera-fullscreen .sioy-wc-close {
  top: max(16px, env(safe-area-inset-top)) !important;
  right: max(16px, env(safe-area-inset-right)) !important;
  background: rgba(0, 0, 0, 0.42) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.sioy-wc-modal.sioy-wc-modal--zoom-open .sioy-wc-close {
  display: none !important;
  pointer-events: none !important;
}

@media (max-width: 640px) {
  .sioy-wc-modal {
    padding: 0;
    place-items: stretch;
  }

  .sioy-wc-dialog {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    aspect-ratio: auto;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .sioy-wc-modal .sioy-wc-close {
    top: max(16px, env(safe-area-inset-top)) !important;
    right: max(16px, env(safe-area-inset-right)) !important;
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    font-size: 22px !important;
    line-height: 30px !important;
  }
}
