/* style.css */
/* Buttons */
.vts-form .button-group {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}
.vts-form .form-submit-btn {
  flex: 1;
  padding: 10px 0;
  background-color: #0073aa;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}
.vts-form .form-submit-btn:hover {
  background-color: #005b8e;
}

.vts-form {
  max-width: 940px;
  margin: 40px auto;
  padding: 10px;
  font-family: "Inter", "Segoe UI", "Helvetica Neue", sans-serif;
  color: #333;
  line-height: 1.6;
  letter-spacing: 0.01em;
  font-size: 15px;
}

/* Theme compatibility: prevent theme CSS from breaking form layout */
.vts-form,
.vts-form * {
  box-sizing: border-box !important;
}
.vts-form input,
.vts-form select,
.vts-form textarea,
.vts-form button {
  font-family: inherit !important;
}
.vts-form input,
.vts-form select,
.vts-form textarea {
  float: none !important;
  max-width: 100% !important;
}

.vts-form h1,
.vts-form h2,
.vts-form h3,
.vts-form h4,
.vts-form h5 {
  font-family: "Inter", "Segoe UI", "Helvetica Neue", sans-serif;
  color: #1f3b2d;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.vts-form p,
.vts-form label,
.vts-form span,
.vts-form div {
  color: #4a4a4a;
  font-family: "Inter", "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 10px;
}

.radio-card-inner p,
.payment-type .radio-card-inner p {
  color: #666;
}

.radio-card-inner .title {
  font-size: 16px;
}

.radio-card-inner .price {
  font-size: 20px;
  font-weight: 500;
}

.radio-card-inner .description {
  font-size: 12px;
}
.form-submit-note,
.quick-tags span,
.tooltip-content {
  font-size: 13px;
  color: #666;
}

.address-section,
.address-section-2,
.city-column1 {
  background: #fdfdfd;
  border: 1px solid #e3e7ec;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  padding: 24px;
  margin-bottom: 24px;
  width: 100%;
  box-sizing: border-box;
}

.vts-form h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 0;
}

.vts-form input[type="text"],
.vts-form input[type="email"],
.vts-form input[type="tel"],
.vts-form input[type="number"],
.vts-form input[type="date"],
.vts-form input[type="time"],
.vts-form textarea,
.vts-form number,
.vts-form pickup_date,
.vts-form pickup_time {
  width: 100% !important;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid #d8ddd8;
  border-radius: 10px;
  background-color: #f9fbf9;
  /*   margin-bottom: 0; */
  box-sizing: border-box;
  display: block;
}

/* Some themes apply extra min-height/line-height/backgrounds on email inputs.
   Force a consistent height so the grid doesn't break. */
.vts-form input[type="email"] {
  height: 46px !important;
  min-height: 46px !important;
  line-height: 1.2 !important;
  background-image: none !important;
}

.vts-form input:focus,
.vts-form textarea:focus,
.vts-form select:focus {
  border-color: #8bbf9f;
  box-shadow: 0 0 0 2px #dcefe7;
  outline: none;
}

.vts-form textarea {
  min-height: 60px;
  max-height: 70px;
  resize: vertical;
}

/* Keep phone inputs consistent across themes */
.phone_container {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 0;
}
.phone_dial_select {
  min-width: 110px;
  max-width: 110px !important;
  width: 110px !important;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid #d8ddd8;
  border-radius: 10px;
  background-color: #f9fbf9;
  box-sizing: border-box;
  display: block;
}
.phone_input {
  flex: 1;
}

.phone_container input {
  margin-bottom: 0 !important;
  font-size: 15px;
  border-radius: 10px;
  border: 1px solid #d8ddd8;
  background-color: #f9fbf9;
}

.info-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}
.info-row > * {
  margin-bottom: 0 !important;
}
.execvitr-notes-box {
  grid-column: 1 / -1;
}

/* Return booking toggle (more visible) */
.execvitr-return-toggle {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px dashed #cfe3d9;
  border-radius: 12px;
  background: #f5fbf7;
}
.execvitr-return-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  user-select: none;
}
.execvitr-return-label input[type="checkbox"] {
  margin-top: 3px;
}
.execvitr-return-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.execvitr-return-title {
  font-weight: 700;
}
.execvitr-return-sub {
  font-size: 12px;
  opacity: 0.75;
}

