/*-------------------------------------------------------*/
/* Buttons
/*-------------------------------------------------------*/
.btn {
  font-weight: 700;
  font-family: $heading-font;
  display: inline-block;
  text-decoration: none;
  text-transform: uppercase;
  text-align: center;
  border: 2px solid transparent;
  border-radius: 3px;
  line-height: 1.1;
  @include transition($all);
  color: #fff;
  background-color: var(--dinery-main-color);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  position: relative;
  z-index: 1;
  white-space: nowrap;
  vertical-align: middle;
  -ms-touch-action: manipulation;
  touch-action: manipulation;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;

  &:hover {
    color: #fff;
    background-color: var(--dinery-main-color);
    border-color: transparent;
  }

  &:focus {
    outline: none;
    opacity: 0.9;
    color: #fff;
  }

  &--lg,
  &--lg.btn--button {
    font-size: 1.125rem;
    padding: 17px 30px;
  }

  &--md,
  &--md.btn--button {
    font-size: 1rem;
    padding: 13px 30px;
  }

  &.btn--sm,
  &--sm.btn--button {
    font-size: 0.875rem;
    padding: 9px 24px;
  }

  &--color {
    background-color: var(--dinery-main-color);

    &:hover {
      opacity: 0.92;
    }
  }

  &.btn--stroke {
    border: 2px solid var(--dinery-main-color);
    background-color: transparent;
    color: $text-color;

    &:focus,
    &:hover {
      background-color: var(--dinery-main-color);
      color: #fff;
    }
  }

  &.btn--dark {
    background-color: $bg-dark;
  }

  &.btn--secondary-color {
    background-color: $secondary-color;
  }

  &--white {
    background-color: #fff;
    color: $heading-color;

    &:focus {
      color: $heading-color;
    }
  }

  &--light {
    background-color: $bg-light;
    color: $heading-color;

    &:hover,
    &:focus {
      background-color: var(--dinery-main-color);
    }
  }

  &--icon {
    i {
      margin-left: 14px;
      position: relative;
      bottom: -2px;
    }
  }

  &--wide {
    width: 100% !important;
  }
}

/*-------------------------------------------------------*/
/* Form Elements
/*-------------------------------------------------------*/
input,
select,
textarea {
  border: 2px solid $border-color;
  border-radius: 3px;
  width: 100%;
  margin-bottom: 16px;
  font-size: 0.9375rem;
  line-height: 1.5;
  padding: 16px;
  height: 56px;
  @include transition(border-color 0.3s ease-in-out, background-color 0.3s ease-in-out);
}

textarea {
  height: auto;
  display: block;
  padding: 8px 16px;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%236E727A%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat, repeat;
  background-position: right 0.7em top 50%, 0 0;
  background-size: 0.65em auto, 100%;
}

select::-ms-expand {
  display: none;
}

select option {
  font-weight: normal;
}

/* clears the ‘X’ from Internet Explorer */
input[type="search"]::-ms-clear {
  display: none;
  width: 0;
  height: 0;
}
input[type="search"]::-ms-reveal {
  display: none;
  width: 0;
  height: 0;
}
/* clears the ‘X’ from Chrome */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  display: none;
}

