.aisale-launcher {
  position: fixed !important;
  inset: auto max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) auto !important;
  right: max(20px, env(safe-area-inset-right)) !important;
  bottom: max(20px, env(safe-area-inset-bottom)) !important;
  left: auto !important;
  top: auto !important;
  z-index: 2147483001;
  border: 1px solid rgba(31, 147, 255, .14) !important;
  display: grid !important;
  width: 68px !important;
  height: 68px !important;
  place-items: center;
  border-radius: 20px !important;
  padding: 0 !important;
  overflow: visible;
  background: #fff !important;
  color: #1687ff !important;
  box-shadow: 0 8px 26px rgba(22, 135, 255, .48), 0 0 0 1px rgba(22, 135, 255, .06) !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box !important;
  font-size: 0 !important;
  line-height: 1 !important;
  transform: none !important;
  transition: transform .18s ease, box-shadow .18s ease !important;
}

.aisale-launcher:disabled {
  cursor: wait;
  opacity: .72;
}

.aisale-launcher[hidden] {
  display: none !important;
}

.aisale-launcher:not(:disabled):hover {
  background: #fff !important;
  color: #087cff !important;
  box-shadow: 0 10px 32px rgba(8, 124, 255, .58), 0 0 0 1px rgba(8, 124, 255, .1) !important;
  transform: translateY(-2px) !important;
}

.aisale-launcher__icon {
  display: block !important;
  width: 42px !important;
  height: 42px !important;
  fill: currentColor !important;
  color: inherit !important;
}

#cw-widget-holder.woot-elements--right {
  position: fixed !important;
  right: max(20px, env(safe-area-inset-right)) !important;
  left: auto !important;
}

@media (min-width: 668px) {
  #cw-widget-holder.woot-elements--right:not(.woot--hide) {
    bottom: 96px !important;
  }
}

.aisale-launcher:focus-visible,
.aisale-consent button:focus-visible,
.aisale-consent input:focus-visible,
.aisale-consent a:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}

.aisale-consent {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: grid;
  place-items: end center;
  padding: 24px;
  background: rgba(17, 24, 39, .45);
}

.aisale-consent[hidden] {
  display: none;
}

.aisale-consent__panel {
  width: min(100%, 520px);
  max-height: calc(100dvh - 48px);
  border-radius: 16px;
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  color: #111827;
  box-shadow: 0 20px 45px rgba(0, 0, 0, .28);
  font: 400 16px/1.5 system-ui, sans-serif;
}

.aisale-consent__panel h2 {
  margin: 0;
  font-size: 22px;
}

.aisale-consent[dir="rtl"] .aisale-consent__panel {
  direction: rtl;
  text-align: right;
}

.aisale-consent__header {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.aisale-consent__language {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.aisale-consent__language button {
  border: 1px solid #9ca3af;
  border-radius: 999px;
  padding: 4px 10px;
  background: #fff;
  color: #374151;
  font: 600 13px/1.4 system-ui, sans-serif;
  cursor: pointer;
}

.aisale-consent__language button[aria-pressed="true"] {
  border-color: #1687ff;
  background: #eaf4ff;
  color: #075db8;
}

.aisale-consent__check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  margin: 18px 0 12px;
  cursor: pointer;
}

.aisale-consent__check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
}

.aisale-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.aisale-consent__actions button {
  border: 1px solid #1f2937;
  border-radius: 8px;
  padding: 10px 16px;
  background: #1f2937;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.aisale-consent__actions button:disabled {
  border-color: #9ca3af;
  background: #d1d5db;
  color: #6b7280;
  cursor: not-allowed;
}

.aisale-consent__actions .aisale-consent__secondary {
  background: #fff;
  color: #1f2937;
}

@media (max-width: 600px) {
  .aisale-launcher {
    inset: auto max(16px, env(safe-area-inset-right)) max(72px, calc(16px + env(safe-area-inset-bottom))) auto !important;
    right: max(16px, env(safe-area-inset-right)) !important;
    bottom: max(72px, calc(16px + env(safe-area-inset-bottom))) !important;
  }

  .aisale-consent {
    padding: 12px;
  }

  .aisale-consent__panel {
    max-height: calc(100dvh - 24px);
  }
}

@media (max-width: 667px) {
  #cw-widget-holder.woot-elements--right {
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
  }
}
