/* =========================================================
   BYTEGIVE
   SHARED STYLES
========================================================= */


/* =========================================================
   APP
========================================================= */

.giveaway-app {
  width: min(560px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 55px;
}


/* =========================================================
   BACK BUTTON
========================================================= */

.back-button {
  display: inline-block;
  margin-bottom: 25px;

  color: #737780;

  text-decoration: none;

  font-family: "DM Sans", sans-serif;
  font-size: 12px;

  transition: color .15s ease;
}

.back-button:hover {
  color: #d9dadd;
}


/* =========================================================
   SHARED FORM TAG
========================================================= */

.form-tag {
  display: block;

  margin-bottom: 7px;

  color: #858991;

  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  font-weight: 600;

  letter-spacing: 1.3px;
}


/* =========================================================
   SHARED CARD
========================================================= */

.giveaway-card {
  width: 100%;
  box-sizing: border-box;

  padding: 24px;

  border: 1px solid #282b32;
  border-radius: 11px;

  background: #111318;
}


/* =========================================================
   FORM TOP
   Shared by manage + public page
========================================================= */

.form-top {
  margin-bottom: 22px;
  padding-bottom: 16px;

  border-bottom: 1px solid #252830;
}

.form-top h2 {
  margin: 0 0 4px;

  color: #e7e8eb;

  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-weight: 600;
}

.form-top p {
  margin: 0;

  color: #6f737e;

  font-family: "DM Sans", sans-serif;
  font-size: 12px;
}


/* =========================================================
   FIELDS
   Shared by manage + public page
========================================================= */

.field {
  margin-bottom: 17px;
}

.field label {
  display: block;

  margin-bottom: 6px;

  color: #c7c9cf;

  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 600;
}

.field input,
.field textarea {
  display: block;

  width: 100%;
  box-sizing: border-box;

  border: 1px solid #292c34;
  border-radius: 7px;

  outline: none;

  background: #0d0f13;
  color: #e9eaed;

  font-family: "DM Sans", sans-serif;
  font-size: 13px;

  transition:
    border-color .15s ease,
    background .15s ease;
}

.field input {
  height: 43px;
  padding: 0 12px;
}

.field textarea {
  min-height: 105px;

  padding: 11px 12px;

  resize: vertical;

  line-height: 1.5;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #4f535d;
}

.field input:hover,
.field textarea:hover {
  border-color: #363a43;
}

.field input:focus,
.field textarea:focus {
  border-color: #696e79;
  background: #101217;
}


/* =========================================================
   FIELD HINT
========================================================= */

.field-hint {
  display: block;

  margin-top: 5px;

  color: #5f636d;

  font-family: "DM Sans", sans-serif;
  font-size: 10px;

  line-height: 1.45;
}


/* =========================================================
   PRIMARY BUTTON
========================================================= */

.primary-btn {
  width: 100%;
  height: 43px;

  padding: 0 15px;

  border: 0;
  border-radius: 7px;

  cursor: pointer;

  background: #e8e8e8;
  color: #111318;

  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;

  transition:
    background .15s ease,
    transform .1s ease;
}

.primary-btn:hover {
  background: #fff;
}

.primary-btn:active {
  background: #d4d4d4;
  transform: translateY(1px);
}

.primary-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}


/* =========================================================
   STATUS
========================================================= */

.status {
  min-height: 18px;

  margin: 9px 0 0;

  color: #777c86;

  text-align: center;

  font-family: "DM Sans", sans-serif;
  font-size: 11px;

  line-height: 1.4;
}


/* =========================================================
   TWO COLUMN FORM
   MANAGE PAGE
========================================================= */

.form-row {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    130px;

  gap: 12px;
}


/* =========================================================
   INFO NOTE
   MANAGE PAGE
========================================================= */

.form-note {
  display: flex;

  align-items: flex-start;

  gap: 9px;

  margin: 3px 0 18px;

  padding: 10px 11px;

  border: 1px solid #24272e;
  border-radius: 7px;

  background: #0d0f13;
}

.note-icon {
  display: flex;

  flex: 0 0 17px;

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

  width: 17px;
  height: 17px;

  border: 1px solid #444852;
  border-radius: 50%;

  color: #8d919b;

  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
}

