/* Button styles */
.widget-button-trigger {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #000!important; /* Replace with your brand color */
  color: white!important;
  padding: 15px 20px!important;
  border-radius: 25px!important;
  font-weight: 600!important;
  border: none!important;
  cursor: pointer!important;
  outline: none!important;
  transition: all 0.3s ease-in!important;
  z-index: 99!important;  
  font-size: 16px!important;
  line-height: 16px!important;
  box-shadow: none!important;
  text-transform: none!important;
  font-family: "Sequel 100 Wide 55", sans-serif!important;
  letter-spacing: 2px!important;
  text-transform: uppercase!important;
  touch-action: manipulation!important;
  -webkit-tap-highlight-color: transparent!important;
  pointer-events: auto!important;
}

.donna-widget-open {
  position: fixed!important;
  left: 0!important;
  right: 0!important;
  top: 0!important;
  width: 100%!important;
  overflow: hidden!important;
}

.widget-button-trigger:hover {
  transform: scale(1.05)!important;
}

/* Modal overlay styles */
.widget-modal-overlay {
  position: fixed!important;
  top: 0!important;
  left: 0!important;
  width: 100%!important;
  height: 100%!important;
  background: rgba(0, 0, 0, 0.5)!important;
  z-index: 999998!important;
  pointer-events: auto!important;
  touch-action: manipulation!important;
  overscroll-behavior: contain!important;
}

/* Modal content styles */
.widget-modal-content {
  position: fixed!important;
  top: 50%!important;
  left: 50%!important;
  transform: translate(-50%, -50%)!important;
  width: 100%!important;
  max-width: 850px!important;
  height: 100%!important;
  max-height: 500px!important;
  background: white!important;
  border-radius: 10px!important;
  overflow: hidden!important;
  z-index: 999999!important;
  display: flex!important;
  flex-direction: column!important;
  pointer-events: auto!important;
  -webkit-overflow-scrolling: touch!important;
}

/* Close button styles */
.widget-close-button {
  position: absolute;
  top: 5px;
  right: 15px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10000;
  padding: 0!important;
  touch-action: manipulation!important;
  pointer-events: auto!important;
}

.widget-close-button:hover {
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
} 

/* Close icon styles */
.widget-close-icon {
  position: absolute;
  width: 20px;
  height: 2px;
  background-color: #323131;
}

/* Iframe styles */
.widget-iframe {
  display: block!important;
  flex: 1 1 auto!important;
  width: 100%;
  height: 100%;
  min-height: 0!important;
  border: none;
  pointer-events: auto!important;
  touch-action: auto!important;
}

@media (max-width: 767px) {
  .widget-modal-content {
    top: 0!important;
    right: 0!important;
    bottom: 0!important;
    left: 0!important;
    margin: auto!important;
    transform: none!important;
    width: calc(100vw - 24px)!important;
    max-width: 850px!important;
    height: 100vh!important;
    height: 100dvh!important;
    max-height: 500px!important;
    border-radius: 10px!important;
  }

  .widget-close-button {
    position: absolute!important;
    top: max(5px, env(safe-area-inset-top))!important;
    right: 10px!important;
  }
}