/* Return date & time side-by-side */
.execvitr-return-datetime {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) {
  .execvitr-return-datetime {
    grid-template-columns: 1fr 1fr;
  }
}

.delivery-type-options {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.radio-card-head {
  flex: 1;
  max-width: 300px;
  cursor: pointer;
}

.radio-card {
  flex: 1;
  max-width: 140px;
  cursor: pointer;
}

.radio-card-footer {
  flex: 1;
  max-width: 260px;
  cursor: pointer;
}

.vts-car-card {
  cursor: pointer;
}

.radio-card-head input[type="radio"] {
  display: none;
}

.radio-card input[type="radio"] {
  display: none;
}

.radio-card-footer input[type="radio"] {
  display: none;
}

.vts-car-card input[type="radio"] {
  display: none;
}

.radio-card-inner {
  background: #f4faf6;
  border: 2px solid #c8e0d6;
  border-radius: 12px;
  padding: 6px;
  text-align: center;
  transition:
    border-color 0.3s,
    background 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* DİKEY ORTALAMA */
  height: 100%; /* Yüksekliği kapsaması için */
}

.radio-card-inner svg {
  width: 24px;
  height: 24px;
  margin-bottom: 8px;
}

.radio-card-inner h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.radio-card-inner p {
  font-size: 16px;
  color: #555;
  margin: 5px 0;
  line-height: 1.4;
}

.radio-card-inner h5 {
  font-size: 20px;
  margin-top: auto;
}

.radio-card input[type="radio"]:checked + .radio-card-inner,
.radio-card-head input[type="radio"]:checked + .radio-card-inner,
.vts-car-card input[type="radio"]:checked + .radio-card-inner,
.radio-card-footer input[type="radio"]:checked + .radio-card-inner {
  border-color: #60b88d;
  background-color: #ecf8f1;
  box-shadow: 0 0 0 3px #c6efd8;
}

.payment-type .radio-card-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  background: #fafafa;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 14px 18px;
  transition:
    border-color 0.2s,
    background-color 0.2s;
}

.payment-type .radio-card-inner img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
}

.payment-type .radio-card-inner h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.payment-type .radio-card-inner p {
  font-size: 13px;
  color: #888;
  margin: 2px 0 0 0;
}

.payment-type .radio-card-inner .text-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* checked state is handled by the generic 
   .radio-card-footer input:checked + .radio-card-inner selector above */
.payment-type input[type="radio"]:checked + .radio-card-inner {
  border-color: #60b88d;
  background-color: #ecf8f1;
}

.payment-type input[type="radio"]:checked + .radio-card-inner img {
  filter: none;
  opacity: 1;
}

/* Payment type layout: compact and stable across themes */
.payment-type {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
  align-items: stretch;
}
.payment-type .radio-card-footer {
  width: auto;
  max-width: none;
}
.payment-type .radio-card-inner {
  width: 100%;
  max-width: 300px;
  min-height: 60px;
  padding: 12px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  box-sizing: border-box;
}
.payment-type .radio-card-inner img {
  width: 28px;
  height: 28px;
}
.payment-type .radio-card-label {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  text-align: right;
}
@media (max-width: 520px) {
  .payment-type .radio-card-inner {
    max-width: 100%;
  }
}

.weight-options {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.quick-tags {
  margin-top: 8px;
}
.quick-tags span {
  display: inline-block;
  background: #eff4f1;
  padding: 5px 10px;
  margin-right: 6px;
  font-size: 13px;
  border-radius: 8px;
}

/* ==== NEW: Step Indicator (enhanced) ==== */
.form-wrapper {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}
.step-indicator {
  --accent: #29a36a;
  --muted: #a1cdb4;
  --line: #cfe7dc;
  --circle-size: 34px;
  --progress: 0%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f7fbf9;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.step-indicator .circle {
  width: var(--circle-size);
  height: var(--circle-size);
  background: #fff;
  border: 2px solid var(--muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #4a9f86;
  font-size: 15px;
  transition: all 0.2s ease;
}
.step-indicator .circle.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(41, 163, 106, 0.12);
}
.step-indicator .line {
  position: relative;
  flex: 1;
  max-width: 120px;
  height: 3px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}
.step-indicator .line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent));
  width: var(--progress);
  transition: width 0.35s ease;
}