.form-note p {
  margin: 0;

  color: #686c76;

  font-family: "DM Sans", sans-serif;
  font-size: 10px;

  line-height: 1.5;
}


/* =========================================================
   GIVEAWAY STATS
   PUBLIC PAGE
========================================================= */

.giveaway-stats {
  display: grid;

  grid-template-columns: 1fr 1fr;

  margin-top: 20px;

  border-top: 1px solid #252830;
}

.stat {
  padding: 14px 0 2px;
}

.stat + .stat {
  padding-left: 18px;

  border-left: 1px solid #252830;
}

.stat span {
  display: block;

  margin-bottom: 4px;

  color: #656974;

  font-family: "DM Sans", sans-serif;
  font-size: 10px;
}

.stat strong {
  display: block;

  color: #cfd1d6;

  font-family: "IBM Plex Mono", monospace;
  font-size: 15px;
  font-weight: 600;
}


/* =========================================================
   LOADING
   PUBLIC PAGE
========================================================= */

.loading-state {
  padding: 18px 0 10px;

  text-align: center;
}

.loading-line {
  position: relative;

  width: 100%;
  height: 3px;

  margin-bottom: 14px;

  overflow: hidden;

  border-radius: 3px;

  background: #20232a;
}

.loading-line::after {
  content: "";

  position: absolute;

  top: 0;
  left: -30%;

  width: 30%;
  height: 100%;

  background: #777c86;

  animation: loadingMove 1.2s ease-in-out infinite;
}

.loading-state p {
  margin: 0;

  color: #686c76;

  font-family: "DM Sans", sans-serif;
  font-size: 11px;
}

@keyframes loadingMove {

  0% {
    left: -30%;
  }

  100% {
    left: 100%;
  }

}


/* =========================================================
   SUCCESS
   PUBLIC PAGE
========================================================= */

.success-state {
  padding: 8px 0 2px;
}

.success-icon {
  display: flex;

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

  width: 34px;
  height: 34px;

  margin-bottom: 12px;

  border-radius: 50%;

  background: #e8e8e8;
  color: #111318;

  font-family: Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
}

.result-label {
  display: block;

  margin-bottom: 5px;

  color: #777c86;

  font-family: "IBM Plex Mono", monospace;
  font-size: 8px;
  font-weight: 600;

  letter-spacing: 1px;
}

.success-state h2,
.closed-state h2 {
  margin: 0 0 7px;

  color: #e7e8eb;

  font-family: "DM Sans", sans-serif;
  font-size: 22px;
  font-weight: 700;

  letter-spacing: -.4px;
}

.state-message {
  margin: 0 0 18px;

  color: #777c86;

  font-family: "DM Sans", sans-serif;
  font-size: 12px;

  line-height: 1.5;
}


/* =========================================================
   CONFIRMATION
   PUBLIC PAGE
========================================================= */

.confirmation {
  overflow: hidden;

  border: 1px solid #252830;
  border-radius: 7px;

  background: #0d0f13;
}

.confirmation-row {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 15px;

  padding: 12px 13px;
}

.confirmation-row + .confirmation-row {
  border-top: 1px solid #252830;
}

.confirmation-row span {
  color: #686c76;

  font-family: "DM Sans", sans-serif;
  font-size: 11px;
}

.confirmation-row strong {
  max-width: 65%;

  color: #cfd1d6;

  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;

  text-align: right;

  word-break: break-all;
}


/* =========================================================
   SECONDARY BUTTON
   PUBLIC + MANAGE
========================================================= */

.secondary-btn {
  display: block;

  width: 100%;
  height: 40px;

  box-sizing: border-box;

  padding: 11px;

  border: 1px solid #30333a;
  border-radius: 6px;

  background: transparent;
  color: #bfc2c9;

  text-align: center;
  text-decoration: none;

  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 600;

  transition:
    background .15s ease,
    border-color .15s ease;
}

.secondary-btn:hover {
  border-color: #4a4e57;

  background: #1b1d22;
}


/* =========================================================
   HIDDEN
========================================================= */

