.giveasap-sharing-description {
  text-align: center;
}
.giveasap_extra_actions {
  padding: 0 1.5em;
  margin: 0;
  list-style: none;
  width: 100%;

  li {
    width: 100%;
    float: none;
    min-height: 40px;
    padding:0;
    line-height: 40px;
    margin-bottom:1em;
    display: block;
  }
}


// Single Item
.sg-extra-action {
  width: 100%;

  .sg-button {
    background: $purple;
    color: white;
    display: inline-block;
    padding: 5px 20px;
    border-radius: 3px;
    font-size: 14px;
    border: 1px solid $purple;
    text-decoration: none;

    &:hover,
    &:focus {
      background: white;
      color: $purple;
    }
  }

  .sg-extra-action-form-body {
    padding: 10px;

    p {
      margin: 0 0 1em 0;
    }

    .giveaway-product {
      display: flex;
      padding: 15px;
      border: 1px solid rgba( 0,0,0,0.25);
      border-radius: 5px;

      .giveaway-product-image {
        width: 100px;
        height: auto;
      }

      .giveaway-product-price {
        margin-bottom: 10px;
      }

      .giveaway-product-content {
        width: 100%;
        width: calc(100% - 100px);
        padding-left: 20px;
      }

      .giveaway-product-title {
        color: $purple;
        margin: 0 0 20px 0;
        font-size: 20px;

        a {
          color: $purple;
          text-decoration: none;
        }
      }

      &.sg-no-thumbnail {
        .giveaway-product-content {
          width: 100%;
        }
      }
    }
  }

  &:not(.expanded) {
    form { display: none; }
  }
  
  &.sg-extra-action-category-facebook {
    .sg-action-icon {
      background: #3b5998;
    }
  }

  &.sg-extra-action-category-twitter {
    .sg-action-icon {
      background: #1da1f2;
    }
  }

  .sg-extra-action-title {
    background: $white;
    color: $black;
    padding: 0 40px 0 50px;
    position: relative;
    display:block;
    width: 100%;
    text-decoration: none;
    font-size: 0.75em;
    text-align: left;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    text-transform: none;
    box-shadow: none;
    text-shadow: none;
    border: 1px solid rgba( 0, 0, 0, 0.15 );
    font-family: inherit;
    vertical-align: unset;
    height: 45px;
    line-height: 45px;
    font-weight: 500;
    outline: none;

    .fab,
    .fal {
      position: absolute;
      left: 0;
      line-height: 40px;
      width: 40px;
      color: white;
      text-align: center;
    }

    .sg-extra-action-entries {
      position: absolute;
      width: 40px;
      height: 100%;
      top: 0;
      right: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      color: $purple;
      font-size: 16px;


      .fab,
      .fal {
        color: inherit;
      }

      .fal.fa-check { color: $green; }

      .sg-extra-action-entries-info {
        display: block;
        line-height: 10px;
        font-size: 10px;
        text-align: center;
        padding: 0 4px;
        position: static;
        margin-right: 10px;

        .fal,
        .fab {
          position: static;
          width: auto;
          height: auto;
          line-height: initial;
          display: block;
          left: unset;
          font-size: 14px;
        }
      }
    }

    .action-title { position: relative; z-index: 5; }
  }

  .sg-action-icon {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 40px;
    background: $purple;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .sg_extra_action_button {
    display: block;
    margin: 0 auto 1em;
    height: 40px;
    line-height: 40px;
    font-size: 12px;
    padding: 0 1em;
    background: $purple;
    text-decoration: none;
    color: white;
    border: 1px solid $purple;
    border-radius: 3px;
    text-align: center;
    max-width: 90%;

    &:hover:not([disabled]) {
      background: darken( $purple, 20% );
      color: white;
    }
  }

  .sg-extra-action-actions {
    display: block;
    text-align: center;

    .giveasap_button {
      display: inline-block;
      height: 40px;
      line-height: 40px;
      font-size: 12px;
      padding: 0 1em;
      background: $purple;
      color: white;
      border: 1px solid $purple;

      &[disabled] {
        opacity: 0.5;
        cursor: default;
      }

      &.giveasap_button-blank {
        background: white;
        color: $purple;
      }

      &:hover:not([disabled]) {
        background: darken( $purple, 20% );
        color: white;
      }
    }
  }

  &.expanded {
    .sg-extra-action-title {
      border-bottom-right-radius: 0;
      border-bottom-left-radius: 0;
    }
  }

  form {
    font-size: 16px;
    line-height: 1.5em;
    padding: 1em;
    border: 1px solid rgba( 0, 0, 0, 0.15 );
    border-top: none;
    box-shadow: 0px 2px 5px rgba( 0, 0, 0, 0.15 );
    position: relative;

    textarea,
    input:not([type=radio]):not([type=checkbox]) {
      width: 100%;
      border: 1px solid rgba( 0, 0, 0, 0.15 );
      font-size: 1em;
      padding: 0.5em;
      border-radius: 3px;
      background: #f9f9f9;

      &:active,
      &:focus {
        border-color: $purple;
      }
    }

    .sg-radio-label {
      display: block;
      margin-bottom: 5px;

      input:not([type=radio]):not([type=checkbox]) {
        width: auto;
      }
    }

    .sg-extra-action-locked {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      padding: 1em;
      background: rgba(255,255,255,.75);
      z-index: 100;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      display: none;

      .sg-extra-action-locked-icon {
        font-size: 1.5em;
        margin-bottom: 0.5em;
        color: $purple;
      }
    }
  }

  &.sg-extra-action-locked {
    .sg-extra-action-locked {
      display: flex;
    }
  }

  .sg-action-form {
    .sg-action-form-entry {
      &:not(:first-child) {
        margin-top: 10px;
      }
    }

    .sg_extra_action_button {
      margin-top: 20px;
    }
  }
}

.sg-loading {
  position: relative;

  &:before,
  &:after {
    content: '';
    position: absolute;
  }

  &:before {
    height: 100%;
    width: 100%;
    background: rgba( 0, 0, 0, 0.45 );
    top: 0;
    left: 0;
    z-index: 10;
  }

  &:after {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 6px solid #fff;
    border-color: #fff $purple #fff $purple;
    animation: sg-dual-ring 1.2s linear infinite;
    z-index: 12;
    position: absolute;
    top: 0;
    left: 0;
    margin: auto;
    bottom: 0;
    right: 0;
  }
}

@keyframes sg-dual-ring {
  0% {
    transform: rotate(0deg);
  }

  100%{
    transform: rotate(360deg);
  }
}