/* grid bölümü aynı kalsın */
.form-sections {
  width: 100%;
  box-sizing: border-box;
}

/* Footer */
.form-footer-block {
  margin-top: 36px;
  background: #fbfdfc;
  border-radius: 14px;
  box-shadow: 0 1px 6px #e4e4e4;
  padding: 15px 20px;
  margin-left: auto;
  margin-right: auto;
  font-family: "Segoe UI", sans-serif;
}

.order-total-block {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 26px;
  margin-bottom: 20px;
  color: #222;
  font-weight: 500;
}

.dv-order-total-price__value span {
  font-size: 26px;
  font-weight: 700;
  color: #1a4338;
}

.tooltip-icon {
  background: #5ebc99;
  color: #fff;
  width: 20px;
  height: 20px;
  display: inline-block;
  border-radius: 50%;
  text-align: center;
  font-size: 13px;
  font-family: Arial, sans-serif;
  cursor: pointer;
  line-height: 20px;
}

.order-total-tooltip {
  position: relative;
  display: inline-block;
}

.tooltip-content {
  display: none;
  position: absolute;
  left: 0;
  top: 28px;
  background: #333;
  color: #fff !important;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 14px;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  z-index: 9999;
}

.order-total-tooltip:hover .tooltip-content,
.order-total-tooltip:focus-within .tooltip-content {
  display: block;
}

.form-submit-block {
  margin: 20px 0 14px 0;
}

.form-submit-btn {
  width: 256px;
  background: #1a4338;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  padding: 10px 32px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.form-submit-btn:hover {
  background: #145a46;
}

.form-submit-note,
.quick-tags span,
.tooltip-content {
  font-size: 13px;
  color: #666;
}

.form-submit-note a {
  font-weight: 500;
  text-decoration: underline;
}

.action-link {
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
  display: inline-block;
  padding: 0 !important;
}

@media (max-width: 768px) {
  .form-sections.vts-grid-2 {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
  }

  .address-section,
  .address-section-2 {
    padding: 5px !important;
  }

  .info-row,
  .execvitr-return-datetime {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .info-row--name,
  .info-row--counts,
  .info-row--datetime,
  .info-row--return {
    grid-column: 1 / -1;
  }

  .cars-options {
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .phone_container {
    gap: 6px;
  }

  .phone_dial_select {
    min-width: 92px;
    max-width: 92px !important;
    width: 92px !important;
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 768px) {
  .vts-form {
    padding: 5px;
  }
  .package-section {
    padding: 16px;
    margin-bottom: 20px;
  }

  .package-section h3 {
    font-size: 18px;
    margin-bottom: 14px;
  }

  .weight-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 0;
  }

  .weight-options .radio-card {
    max-width: 100%;
  }

  .weight-options .radio-card-inner p {
    font-size: 14px;
    padding: 8px;
    text-align: center;
  }

  .radio-card-inner p {
    font-size: 14px;
    padding: 8px;
  }

  .radio-card-inner img {
    /* 	height:28px; */
  }

  .quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
  }

  .quick-tags span {
    padding: 5px 10px;
    border-radius: 6px;
  }

  .form-footer-block {
    padding: 16px;
    margin-top: 24px;
  }

  .order-total-block {
    font-size: 20px;
    gap: 8px;
    margin-bottom: 0;
  }

  .tooltip-icon {
    width: 18px;
    height: 18px;
    font-size: 12px;
    line-height: 18px;
  }

  .form-submit-btn {
    width: 100%;
    font-size: 15px;
    padding: 10px;
  }

  .form-submit-note {
    font-size: 12px;
    margin-top: 12px;
  }

  .form-submit-note a {
    font-size: 12px;
  }

  .action-link {
    font-size: 13px;
    margin-top: 10px;
  }
}

@media (max-width: 768px) {
  .form-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    width: 100%;
  }

  .step-indicator {
    flex-direction: row;
    justify-content: center;
    margin: 0 auto;
  }

  .step-indicator .line {
    width: 100px;
    height: 2px;
    background-color: #cfe7dc;
    margin: 0 8px;
  }

  .step-indicator .circle {
    width: 24px;
    height: 24px;
    font-size: 13px;
    line-height: 22px;
  }
}

