@use '../../../styles/mixins';

.root {
  --premium-gradient: linear-gradient(88.39deg, #6C93FF -2.56%, #976FFF 51.27%, #DF69D1 107.39%);
  --premium-feature-background: linear-gradient(65.85deg, #6C93FF -0.24%, #976FFF 53.99%, #DF69D1 110.53%);

  user-select: none;
}

.root :global(.modal-content) {
  overflow: hidden;
  padding: 0;
}

.root :global(.modal-dialog) {
  overflow: hidden;
  max-width: 26.25rem;
  height: min(calc(55vh + 41px + 193px), 90vh);
}

.button {
  height: 3rem;
  font-size: 1rem;
  font-weight: var(--font-weight-medium);
}

.main {
  overflow-y: scroll;
  display: flex;
  flex-direction: column;
  align-items: center;

  height: 100%;
}

.logo {
  width: 6.25rem;
  height: 6.25rem;
  min-height: 6.25rem;
  margin: 1rem;
}

.header-text {
  margin-inline: 0.5rem;
  font-size: 1.5rem;
  font-weight: var(--font-weight-medium);
  text-align: center;
}

.description {
  margin-bottom: 2rem;
  margin-inline: 2.5rem;
  text-align: center;
}

.header {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;

  display: flex;
  align-items: center;

  width: 100%;
  height: 3.5rem;
  padding: 0.5rem;
  border-bottom: 0.0625rem solid var(--color-borders);

  background: var(--color-background);

  transition: 0.25s ease-out transform;
}

.hidden-header {
  transform: translateY(-100%);
}

.close-button {
  position: absolute;
  z-index: 3;
  top: 0.5rem;
  left: 0.5rem;
}

.premium-header-text {
  unicode-bidi: plaintext;
  margin: 0 0 0 3rem;
  font-size: 1.25rem;
  font-weight: var(--font-weight-medium);
}

.primary-footer-text {
  color: var(--color-text);
}

.section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;

  width: 100%;
  padding: 0 0.375rem;
  border-top: 0.0625rem solid var(--color-borders);
}

.types {
  border-top: none;
}

.footer {
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 0;

  width: 100%;
  padding: 1rem;
  border-top: 0.0625rem solid var(--color-borders);

  background: var(--color-background);
}

.options {
  width: 100%;
  padding: 0 0.25rem;
}

.giveawayTitle {
  margin: 0.8125rem 0 0 1rem;
  font-size: 1rem;
  color: var(--color-links);

  @include mixins.adapt-margin-to-scrollbar(0.8125rem);
}

.subscription {
  margin: 1rem 1.625rem 1.3125rem 1.5rem;
  font-size: 1rem;
  font-weight: var(--font-weight-normal);
  color: var(--color-text-secondary);

  @include mixins.adapt-margin-to-scrollbar(1rem);
}

.starSubscription {
  margin-top: 0;
}

.subscriptionOption {
  margin-bottom: 0;
  padding-inline: 3.5rem 1rem;
  box-shadow: none;
}

.status {
  display: flex;
  gap: 0.8125rem;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  margin-bottom: 1.3125rem;
  padding: 0 0.375rem 0 1rem;
}

.info {
  flex-grow: 1;
}

.titleInfo {
  margin: 0;
}

.month {
  margin: 0;
  color: var(--color-text-secondary);
}

.quantity {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.floatingBadge {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--color-links);

  background-color: rgba(78, 142, 229, 0.1);
}

.floatingBadgeColor {
  margin: 0.8125rem 0.8125rem 0 1rem;
  padding: 0.1875rem 0.75rem 0.25rem 0.5rem;
  border-radius: 1rem;
  background-color: rgba(78, 142, 229, 0.1);

  @include mixins.adapt-margin-to-scrollbar(0.8125rem);
}

.floatingBadgeButtonColor {
  margin-left: 0.5rem;
  padding: 0.25rem 0.375rem 0.25rem 0.1875rem;
  border-radius: 0.375rem;
  background-color: white;
}

.floatingBadgeIcon {
  margin-right: 0.1875rem;
  font-size: 1.125rem;
}

.floatingBadgeValue {
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
}

.subscriptionFooter {
  margin-bottom: 6rem;
}

.premiumFeatures {
  margin-bottom: 0;
  font-size: 1rem;
  color: var(--color-text-secondary);
}

.dateButton {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 1rem;
  padding-right: 1.1875rem;
  padding-left: 1rem;
}

.title {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text);
  text-transform: initial;
}

.checkboxSection {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
}

.prizesSection {
  display: flex;
  align-items: center;
  padding: 1rem;
}

.prizesInput {
  flex-grow: 1;
  margin-bottom: 0;
  margin-left: 1rem;
}

.subLabelClassName {
  margin-top: 0.1875rem;
  color: var(--color-links) !important;
}

.prepaidImg {
  width: 2.75rem;
  height: 2.75rem;
}

.addButton {
  margin-bottom: 1rem;
}

.addChannel {
  margin-inline-start: 0.3125rem !important;
  margin-inline-end: 1.375rem !important;
}

.removeChannel {
  padding: 0.5rem;
  font-size: 1.5rem;
  color: var(--color-text-secondary);
}

.starOptions {
  padding: 0.8125rem;
}

@media (max-width: 600px) {
  .root :global(.modal-dialog) {
    width: 100%;
    max-width: 100% !important;
    height: 100%;
    border-radius: 0;
  }

  .root .transition {
    height: 100%;
  }
}