/* Input Buttons
-------------------------------------------------------*/
.btn--button {
  border: none;
  margin-bottom: 0;
  width: auto;

  &:hover,
  &:focus {
    background-color: var(--dinery-main-color);
  }
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.button {
  cursor: pointer;
  white-space: normal;
  height: auto;
  background-color: var(--dinery-main-color);
  border-color: transparent;
  padding: 17px 24px;
  font-size: 1.0625rem;
  line-height: 1.1;
  color: #fff;
  font-family: $heading-font;
  font-weight: 500;

  &:focus {
    border-color: transparent;
    background-color: var(--dinery-main-color);
    color: #fff;
  }
}

input[type="search"] {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

input:focus,
textarea:focus {
  border-color: var(--dinery-main-color);
  background-color: #fff;
  box-shadow: none;
}

.elementor-field-group {
  input,
  select,
  textarea {
    margin-bottom: 0;
  }
}

/* Change Color of Placeholders */
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
  color: $text-color;
}

input:-moz-placeholder,
textarea:-moz-placeholder {
  color: $text-color;
  opacity: 1;
}

input::-moz-placeholder,
textarea::-moz-placeholder {
  color: $text-color;
  opacity: 1;
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
  color: $text-color;
}

label {
  font-family: $heading-font;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
  vertical-align: middle;
  margin-bottom: 10px;

  input {
    float: left;
  }
}

.form-group {
  position: relative;
}

/* Checkboxes & Radio Buttons
-------------------------------------------------------*/
input[type="checkbox"],
input[type="radio"] {
  min-width: 18px;
  width: 18px;
  height: 18px;
  border-radius: 2px;
  margin-bottom: 0;
  margin-right: 8px;
  text-align: center;
  line-height: 1;
  vertical-align: middle;
  background-color: #fff;
  border: 1px solid darken($border-color, 5%);
  -moz-appearance: none;
  -webkit-appearance: none;

  &:hover,
  &:focus {
    border-color: darken($border-color, 5%);
    background-color: $bg-light;
  }
}

input[type="checkbox"] {
  &:checked:after {
    content: "\e904";
    font-family: "dinerize-icons";
  }
}

input[type="checkbox"] + label,
input[type="radio"] + label {
  cursor: pointer;
  margin-bottom: 0;
  position: relative;
  line-height: 20px;
  text-transform: none;
}

input[type="radio"] {
  border-radius: 50%;

  &:checked:after {
    content: "";
    width: 8px;
    height: 8px;
    position: relative;
    top: -2px;
    border-radius: 50%;
    display: inline-block;
    background-color: $bg-dark;
  }
}

.deo-consent-checkbox {
  margin-top: 12px;
  text-transform: none;
  flex: 1 0 100%;
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.3;
}

.consent-checkbox {
  margin-top: 12px;
  margin-bottom: 32px;
  overflow: hidden;
  display: flex;

  label {
    font-weight: 400;
    font-size: 1rem;
  }
}

/*-------------------------------------------------------*/
/* Tables
/*-------------------------------------------------------*/
table th {
  font-weight: normal;
}

table caption {
  margin-bottom: 10px;
}

table > thead > tr > th,
table > tbody > tr > th,
table > tfoot > tr > th,
table > thead > tr > td,
table > tbody > tr > td,
table > tfoot > tr > td {
  border: 1px solid $border-color;
  padding: 10px;
}

table > thead > tr > th {
  border-bottom: none;
}

table thead tr th,
table tbody tr th {
  font-size: 1rem;
  color: $heading-color;
  font-family: $heading-font;
  font-weight: 600;
}

.table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: -ms-autohiding-scrollbar;
}

/*-------------------------------------------------------*/
/* Card
/*-------------------------------------------------------*/
.card {
  @include display-flex;
  flex: 1 0 0%;
  flex-direction: column;
  background-color: #fff;
  overflow: hidden;

  &-row > div {
    margin-bottom: 30px;
  }

  &-row .card {
    height: 100%;
    margin-bottom: 0;
  }

  &__img-holder {
    margin-right: 0 !important;
    margin-bottom: 0 !important;
  }

  &__body {
    background-color: #fff;
    padding: 40px;
    flex: 1 1 auto;
  }

  &--small {
    .card__body {
      padding: 24px 16px;
    }

    .entry__title {
      font-size: 16px;
      margin-bottom: 0;
    }
  }
}

/*-------------------------------------------------------*/
/* Blockquote
/*-------------------------------------------------------*/
blockquote {
  line-height: 1.6;
  padding: 12px 40px;
  margin-bottom: 40px;
  margin-top: 40px;
  border-left: 3px solid var(--dinery-main-color);

  p {
    margin-bottom: 0;
    color: $heading-color;
    font-style: italic;
    font-size: 1.5rem;
  }

  cite {
    color: $text-color;
    font-style: normal;
    font-size: 0.875rem;
    opacity: 0.7;
    margin-top: 1em;
    line-height: 1.8;
    display: inline-block;
  }
}