/* Genel */
.cc-header-bar {
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-radius: 8px;
  margin: 20px 0;
  gap: 24px;
  color: #fff;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Sol */
.cc-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cc-header-brand img {
  width: 38px;
  height: 38px;
}
.cc-header-brand .version {
  font-size: 12px;
  color: #cbd5e1;
}

/* Orta Menü */
.cc-header-nav {
  display: flex;
  gap: 28px;
  flex: 1;
}
.cc-header-nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  transition: 0.15s;
}
.cc-header-nav a:hover,
.cc-header-nav a.active {
  background: #334155;
  color: #fff;
}
.cc-header-nav .pro-badge {
  background: #3b82f6;
  color: white;
  font-size: 10px;
  font-weight: bold;
  border-radius: 6px;
  padding: 2px 6px;
  margin-left: 4px;
}

/* Dropdown */
.cc-header-actions {
  position: relative;
}
.cc-dropdown {
  position: relative;
}
.cc-dropdown-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
}
.cc-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 36px;
  background: #334155;
  border-radius: 6px;
  padding: 6px 0;
  z-index: 9999;
  min-width: 160px;
}
.cc-dropdown-menu a {
  display: block;
  padding: 8px 14px;
  text-decoration: none;
  color: #fff;
  font-size: 13px;
}
.cc-dropdown-menu a:hover {
  background: #475569;
}
.cc-dropdown:hover .cc-dropdown-menu {
  display: block;
}
/* Ortak stil */
.vts-form input[type="date"],
.vts-form input[type="time"] {
  margin: 0px;
  appearance: auto; /* Picker işlevini koru */
  -webkit-appearance: auto;
  -moz-appearance: auto;
  border: 1px solid #d6e8df;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: #333;
  width: 100%;
  box-sizing: border-box;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  cursor: pointer;
}

/* Hover */
.vts-form input[type="date"]:hover,
.vts-form input[type="time"]:hover {
  border-color: #29a36a;
}

/* Focus efekti */
.vts-form input[type="date"]:focus,
.vts-form input[type="time"]:focus {
  outline: none;
  border-color: #29a36a;
  box-shadow: 0 0 0 3px rgba(41, 163, 106, 0.15);
}

/* Takvim ve saat ikonları */
.vts-form input[type="date"]::-webkit-calendar-picker-indicator,
.vts-form input[type="time"]::-webkit-calendar-picker-indicator {
  opacity: 0.8;
  cursor: pointer; /* İkon da tıklanabilir */
  background-color: transparent;
}

/* Mobil uyumluluk */
@media (max-width: 600px) {
  .vts-form input[type="date"],
  .vts-form input[type="time"] {
    font-size: 16px;
  }
}

