.wpsms-subscribe__form {
  margin-top: 30px;
}

.wpsms-subscribe__form__field {
  margin: 0 0 30px;

  .iti--allow-dropdown {
    width: 100%;

    .wp-sms-input-mobile {
      padding-left: 50px !important;
    }
  }

  .iti--separate-dial-code {
    .wp-sms-input-mobile {
      padding-left: 101px !important;
    }
  }
}

.wpsms-subscribe__form__field > label {
  display: block;
}

.wpsms-subscribe__field__input {
  padding: 5px 7px;
  border: solid 1px #d9d9d9;
  transition: border 0.3s;
  font-family: inherit !important;
  font-size: 16px;
  border-radius: 8px !important;
  color: black;
}

.wpsms-subscribe__form__field.wpsms-subscribe__form__field--radio {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 20px;

  label {
    display: inline-flex;
    align-items: center;
    position: relative;
  }

  input[type="radio"] {
    margin-left: 0;
    appearance: none;
    width: 20px;
    height: 20px;
    max-width: 20px;
    max-height: 20px;
    border-radius: 8px;
    vertical-align: middle;
    padding: unset !important;
    margin-right: 5px;
    border: 1px solid #222222 !important;
    position: relative;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;

    &::after {
      content: "";
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
      width: 10px;
      height: 10px;
      background-color: white;
      border-radius: 4px;
    }

    &:checked {
      border: 1px solid #f88e40 !important;

      &::after {
        background-color: #f88e40;
      }
    }
  }
}

.wpsms-subscribe__field__input:focus,
.wpsms-subscribe__field__input.focus {
  border: solid 2px #969696;
}

.js-wpSmsSubscribeStepTwo {
  margin-top: 30px;
}

.js-wpSmsSubscriberName,
.js-wpSmsSubscriberMobile,
.js-wpSmsSubscriberGroupId,
.js-wpSmsSubscribeFormField {
  label {
    position: absolute;
    top: -10px;
    left: 8px;
    padding: 0 8px;
    background: white;
    border-radius: 4px;
  }
}

.wpsms-subscribe__form__field {
  min-width: 200px;
  position: relative;

  label {
    color: #222222;
    font-size: 14px;
    z-index: 1;
  }

  input:not([type="checkbox"]),
  select {
    width: 100%;
    height: auto;
    font-size: 14px !important;
    background-color: #fff;
    border: 1px solid #d9d9d9;
    box-sizing: border-box;
    border-radius: 8px;
    padding: 15px !important;

    &:focus {
      border: 1px solid #f88e40;
      box-shadow: none;
      outline: none;
    }
  }

  // .wpsms-subscribe__field__triangle {
  //   width: 0;
  //   height: 0;
  //   border-bottom: 0;
  //   border-top: 9px solid #f88e40;
  //   border-left: 7px solid rgba(255, 255, 255, 0);
  //   border-right: 7px solid rgba(255, 255, 255, 0);
  //   position: absolute;
  //   right: 14px;
  //   top: 50%;
  //   transform: translateY(-50%);
  //   border-radius: 5px;
  // }

  select {
    color: black;
    font-weight: 600;
  }

  input::placeholder {
    color: #5b5b5b;
  }
}

.wpsms-subscribe__form__field.wpsms-subscribe__form__field--radio {
  label {
    cursor: pointer;
  }

  input {
    margin-right: 0px;
  }
}

input.wpsms-type-unsubscribe {
  margin-left: 10px !important;
}

.wpsms-subscribe__form__field--gdpr {
  margin: 0 0 24px;
  border: 1px solid #d9d9d9;
  box-sizing: border-box;
  border-radius: 8px;
  padding: 20px 15px !important;
  position: relative;

  label {
    color: #000;
    cursor: pointer;
    position: relative;
    color: #000;
    cursor: pointer;
    display: block;
    top: 0;
    left: 0;
    margin-bottom: 8px;

    &:last-child {
      margin-bottom: 0px;
    }
  }

  p {
    position: absolute;
    top: -16px;
    left: 8px;
    background: white;
    border-radius: 4px;
    color: #222222;
    font-size: 14px;
    margin: 0 !important;
    padding: 0 8px !important;
  }

  input[type="checkbox"] {
    appearance: none !important;
    border: 1px solid #222222 !important;
    position: relative;
    border-radius: 8px;
    vertical-align: middle;
    margin-right: 5px;
    top: 0 !important;
    width: 20px;
    height: 20px;
    box-shadow: none;
    outline: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-1px);

    &::after {
      content: "";
      transform: rotate(0) translateY(-1px);
    }

    &::before {
      content: "";
    }

    &:focus {
      box-shadow: none;
      outline: none;
    }

    &::selection {
      background-color: #f88e40;
      border-color: #f88e40 !important;
      color: #fff;
    }

    &:checked {
      border: 1px solid #222222 !important;
      background-color: #222222;

      &::before {
        content: "";
      }

      &::after {
        content: url("data:image/svg+xml,%3Csvg width='12' height='10' viewBox='0 0 8 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.77749 0L2.77748 3.72336L1.22258 2.27614L0 3.4144L2.7775 6L8 1.13828L6.77749 0Z' fill='white'/%3E%3C/svg%3E%0A") !important;
        transform: rotate(0) translateY(-1px);
      }
    }
  }
}

.wpsms-subscribe__form__field .intl-tel-input {
  display: flex;

  .wpsms-subscribe__field__input {
    border-left: 0;
    border-radius: 0 2px 2px 0;

    &:focus {
      border-left: 0 !important;
    }
  }

  .flag-container {
    position: relative;
    font-size: 14px;
    border: 1px solid #000;
    border-right: 0;
    transition: border 0.3s;
    border-radius: 2px 0 0 2px;
    padding: 0;
  }

  &:focus-within {
    .flag-container,
    .wpsms-subscribe__field__input {
      border-color: #f88e40;
    }
  }
}

.iti {
  &.iti--allow-dropdown {
    .iti__country {
      margin: 0 !important;
    }
  }
}