.hidden {
  display: none !important;
}


/* =========================================================
   FOOTER
   PUBLIC PAGE
========================================================= */

.page-footer {
  margin: 18px 0 0;

  color: #4f535d;

  text-align: center;

  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;

  letter-spacing: .5px;
}


/* =========================================================
   =========================================================
   MANAGE-GIVEAWAY ONLY
   =========================================================
   ========================================================= */


/* =========================================================
   MANAGE HEADER
========================================================= */

.manage-giveaway .form-heading {
  margin-bottom: 22px;
}

.manage-giveaway .form-heading h1 {
  margin: 0 0 7px;

  color: #f4f4f5;

  font-family: "DM Sans", sans-serif;
  font-size: 30px;
  font-weight: 700;

  letter-spacing: -.7px;
  line-height: 1.15;
}

.manage-giveaway .form-heading p {
  margin: 0;

  color: #777c88;

  font-family: "DM Sans", sans-serif;
  font-size: 13px;

  line-height: 1.5;
}


/* =========================================================
   MANAGE RESULT CARD
========================================================= */

.manage-giveaway .result-card {
  margin-top: 22px;

  padding: 18px;

  border: 1px solid #30333b;
  border-radius: 9px;

  background: #15171c;
}

.manage-giveaway .result-top {
  display: flex;

  align-items: center;

  gap: 10px;

  margin-bottom: 11px;
}

.manage-giveaway .result-top .success-icon {
  flex: 0 0 30px;

  width: 30px;
  height: 30px;

  margin: 0;

  font-size: 16px;
}

.manage-giveaway .result-card h2 {
  margin: 0;

  color: #e7e8eb;

  font-family: "DM Sans", sans-serif;
  font-size: 17px;
  font-weight: 600;
}

.manage-giveaway .result-text {
  margin: 0 0 15px;

  color: #777b85;

  font-family: "DM Sans", sans-serif;
  font-size: 12px;

  line-height: 1.5;
}


/* =========================================================
   MANAGE SHARE LINK
========================================================= */

.share-label {
  display: block;

  margin-bottom: 6px;

  color: #a3a6ae;

  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 600;
}

.share-box {
  display: flex;

  gap: 6px;
}