/* layout */
.vts-grid-2 {
  display: grid;
  gap: 16px;
}
@media (min-width: 960px) {
  .vts-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* cars */
.cars-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.vts-car-card {
  cursor: pointer;
  min-width: 0;
}
.vts-car-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.vts-car-card .radio-card-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  height: 100%;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #d6e8df;
  background: #f3fbf7;
  transition:
    box-shadow 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
.vts-car-card.selected .radio-card-inner {
  border-color: #29a36a;
  box-shadow: 0 0 0 3px rgba(41, 163, 106, 0.12);
}
.vts-car-thumb {
  width: 100%;
  height: 140px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}
.vts-car-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}
.vts-car-meta h4 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.vts-car-price {
  font-size: 16px;
  line-height: 1.3;
}
.vts-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  font-size: 13px;
}
.vts-badge {
  background: #f6fffa;
  border: 1px solid #b7e0cd;
  border-radius: 999px;
  padding: 5px 8px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vts-services {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 11px;
  opacity: 0.9;
}
.vts-service {
  background: #eef6ff;
  border: 1px solid #c7ddf7;
  border-radius: 999px;
  padding: 4px 8px;
  line-height: 1.2;
}
@media (max-width: 1024px) {
  .cars-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .vts-car-thumb {
    height: 126px;
  }
}
@media (max-width: 768px) {
  .cars-options {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .vts-car-card .radio-card-inner {
    padding: 12px;
    gap: 10px;
    border-radius: 14px;
  }
  .vts-car-thumb {
    height: 160px;
    border-radius: 10px;
  }
  .vts-car-meta {
    gap: 7px;
  }
  .vts-car-meta h4 {
    font-size: 18px;
    line-height: 1.3;
  }
  .vts-car-price {
    font-size: 14px;
  }
  .vts-badges {
    gap: 8px;
    font-size: 12px;
  }
  .vts-badge {
    padding: 5px 8px;
  }
  .vts-services {
    gap: 6px;
    font-size: 11px;
  }
  .vts-service {
    padding: 4px 8px;
  }
}

/* info grid */
.info-grid {
  display: grid;
  gap: 12px;
}
@media (min-width: 780px) {
  .info-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.info-grid .col-span-2 {
  grid-column: 1/-1;
}
.input-with-icon {
  position: relative;
}
.input-with-icon input {
  padding-left: 36px;
}
.input-with-icon .icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.6;
}

/* total */
.dv-order-total-price__value .brand-note {
  font-size: 12px;
  opacity: 0.85;
  margin-left: 8px;
}

.distance-warning {
  display: none;
  color: #cc0000;
  font-weight: 500;
  margin-top: 10px;
}

/* --- Cars table: desktop defaults --- */
#vts-cars-table .vts-image-field .vts-image-preview img {
  max-width: 80px;
  height: auto;
  border: 1px solid #ddd;
  padding: 2px;
  border-radius: 4px;
}
#vts-cars-table input[type="text"],
#vts-cars-table input[type="number"] {
  max-width: 100%;
}

/* --- MOBILE: WP admin breakpoint --- */
@media (max-width: 782px) {
  /* tabloyu karta çevir */
  #vts-cars-table {
    display: block;
    width: 100%;
  }
  #vts-cars-table thead {
    display: none !important;
  }
  #vts-cars-table tbody {
    display: grid;
    gap: 12px;
  }
  #vts-cars-table tr.vts-car-row {
    display: block;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
  }

  /* hücreleri etiket + alan olarak dikeyle */
  #vts-cars-table td {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 8px 0;
    border: 0 !important;
  }

  /* etiketleri :before ile göster (data-label içeriğini kullanır) */
  #vts-cars-table td::before {
    content: attr(data-label);
    display: block;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
  }

  /* inputlar full width */
  #vts-cars-table input[type="text"],
  #vts-cars-table input[type="number"] {
    width: 100%;
    box-sizing: border-box;
  }

  /* image alanı dikey hizalı */
  #vts-cars-table .vts-image-field {
    display: grid;
    gap: 8px;
    align-items: start;
  }
  #vts-cars-table .vts-image-preview {
    justify-self: start;
  }

  /* aksiyon butonları tek satır taşmasın */
  #vts-cars-table .vts-remove-row {
    width: 100%;
    justify-content: center;
  }

  /* alt butonlar */
  #vts-add-row {
    width: 100%;
  }
}

@media (max-width: 782px) {
  .cc-header-bar {
    display: grid;
    gap: 10px;
  }
  .cc-header-actions .cc-dropdown-toggle {
    width: 100%;
  }
  .wrap > h1 {
    font-size: 20px;
  }
  .button,
  .button-primary,
  .button-secondary {
    height: auto;
    line-height: 1.4;
    padding: 8px 12px;
  }
  .submit .button-primary,
  #vts-add-row {
    width: 100%;
  }
}

.vts-narrow-wrap {
  max-width: 700px;
}

/* Form alanları */
.vts-wide-input {
  width: 400px;
}
.vts-desc-list {
  margin-top: 8px;
  padding-left: 20px;
  list-style: disc;
}

/* Cars tablosu */
#vts-cars-table {
  margin-top: 12px;
}
#vts-cars-table th {
  width: 20%;
}

