/* Free rental templates: /templates and /templates/[slug] */

.rental-template-tool {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 80px;
  scroll-margin-top: 112px;
}

.rental-template-tool__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  justify-content: space-between;
}

.rental-template-tool__fields {
  display: flex;
  flex: 1 1 360px;
  gap: 12px;
}

.rental-template-tool__field {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #454545;
}

.rental-template-tool__field input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  font-size: 16px;
  color: #141414;
  background: #fff;
  border: 1px solid #e2e2de;
  border-radius: 12px;
  outline: none;
  transition: border-color 0.18s ease;
}

.rental-template-tool__field input:focus {
  border-color: #141414;
}

.rental-template-tool__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.rental-template-tool__actions .btn-primary,
.rental-template-tool__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  border-radius: 8px;
}

.rental-template-tool__secondary {
  color: #141414;
  cursor: pointer;
  background: #fff;
  border: 1px solid #e2e2de;
  transition: border-color 0.18s ease;
}

.rental-template-tool__secondary:hover {
  border-color: #141414;
}

.rental-template-tool__doc {
  max-height: 760px;
  overflow: auto;
}

.rental-template-tool__doc .w-richtext h2 {
  padding-top: 0;
  font-size: 1.6rem;
  border-top: 0;
}

.rental-template-tool__disclaimer {
  max-width: 68ch;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #6d6d6d;
}

.rental-template-page__guide {
  margin-bottom: 56px;
}

.rental-template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.rental-template-grid--index {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rental-template-card.features-directory__card.card.link-card.integration {
  height: 100%;
}

.rental-template-card__link {
  margin-top: auto;
}

.rental-template-card.features-directory__card.card.link-card.integration
  .features-directory__card-description {
  margin: 16px 0 28px;
}

.rental-template-page__highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  padding: 0;
  margin: 8px 0 0;
  list-style: none;
}

.rental-template-page__highlights li {
  position: relative;
  padding-left: 26px;
  font-size: 15.5px;
  line-height: 1.5;
  color: #3f3f3f;
}

.rental-template-page__highlights li:before {
  position: absolute;
  top: 0.45em;
  left: 0;
  width: 14px;
  height: 8px;
  content: "";
  border-bottom: 2px solid var(--accent, #c2b067);
  border-left: 2px solid var(--accent, #c2b067);
  transform: rotate(-45deg) translateY(-2px);
}

@media (max-width: 991px) {
  .rental-template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .rental-template-grid,
  .rental-template-grid--index,
  .rental-template-page__highlights {
    grid-template-columns: 1fr;
  }

  .rental-template-tool__fields {
    flex-direction: column;
  }

  .rental-template-tool__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .rental-template-tool__actions .btn-primary {
    grid-column: 1 / -1;
  }

  .rental-template-tool__doc {
    max-height: 560px;
  }
}

@media print {
  body * {
    visibility: hidden;
  }

  .rental-template-tool__doc,
  .rental-template-tool__doc * {
    visibility: visible;
  }

  .rental-template-tool__doc {
    position: absolute;
    top: 0;
    left: 0;
    max-height: none;
    padding: 0;
    overflow: visible;
    border: 0;
    box-shadow: none;
  }
}