/*-------------------------------------------------------*/
/* Alerts
/*-------------------------------------------------------*/
.alert {
  border-radius: 5px;

  &-info {
    background-color: #d9edf7;
    border-color: transparent;
    border-left: 5px solid #bcdff1;
  }

  &-success {
    background-color: #dff0d8;
    border-color: transparent;
    border-left: 5px solid #cae6be;
  }

  &-warning {
    background-color: #fcf8e3;
    border-color: transparent;
    border-left: 5px solid #f9f0c3;
  }

  &-danger {
    background-color: #f2dede;
    border-color: transparent;
    border-left: 5px solid #e8c4c4;
  }
}

.close {
  font-weight: 400;
}

/*-------------------------------------------------------*/
/* Social Icons
/*-------------------------------------------------------*/
.socials {
  &--white a {
    color: #fff;
  }

  &--nobase a {
    width: auto;
    height: auto;
    line-height: 1;
    background-color: transparent;
    margin-right: 16px;

    &:hover,
    &:focus {
      background-color: transparent;
      color: var(--dinery-main-color);
    }
  }

  &--small a {
    width: 32px;
    height: 32px;
    line-height: 32px;
    font-size: 0.875rem;
  }
}

.social {
  display: inline-block;
  width: 46px;
  height: 46px;
  line-height: 46px;
  margin: 0 8px 8px 0;
  background-color: #f3f3f3;
  color: $text-color;
  text-align: center;
  font-size: 1rem;
  border-radius: 50%;
  @include transition(all 0.1s ease-in-out);

  &:hover,
  &:focus {
    background-color: $bg-dark;
    color: #fff;
  }

  &:last-child {
    margin-right: 0;
  }
}

// Colored
.socials--colored {
  a {
    color: #fff;
  }

  .social-facebook {
    background-color: #39599f;
  }
  .social-twitter {
    background-color: #55acee;
  }
  .social-blogger {
    background-color: #f57d00;
  }
  .social-deviantart {
    background-color: #05cc47;
  }
  .social-digg {
    background-color: #005be2;
  }
  .social-skype {
    background-color: #00aff0;
  }
  .social-soundcloud {
    background-color: #ff3300;
  }
  .social-spotify {
    background-color: #1db954;
  }
  .social-whatsapp {
    background-color: #25d366;
  }
  .social-yahoo {
    background-color: #410093;
  }
  .social-yelp {
    background-color: #af0606;
  }
  .social-youtube {
    background-color: #c61d23;
  }
  .social-snapchat {
    background-color: #fffb01;
  }
  .social-linkedin {
    background-color: #0e76a8;
  }
  .social-pinterest {
    background-color: #c8232c;
  }
  .social-instagram {
    background-color: #e1306c;
  }
  .social-rss {
    background-color: #ef822a;
  }
  .social-pocket {
    background-color: #ef4056;
  }
  .social-email {
    background-color: #333333;
  }
  .social-vkontakte {
    background-color: #45668e;
  }
  .social-reddit {
    background-color: #ff4500;
  }
  .social-dribbble {
    background-color: #ea4c89;
  }
  .social-tumblr {
    background-color: #35465c;
  }
  .social-behance {
    background-color: #1769ff;
  }
  .social-slack {
    background-color: #6ecadc;
  }
  .social-github {
    background-color: #333333;
  }
  .social-flickr {
    background-color: #ff0084;
  }
  .social-xing {
    background-color: #026466;
  }
  .social-vimeo {
    background-color: #1ab7ea;
  }
  .social-facebook-messenger {
    background-color: #0084ff;
  }
  .social-viber {
    background-color: #8f5db7;
  }
  .social-telegram {
    background-color: #0088cc;
  }
  .social-line {
    background-color: #00c300;
  }
}