/* Görsel alanı */
.vts-image-preview {
  margin-bottom: 6px;
}
.vts-thumb {
  max-width: 80px;
  height: auto;
  border: 1px solid #ddd;
  padding: 2px;
  border-radius: 4px;
}
.vts-remove-image {
  margin-left: 6px;
}

/* Orders tablosu */
.vts-td-right {
  text-align: right;
}
.vts-order-details {
  display: none;
  background: #f9f9f9;
}

/* ========== Orders table: responsive ========== */

.vts-table--orders thead {
  display: table-header-group;
}

@media (max-width: 782px) {
  .vts-table--orders {
    border: 0;
  }
  .vts-table--orders thead {
    display: none;
  }
  .vts-table--orders tbody tr.order-summary {
    display: block;
    margin: 50px 0 12px 0;
    border: 4px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
  }
  .vts-table--orders tbody tr.order-summary td {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    text-align: left;
  }
  .vts-table--orders tbody tr.order-summary td:last-child {
    border-bottom: 0;
  }
  .vts-table--orders tbody tr.order-summary td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #334155;
    min-width: 120px; /* görünürlüğü arttırır */
  }

  .vts-order-details > td {
    display: block;
    padding: 12px 14px;
    border: 0;
  }
  .vts-order-details strong {
    display: inline-block;
    min-width: 140px;
    color: #334155;
  }
  .vts-table--orders tbody tr.order-summary td[data-label=" "]::before {
    content: "";
  }
  .vts-table--orders .toggle-details.button {
    width: 36px;
    height: 32px;
    line-height: 30px;
    padding: 0;
    text-align: center;
  }
}

/* Tracking Page */
.vts-container {
  max-width: 780px;
  margin: 64px auto;
  padding: 0 16px;
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Ubuntu,
    Cantarell,
    "Helvetica Neue",
    Arial;
}
.vts-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
}
.vts-header h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}
.vts-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.vts-badge--neutral {
  background: #f6f7f8;
  border-color: #e2e5e9;
  color: #3a3f45;
}
.vts-badge--warning {
  background: #fff8e6;
  border-color: #ffe3a6;
  color: #9a6b00;
}
.vts-badge--info {
  background: #e8f3ff;
  border-color: #c6e0ff;
  color: #1d4ed8;
}
.vts-badge--success {
  background: #eafaf1;
  border-color: #bfe7cf;
  color: #0f8f50;
}
.vts-badge--danger {
  background: #feecec;
  border-color: #f7c2c2;
  color: #b42318;
}

.vts-card {
  background: #fff;
  border: 1px solid #e6e8eb;
  border-radius: 14px;
  padding: 18px 16px;
  margin-top: 14px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.vts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.vts-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fafbfc;
  border: 1px dashed #e7eaee;
  border-radius: 10px;
  padding: 9px;
}
.vts-label {
  font-size: 12px;
  color: #5b616a;
}
.vts-value {
  font-size: 14px;
  color: #0f172a;
  font-weight: 600;
  word-wrap: anywhere;
}
.vts-col-2 {
  grid-column: 1 / -1;
}

.vts-total {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.vts-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vts-total-label {
  font-size: 14px;
  color: #475569;
}
.vts-total-value {
  font-size: 20px;
  font-weight: 700;
}

.vts-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.vts-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid #e2e4e8;
  border-radius: 10px;
  background: #f8fafc;
  font-weight: 600;
  text-decoration: none;
  color: #0f172a;
}
.vts-btn:hover {
  background: #eef2f7;
}
.vts-btn--whatsapp {
  border-color: #b8f0d2;
  background: #eafff4;
}
.vts-btn--whatsapp:hover {
  background: #ddfff0;
}

@media (max-width: 720px) {
  .vts-grid {
    grid-template-columns: 1fr;
  }
  .vts-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .vts-total-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}
/* Tracking Page End */

/* Kart: başlık + çevresi */
.vts-tracking .order-payment {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
.vts-tracking .order-payment > h2 {
  font-size: 18px;
  line-height: 1.3;
  margin: 0 0 14px;
  font-weight: 700;
}

#execvitr-pay-frame {
  display: block;
  width: 100%;
  min-height: 1100px; /* JS mesajı ile güncellenecek */
  border: 0;
}

