.sw-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  display: none;
  border: none;
  border-radius: 16px;
  padding: 0;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  padding: 20px;
  box-sizing: border-box;
  z-index: 10;
  backdrop-filter: blur(6px);
}

.sw-modal::backdrop {
  background: rgba(0, 0, 0, 0.4);
  position: absolute;
}

.sw-modal.is-open {
  display: flex;
}

.sw-modal__sheet {
  background: #fff;
  border-radius: 32px;
  padding: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  box-sizing: border-box;
  max-width: 70%;
}

.sw-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.sw-header h2 {
  margin: 0;
  color: var(--Main-Dark, #222);
  font-family: Inter;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
  text-transform: uppercase;
}

.sw-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.sw-socials .icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.sw-preview {
  min-width: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.sw-preview img {
  max-width: 100%;
  max-height: 530px;
  border-radius: 12px;
}

.preview-wrapper {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.sw-field.sw-link {
  position: relative;
  display: flex;
}

.sw-field.sw-link input {
  flex: 1;
  padding: 12px 50px 12px 16px;
  border-radius: 16px;
  border: 1px solid #222;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sw-field.sw-link button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sw-actions {
  text-align: center;
  margin: 0 auto;
}

.btn.btn-primary {
  width: 125px;
  border-radius: 100px;
  background: #222;
  color: #fff;
  padding: 12px 24px;
  border: none;
  cursor: pointer;
  text-align: center;
  font-family: Inter;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  position: relative;
  height: 44px;
}

.sw-close {
  position: absolute;
  top: 28px;
  right: 28px;
  border: 0;
  background-color: transparent;
  cursor: pointer;
}

.img-loader {
  position: absolute;
  width: 40px;
  height: 40px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 4px solid #ccc;
  border-top-color: #43a4ca;
  border-radius: 50%;
  animation: img-spin 0.8s linear infinite;
  z-index: 2;
  display: none;
}

.btn-loader {
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 4px solid #ccc;
  border-top-color: #43a4ca;
  border-radius: 50%;
  animation: img-spin 0.8s linear infinite;
  z-index: 2;
  display: none;
}

@keyframes img-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

#shotImg {
  transition: opacity 0.3s ease;
}

/* FOR WRAPPER */
.chart-wrapper {
  background: #e9f5fe;
  padding: 24px;
  border-radius: 28px;
  position: relative;
}

.chart-header {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 20px;
}

.chart-logo {
  position: absolute;
  left: 28px;
  top: 28px;
  width: 300px;
}

.chart-logo svg {
  width: 100px;
  height: auto;
}

.chart-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: fit-content;
}

.chart-info h3 {
  color: #222;
  font-family: Inter, sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
  margin-bottom: 10px;
}

.chart-info p {
  text-wrap: nowrap;
  color: #222;
  font-family: Roboto;
  font-size: 19px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%;
  margin-right: 20px;
  margin-bottom: 5px;
}

.chart-info p:last-child {
  margin-bottom: 0;
}

.chart-info span {
  font-size: 18px;
  font-family: Roboto;
  font-style: normal;
  font-weight: 600;
  line-height: 150%;
}

@media (max-width: 650px) {
  .chart-logo {
    top: 100px;
  }
}