.share-box input {
  min-width: 0;

  flex: 1;

  height: 39px;

  box-sizing: border-box;

  padding: 0 10px;

  border: 1px solid #292c33;
  border-radius: 6px;

  outline: none;

  background: #0d0f13;
  color: #8f939d;

  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

.share-box button {
  height: 39px;

  padding: 0 13px;

  border: 1px solid #353841;
  border-radius: 6px;

  cursor: pointer;

  background: #20232a;
  color: #d3d5da;

  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 600;

  transition: background .15s ease;
}

.share-box button:hover {
  background: #2a2d35;
}


/* =========================================================
   MANAGE GIVEAWAY INFO
========================================================= */

.giveaway-info {
  margin: 15px 0;

  padding-top: 13px;

  border-top: 1px solid #252830;
}

.giveaway-info div {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 10px;
}

.giveaway-info span {
  color: #656974;

  font-family: "DM Sans", sans-serif;
  font-size: 10px;
}

.giveaway-info strong {
  max-width: 65%;

  color: #aeb1b9;

  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;

  text-align: right;

  word-break: break-all;
}


/* =========================================================
   =========================================================
   GIVEAWAY.HTML ONLY
   PUBLIC PARTICIPANT PAGE
   =========================================================
   ========================================================= */


/* =========================================================
   PUBLIC GIVEAWAY INFORMATION
========================================================= */

.public-giveaway-info {
  margin-bottom: 22px;

  padding-bottom: 18px;

  border-bottom: 1px solid #252830;
}


/* =========================================================
   PUBLIC TITLE
========================================================= */

.public-giveaway-info h1 {
  max-width: 100%;

  margin: 0;

  color: #f1f1f2;

  font-family: "DM Sans", sans-serif;

  font-size: clamp(25px, 6vw, 32px);

  font-weight: 700;

  letter-spacing: -.8px;

  line-height: 1.1;

  overflow-wrap: anywhere;
}


/* =========================================================
   PUBLIC PRIZE
========================================================= */

.public-prize {
  margin: 8px 0 0;

  color: #a7aab2;

  font-family: "DM Sans", sans-serif;

  font-size: 14px;

  line-height: 1.45;
}


/* =========================================================
   PUBLIC INFORMATION BOX
========================================================= */

.public-info-box {
  margin-bottom: 17px;

  padding: 13px 14px;

  border: 1px solid #252830;
  border-radius: 7px;

  background: #0d0f13;
}

.public-box-label {
  display: block;

  margin-bottom: 7px;

  color: #858995;

  font-family: "IBM Plex Mono", monospace;

  font-size: 9px;
  font-weight: 600;

  letter-spacing: 1px;
}

.public-info-box p {
  margin: 0;

  color: #a4a7af;

  font-family: "DM Sans", sans-serif;

  font-size: 12px;

  line-height: 1.55;

  white-space: pre-line;
}


/* =========================================================
   PUBLIC CLOSING DATE
========================================================= */

.closing-box {
  margin-bottom: 19px;

  padding: 12px 14px;

  border: 1px solid #252830;
  border-radius: 7px;

  background: #15171c;
}

.closing-box > div {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 15px;
}

.closing-label {
  color: #696d77;

  font-family: "IBM Plex Mono", monospace;

  font-size: 9px;
  font-weight: 600;

  letter-spacing: .8px;
}

.closing-box strong {
  color: #c8cad0;

  font-family: "DM Sans", sans-serif;

  font-size: 11px;
  font-weight: 600;

  text-align: right;
}


/* =========================================================
   PUBLIC STATE
========================================================= */

.closed-state {
  padding: 8px 0 2px;
}

.closed-icon {
  display: flex;

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

  width: 34px;
  height: 34px;

  margin-bottom: 12px;

  border: 1px solid #383b43;
  border-radius: 50%;

  color: #9a9da5;

  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: 400;
}

.closed-state .state-message {
  margin-bottom: 18px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 600px) {

  .giveaway-app {
    width: min(520px, calc(100% - 28px));

    padding: 32px 0 45px;
  }

  .giveaway-card {
    padding: 19px;
  }

  .form-row {
    grid-template-columns:
      minmax(0, 1fr)
      115px;

    gap: 10px;
  }

  .manage-giveaway .form-heading h1 {
    font-size: 27px;
  }

  .public-giveaway-info h1 {
    font-size: 27px;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 460px) {

  .giveaway-app {
    width: calc(100% - 24px);

    padding-top: 25px;
  }

  .giveaway-card {
    padding: 16px;

    border-radius: 8px;
  }

  .manage-giveaway .form-heading h1 {
    font-size: 25px;
  }

  .manage-giveaway .form-heading p {
    font-size: 12px;
  }

  .public-giveaway-info {
    margin-bottom: 19px;
    padding-bottom: 15px;
  }

  .public-giveaway-info h1 {
    font-size: 25px;
  }

  .public-prize {
    font-size: 12px;
  }

  .form-top {
    margin-bottom: 19px;
    padding-bottom: 13px;
  }

  .form-row {
    grid-template-columns: 1fr;

    gap: 0;
  }

  .field {
    margin-bottom: 16px;
  }

  .field input {
    height: 42px;
  }

  .closing-box > div {
    align-items: flex-start;

    flex-direction: column;

    gap: 5px;
  }

  .closing-box strong {
    text-align: left;
  }

  .giveaway-stats {
    margin-top: 18px;
  }

  .confirmation-row {
    align-items: flex-start;

    flex-direction: column;

    gap: 4px;
  }

  .confirmation-row strong {
    max-width: 100%;

    text-align: left;
  }

  .share-box {
    flex-direction: column;
  }

  .share-box button {
    width: 100%;
  }

}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 350px) {

  .giveaway-app {
    width: calc(100% - 18px);
  }

  .giveaway-card {
    padding: 14px;
  }

  .manage-giveaway .form-heading h1 {
    font-size: 23px;
  }

  .public-giveaway-info h1 {
    font-size: 23px;
  }

  .primary-btn {
    height: 41px;
  }

}