/* Loader görsel tutarlılık */
#execvitr-loader {
  border-radius: 12px; /* iFrame kartıyla hizalı */
}

/* "Open default payment page" linki */
.vts-tracking .order-payment p a {
  color: #2563eb;
  text-decoration: none;
}
.vts-tracking .order-payment p a:hover {
  text-decoration: underline;
}

/* Özet kartları ile görsel mesafe */
.vts-tracking .vts-total {
  margin-top: 16px;
}

/* Mobil boşluklar */
@media (max-width: 640px) {
  .vts-tracking .order-payment {
    padding: 14px;
  }
}

.vts-car-price {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.375rem;
  align-items: center;
  font-weight: 600;
}
.vts-car-price-amount {
  white-space: nowrap;
}

.execvitr-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0px 0px 24px;
}
@media (min-width: 640px) {
  .execvitr-metrics {
    grid-template-columns: 1fr 1fr;
  }
}
.execvitr-metric {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--execvitr-border, #e5e7eb);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}
.execvitr-metric__icon {
  width: 40px !important;
  height: 40px !important;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--execvitr-border, #e5e7eb);
  font-weight: 700;
  font-size: 20px !important;
}
.execvitr-metric__label {
  font-size: 0.78rem;
  color: #6b7280;
  margin-bottom: 2px;
}
.execvitr-metric__value {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}
.execvitr-metric[data-loading="1"] {
  opacity: 0.6;
}

/* ExecVITR: missing required field highlight */
.execvitr-missing {
  outline: 2px solid rgba(220, 53, 69, 0.6) !important;
  outline-offset: 2px;
}

/* Car short description */
.vts-car-desc {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
  opacity: 0.85;
}

.execvitr-car-desc {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #374151;
  opacity: 0.9;
  text-align: left;
}

.execvitr-notes-box,
.execvitr-notes-box textarea {
  width: 100%;
}

.execvitr-notes-box {
  grid-column: 1 / -1; /* grid kullanıyorsan */
  margin-top: 16px;
}

/* Mobile car card refinement */
@media (max-width: 768px) {
  .cars-options {
    gap: 14px;
  }

  .vts-car-card .radio-card-inner {
    grid-template-columns: 1fr !important;
    gap: 12px;
    align-items: stretch;
    padding: 14px;
    border-radius: 18px;
  }

  .vts-car-thumb {
    width: 100%;
    height: 180px !important;
    border-radius: 14px;
    display: block;
  }

  .vts-car-meta {
    gap: 10px;
    align-items: flex-start;
  }

  .vts-car-meta h4 {
    margin: 0;
    font-size: 21px;
    line-height: 1.25;
    font-weight: 700;
    text-align: left;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .vts-car-price {
    margin-top: 0;
    gap: 6px;
    font-size: 15px;
    line-height: 1.3;
  }

  .vts-car-price-label {
    opacity: 0.8;
  }

  .vts-car-price-amount {
    font-size: 24px;
    font-weight: 700;
  }

  .vts-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .vts-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    background: #f6faf8;
  }

  .execvitr-car-desc {
    margin-top: 0;
    font-size: 13px;
    line-height: 1.45;
  }

  .vts-services {
    gap: 8px;
    width: 100%;
  }

  .vts-service {
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1.25;
  }

  .vts-car-card .select-btn,
  .vts-car-card .button,
  .vts-car-card button,
  .vts-car-card input[type="submit"] {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .vts-car-thumb {
    height: 160px !important;
  }

  .vts-car-meta h4 {
    font-size: 19px;
  }

  .vts-car-price-amount {
    font-size: 22px;
  }

  .vts-badges {
    grid-template-columns: 1fr 1fr;
  }

  .vts-badge,
  .vts-service {
    font-size: 11.5px;
  }
}

@media (max-width: 768px) {
  .vts-form input,
  .vts-form select,
  .vts-form textarea {
    font-size: 16px !important;
  }

  .vts-form input[type="date"],
  .vts-form input[type="time"] {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    -webkit-appearance: none;
  }

  .vts-form .date-time-row > * {
    flex: 1;
    min-width: 0;
  }
}
