/* ---------------------------------------------------------------------------
 * Encart « Vérifier les disponibilités » de la sidebar des hébergements.
 *
 * Remplace l'ancien widget Booking Partenaires (<ins class="bookingaff">,
 * aid 1600850), inopérant depuis la fermeture du compte. Le bouton pointe sur
 * le lien affilié CJ de l'hébergement, enrichi des dates saisies par le
 * visiteur. Sans JavaScript, il reste le lien affilié simple.
 *
 * Chargé uniquement sur les single ou_dormir, voir gl_cj_enqueue_assets().
 * ------------------------------------------------------------------------- */

.gl-cj-box .gl-cj-title {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-size: 1.125rem;
  font-weight: 600;
}

.gl-cj-dates {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin: 0 -6px;
}

.gl-cj-dates .gl-cj-field {
  -webkit-box-flex: 1;
  -ms-flex: 1 1 0px;
  flex: 1 1 0;
  min-width: 0;
  padding: 0 6px;
}

.gl-cj-field {
  margin-bottom: 14px;
}

.gl-cj-field > label {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #777;
}

.gl-cj-field input,
.gl-cj-field select {
  display: block;
  width: 100%;
  height: 42px;
  padding: 0 10px;
  border: 1px solid #ddd;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  background-color: #fff;
  color: #444;
  font-family: inherit;
  font-size: 14px;
  font-size: 0.875rem;
  line-height: normal;
}

.gl-cj-field input:focus,
.gl-cj-field select:focus {
  border-color: #0054a6;
  outline: none;
  -webkit-box-shadow: 0 0 0 2px rgba(0, 84, 166, 0.15);
  box-shadow: 0 0 0 2px rgba(0, 84, 166, 0.15);
}

/* On ne touche pas à l'appearance des champs date : Chrome et Safari y logent
   l'icône du calendrier natif. Seul le select est redessiné. */
.gl-cj-field select {
  padding-right: 28px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23777777' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.gl-cj-box .gl-cj-go {
  margin-top: 4px;
}

.gl-cj-note {
  margin: 12px 0 0 0;
  font-size: 12px;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #999;
}

@media (max-width: 400px) {
  .gl-cj-dates {
    display: block;
    margin: 0;
  }
  .gl-cj-dates .gl-cj-field {
    padding: 0;
  }
}
