/* PDF alanı: form ID'sinden bağımsız ortak stiller. */
.gform_footer:has(.chery-terms),
.gform_page_footer:has(.chery-terms) {
  flex-wrap: wrap;
}

.chery-terms {
  width: 100%;
  grid-column: 1 / -1;
  flex-basis: 100%;
  order: -1;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #222;
  font-family: inherit;
}

.chery-terms p {
  margin: 0;
  line-height: 1.5;
  font-size: 14px;
}

.chery-terms__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
}

/* Kalın metin ve devamındaki ek, ayrı flex öğeleri olmaz. */
.chery-terms .chery-terms__actions button[data-terms-action] {
  appearance: none !important;
  display: block !important;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px 16px !important;
  border: 1px solid #333 !important;
  border-radius: 4px !important;
  background: #fff !important;
  color: #222 !important;
  font: inherit;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  box-shadow: none !important;
  text-transform: none !important;
  text-align: center;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
  cursor: pointer;
}

.chery-terms .chery-terms__actions button[data-terms-action] strong {
  display: inline !important;
  font-weight: inherit !important;
  color: inherit !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

.chery-terms .chery-terms__actions button[data-terms-action]:disabled {
  opacity: .55;
  cursor: wait;
}

.chery-terms__message {
  color: #8c2929;
}

.chery-terms button:focus-visible,
.chery-terms input:focus-visible {
  outline: 2px solid #222;
  outline-offset: 3px;
}

/* Boş alanlarda PDF bölümü gizlidir; başlık ve açıklama bulunmaz. */
.chery-terms[hidden] {
  display: none !important;
}

.chery-terms__message:empty {
  display: none;
}

.online-reservation-pdf-slot {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

/* Mobilde butonlar alt alta; metinler boşluklardan satıra geçer. */
@media (max-width: 767px) {
  .chery-terms__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .chery-terms .chery-terms__actions button[data-terms-action] {
    flex: 0 0 auto !important;
    width: 100% !important;
  }
}

/* Tema hover/focus stillerinin PDF butonlarının renklerini değiştirmesini önle. */
.chery-terms .chery-terms__actions button[data-terms-action]:hover,
.chery-terms .chery-terms__actions button[data-terms-action]:focus {
  background: #fff !important;
  color: #222 !important;
  border-color: #333 !important;
  box-shadow: none !important;
}

/* PDF HTML alanı, Gravity Forms sütun ayarı dar olsa da tam satırı kullanır.
 * Bayi/il select alanlarının genişliğine ve seçeneklerine müdahale edilmez. */
.gform_wrapper .gfield:has(.online-reservation-pdf-slot),
.gform_wrapper .gfield:has(> .chery-terms) {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: 100% !important;
  flex-basis: 100% !important;
  min-width: 0 !important;
}
.online-reservation-pdf-slot,
.chery-terms {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
}
.chery-terms .chery-terms__actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  width: 100% !important;
  gap: 10px !important;
}
.chery-terms .chery-terms__actions button[data-terms-action] {
  display: block !important;
  flex: 0 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 10px 16px !important;
  border: 1px solid #333 !important;
  border-radius: 4px !important;
  background: #fff !important;
  color: #222 !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
  text-align: center !important;
  text-transform: none !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
  box-shadow: none !important;
}
@media (max-width: 767px) {
  .chery-terms .chery-terms__actions {
    flex-direction: column !important;
  }
  .chery-terms .chery-terms__actions button[data-terms-action] {
    width: 100% !important;
    flex: 0 0 auto !important;
  }
}
