@import 'https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap';
.sg-wrapper * {
  box-sizing: border-box;
  font-family: Quicksand, sans-serif !important;
}

.sg-wrapper {
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  z-index: 9999;
}

.sg-wrapper > .sg-modal-opener {
  position: relative;
  margin: 0;
  font-weight: 700;
  background: #fff;
  border: 2px solid rgba(69, 69, 69, 0.7);
  padding: 1rem;
  border-radius: 100%;
  box-shadow: 0 2px 4px #00000059;
  cursor: pointer;
}
.sg-modal-opener > img {
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: -6px;
}
#sg-modal {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1rem;
}
.sg-modal-content {
  background: #fafafa;
  padding: 2rem;
  border-radius: 1rem;
  overflow: auto;
  position: relative;
}
.sg-modal-content.sg-form {
  width: 100%;
  height: 100%;
  max-width: 1200px;
  max-height: 694px;
}
.sg-modal-content h2 {
  text-align: center;
  margin: 0 0 2rem;
  font-size: 1.75rem;
}
#sg-descriptions-section > p {
  font-size: 1.25rem;
  margin: 0;
}
#sg-descriptions-section > p:last-of-type {
  margin-bottom: 1.5rem;
}
#sg-form > textarea {
  width: 100%;
  resize: none;
  outline: none;
  background: #fafafa;
  border: 2px solid rgba(15, 15, 15, 0.52);
  border-radius: 8px;
  height: 250px;
  font-size: 1rem;
  padding: 0.5rem;
  margin-bottom: 1rem;
}
#sg-form input[type='file'] {
  display: none;
}
#sg-form label[for='sg-files'] {
  background: #f3f2f2;
  box-shadow: 0 1px 2px #0000004d, 0 1px 3px 1px #00000026;
  border-radius: 100px;
  padding: 0.75rem;
  cursor: pointer;
  color: #0f0f0f;
  font-weight: 500;
  display: flex;
  width: fit-content;
}
.sg-files-preview-wrapper {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.sg-action-buttons {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.25rem;
}
.sg-action-buttons > * {
  font-size: 1rem;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  box-shadow: 0 1px 2px #0000004d, 0 1px 3px 1px #00000026;
  border-radius: 1rem;
  cursor: pointer;
  font-weight: 700;
}
.sg-action-buttons button {
  background: #f3f2f2;
  color: #303f9f;
  border: 1px solid #303f9f;
}
.sg-action-buttons input[type='submit'] {
  background: #1a237e;
  color: #f3f2f2;
  border: 1px solid #1a237e;
  box-shadow: 0 1px 2px #0000004d, 0 1px 3px 1px #00000026;
}
@media (max-width: 478px) {
  .sg-wrapper {
    bottom: 1.5rem;
    right: 1.5rem;
  }
  .sg-modal-content.sg-form {
    max-height: none;
    height: 100%;
  }
  .sg-action-buttons {
    margin-top: 3rem;
  }
  #sg-descriptions-section > p {
    font-size: 1rem;
  }
  #sg-form label[for='sg-files'],
  .sg-action-buttons input[type='submit'],
  #sg-form > textarea {
    font-size: 0.9rem;
  }
}
.tooltip-wrapper p {
  display: inline;
  margin: 0;
  white-space: nowrap;
  color: #f0f0f0;
}
.tooltip-wrapper {
  position: absolute;
  background: #202124;
  padding: 0.5rem;
  border-radius: 0.9rem;
  box-shadow: 0 1px 6px #19191959;
}
.tooltip-wrapper.bottom {
  top: calc(100% + 20px);
  left: 50%;
  transform: translate(-50%);
}
.tooltip-wrapper.left {
  top: 50%;
  transform: translateY(-50%);
  right: calc(100% + 16px);
}
.tooltip-wrapper.top {
  top: calc(-100% + 6px);
  left: 50%;
  transform: translate(-50%);
}
.tooltip-wrapper.right {
  top: 50%;
  transform: translateY(-50%);
  left: calc(100% + 16px);
}
.tooltip-wrapper:after {
  content: '';
  width: 0px;
  position: absolute;
  height: 0px;
  border-style: solid;
  border-width: 12px 17px 12px 0;
  border-color: transparent #202124 transparent transparent;
  display: inline-block;
  vertical-align: middle;
  margin-right: 5px;
}
.tooltip-wrapper.bottom:after {
  bottom: calc(16px + 0.9rem);
  left: 50%;
  transform: rotate(90deg) translateY(50%);
}
.tooltip-wrapper.left:after {
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  right: -17px;
}
.tooltip-wrapper.right:after {
  top: 50%;
  transform: translateY(-50%);
  left: -12px;
}
.tooltip-wrapper.top:after {
  left: 50%;
  bottom: -16px;
  transform: translate(-50%) rotate(270deg);
}
.v-enter-active,
.v-leave-active {
  transition: opacity 0.3s ease;
}
.v-enter-from,
.v-leave-to {
  opacity: 0;
}
.sg-modal-wrapper {
  width: 100%;
  height: 100%;
  max-width: 1200px;
  max-height: 694px;
  display: flex;
  justify-content: center;
  align-items: center;
}
@media (max-width: 478px) {
  .sg-modal-wrapper {
    height: 90%;
    max-height: none;
  }
}
.sg-progress-wrapper {
  width: 100%;
  height: 0.5rem;
  border-radius: 10px;
  position: relative;
  background: #cecece;
  box-shadow: 0 2px 4px #0000001a;
}
.sg-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  background: #309f58;
  border-radius: 10px;
  height: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px #00000059;
}
.sg-file-preview {
  width: fit-content;
  margin-bottom: 1rem;
  line-height: 1;
  padding: 0.25rem 0.75rem;
  box-shadow: 0 1px 4px #00000059;
  border-radius: 0.825rem;
}
.sg-file-preview-info {
  gap: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.5rem;
}
.sg-file-preview p {
  margin: 0;
  max-width: 20ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sg-file-preview img:not(.sg-trash),
.sg-file-preview video {
  width: 4rem;
  height: 2.25rem;
  object-fit: contain;
}
.sg-file-preview img.sg-trash {
  max-height: 1rem;
  color: #c84444;
  cursor: pointer;
}
.sg-action-buttons svg {
  margin: 0;
  background: #303f9f;
  height: 42px;
}
.sg-success {
  background: #309f58;
  color: #f0f0ff;
}
.sg-error {
  background: #9f303f;
  color: #f0f0ff;
}
.sg-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 2rem;
  color: #2a2a2a;
  border-radius: 100%;
  cursor: pointer;
}
.sg-form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
}
.sg-form-success h3 {
  display: inline;
  color: #309f58;
}
.sg-form-success button {
  color: #2a2a2a;
  background-color: #f3f3f3;
  outline: none;
  border: none;
  font-size: 1rem;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  box-shadow: 0 1px 2px #0000004d, 0 1px 3px 1px #00000026;
  border-radius: 1rem;
  cursor: pointer;
  font-weight: 700;
}
