:root {
  --widget-width: 30%;
  --widget-height: 75%;
  --widget-bottom: 2rem;
  --widget-right: 3rem;
}

.sweepr-widget {
  z-index: 2;
  height: 100%;
  min-height: 600px;
}

.sweepr-widget.type-modal {
  inset: 0;
  justify-content: center;
  align-items: center;
  position: fixed;
  background-color: rgba(0, 0, 0, 0.35);
  display: none;
  padding: 32px;
}

.sweepr-widget.type-modal:not(.full) iframe {
  width: 770px !important;
  height: 100% !important;
  max-height: 900px;
  border-radius: 16px;
}

@media screen and (max-width: 768px) {
  .sweepr-widget.type-modal {
    padding: 32px 0 0 0;
  }

  .sweepr-widget.type-modal:not(.full) iframe {
    width: 100% !important;
    max-height: 100%;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
}

.sweepr-widget.type-modal:not(.full) iframe .app {
  padding: 16px;
}

.sweepr-widget.type-chat {
  bottom: var(--widget-bottom);
  right: var(--widget-right);
  width: var(--widget-width);
  height: var(--widget-height);
  max-height: 850px;
  position: fixed;
  flex-direction: column;
  display: flex;
  display: none;
  width: 350px;
}

.type-chat {
  border-radius: 10px;
  flex: 1;
  border: 7px solid #2f608f;
  min-height: initial;
}

iframe {
  border: 0;
}

.widget-header-button {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--color-disabled-light);
  border-radius: 5px;
  width: 25px;
  height: 25px;
  margin-left: 5px;
  cursor: pointer;
}

.type-chat-close-container {
  width: 100%;
  display: flex;
  position: absolute;
  opacity: 0;
  justify-content: flex-end;
}
.type-chat-close-container:hover {
  opacity: 1;
  top: -32px;
}
.sweepr-widget:hover > .type-chat-close-container {
  opacity: 1;
  top: -32px;
}

/* Define your minimized chat style */
.container-minimization {
  position: fixed;
  bottom: 0.5rem;
  right: var(--widget-right);
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 300px; /* Adjust the width as needed */
}

/* Add hover effect for user interaction */
.container-minimization:hover {
  background-color: #f0f0f0;
}

.container-minimization.hidden {
  display: none;
}
.minimized-interaction-text {
  margin: 0;
  margin-right: 0.5rem;
}

body:has(.sweepr-widget_modal__visible) {
  overflow: hidden;
}

/* Extra small devices (phones, 600px and down) */
/* Overwriting any properties for mobile browsers */
@media screen and (max-width: 600px) {
  .sweepr-widget,
  .sweepr-widget.type-chat,
  .sweepr-widget.type-modal {
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    justify-content: center;
    position: fixed;
    border: none;
    border-radius: 0;
    max-height: initial;
  }
}

@media screen and (min-width: 769px) and (max-height: 700px) {
  .sweepr-widget.type-modal {
    padding-block: 16px;
  }
}
