/* Copyright (C) 2019 Monomax Software Pty Ltd
 *
 * This file is part of Dnote.
 *
 * Dnote is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Dnote is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with Dnote.  If not, see <https://www.gnu.org/licenses/>.
 */

@import '../../App/rem';
@import '../../App/font';
@import '../../App/theme';

.form {
  background: white;
  border: 1px solid $border-color;
  padding: rem(12px) rem(20px);
}

.help {
  margin-top: rem(4px);
  margin-bottom: 0;
  color: $dark-gray;
  @include font-size('x-small');
}

.schedule-wrapper {
  display: flex;
  flex-direction: column;
}

.schedule-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;

  @include breakpoint(md) {
    justify-content: initial;
  }
}

.schedule-input-wrapper {
  display: flex;
  flex-direction: column;

  @include breakpoint(md) {
    & ~ .schedule-input-wrapper {
      margin-left: rem(24px);
    }
  }
}

.time-select {
  width: auto;

  @include breakpoint(md) {
    width: rem(60px);
  }
}

.timezone {
  display: flex;
  align-items: flex-end;
}

.book-domain-wrapper {
  display: flex;
  flex-direction: column;
  margin-top: rem(4px);

  @include breakpoint(md) {
    flex-direction: row;
    margin-top: 0;
  }
}
.book-domain-option {
  & ~ .book-domain-option {
    margin-left: 0;
    margin-top: rem(4px);

    @include breakpoint(md) {
      margin-left: rem(8px);
      margin-top: 0;
    }
  }
}
.book-domain-label {
  margin-left: rem(4px);
  margin-bottom: 0;
}

.input-row {
  & ~ .input-row {
    margin-top: rem(16px);
  }
}

.book-selector {
  margin-top: rem(12px);

  @include breakpoint(md) {
    margin-top: rem(8px);
  }
}
