/* KargoSubeleri A1.7.1 — calculator-only modernization.
   Existing site header/footer/theme intentionally preserved. */

.ks-price-v2 .list-cargo {
  overflow: hidden;
}

.ks-price-v2 .ks-help {
  color: #6f7882;
  font-size: 13px;
  line-height: 1.45;
}

.ks-price-v2 .ks-package-box {
  border: 1px solid #e3e8ed;
  background: #fafbfd;
  padding: 16px;
  margin-bottom: 12px;
}

.ks-price-v2 .ks-package-box label {
  display: block;
  margin-bottom: 7px;
}

.ks-input-unit {
  position: relative;
}

.ks-input-unit input {
  padding-right: 42px;
}

.ks-input-unit span {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6f7882;
  font-size: 13px;
  pointer-events: none;
}

.ks-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #e3e8ed;
  padding-top: 18px;
  margin-top: 4px;
  margin-bottom: 10px;
}

.ks-selected-count {
  color: #145faf;
  font-weight: 700;
  white-space: nowrap;
}

.ks-carrier-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ks-carrier-slot {
  min-width: 0;
}

.ks-carrier-slot .custom-select {
  width: 100%;
}

.ks-validation {
  min-height: 22px;
  margin-top: 12px;
  font-size: 13px;
  color: #b42318;
}

.ks-compare-btn {
  width: 100%;
  border: 0;
  background: #145faf;
  color: #fff;
  min-height: 52px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  border-radius: 2px;
}

.ks-compare-btn:hover,
.ks-compare-btn:focus {
  background: #0d4f95;
}

.ks-compare-btn:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.ks-results {
  margin-top: 18px;
}

.ks-results-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 12px;
}

.ks-results-head h2 {
  margin: 0 0 3px;
  color: #145faf;
  font-size: 25px;
}

.ks-results-head p {
  margin: 0;
  color: #6f7882;
}

.ks-results-edit {
  border: 1px solid #cdd7e1;
  background: #fff;
  color: #145faf;
  padding: 9px 12px;
  cursor: pointer;
}

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

.ks-result-card {
  border: 1px solid #e0e5ea;
  background: #fff;
  min-width: 0;
}

.ks-result-card__head {
  padding: 14px 15px 10px;
  border-bottom: 1px solid #eef1f4;
}

.ks-result-card__carrier {
  font-weight: 700;
  color: #232a31;
}

.ks-result-card__body {
  padding: 15px;
}

.ks-result-card__label {
  font-size: 13px;
  color: #6f7882;
  margin-bottom: 2px;
}

.ks-result-card__total {
  font-size: 28px;
  color: #145faf;
  font-weight: 800;
  line-height: 1.1;
}

.ks-result-card__meta {
  margin-top: 9px;
  color: #6f7882;
  font-size: 12px;
  line-height: 1.45;
}

.ks-result-card__note {
  margin-top: 10px;
  padding: 9px 10px;
  background: #f7f9fb;
  font-size: 12px;
  line-height: 1.45;
}

.ks-result-card--unavailable .ks-result-card__total {
  color: #6f7882;
  font-size: 19px;
}

.ks-result-card details {
  border-top: 1px solid #eef1f4;
  padding: 10px 15px 13px;
}

.ks-result-card summary {
  cursor: pointer;
  color: #145faf;
  font-weight: 700;
}

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

@media (max-width: 767.98px) {
  .ks-price-v2 .row.p-4 {
    padding: 18px !important;
  }

  .ks-price-v2 .ks-district-field {
    padding-top: 0;
  }

  .ks-carrier-slots,
  .ks-result-grid {
    grid-template-columns: 1fr;
  }

  .ks-carrier-slots {
    gap: 8px;
  }

  .ks-carrier-slot .custom-select {
    min-height: 52px;
  }

  .ks-compare-btn {
    min-height: 56px;
    font-size: 18px;
  }

  .ks-results-head {
    display: block;
  }

  .ks-results-edit {
    width: 100%;
    margin-top: 10px;
  }

  .ks-result-card__head,
  .ks-result-card__body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .ks-result-card__total {
    font-size: 31px;
  }
}

/* A1.7.1 v1.1 — SEO / trust / freshness layer */
.ks-seo-intro {
  margin: 0 0 14px;
  color: #3f4851;
  line-height: 1.6;
}

.ks-seo-intro p {
  margin: 0 0 8px;
}

.ks-trust-line {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px 7px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid #dce4eb;
  background: #f8fafc;
  color: #44505b;
  font-size: 12px;
  line-height: 1.4;
}

.ks-carrier-slots--single {
  grid-template-columns: minmax(0, 1fr);
}

.ks-carrier-select--fixed {
  font-weight: 700;
  background-color: #f8fafc;
}

.ks-seo-section {
  margin: 22px 0 0;
  padding: 20px;
  border: 1px solid #e0e6ec;
  background: #fff;
  line-height: 1.65;
}

.ks-seo-section h2 {
  margin: 0 0 12px;
  color: #145faf;
  font-size: 23px;
  line-height: 1.3;
}

.ks-seo-section p {
  margin: 0 0 12px;
  color: #3f4851;
}

.ks-carrier-seo-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.ks-carrier-seo-link {
  display: block;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid #dce4eb;
  color: #27313a;
  background: #fafbfd;
  text-decoration: none;
}

.ks-carrier-seo-link:hover,
.ks-carrier-seo-link:focus {
  border-color: #145faf;
  text-decoration: none;
}

.ks-carrier-seo-link strong,
.ks-carrier-seo-link span {
  display: block;
}

.ks-carrier-seo-link strong {
  color: #145faf;
  margin-bottom: 5px;
}

.ks-carrier-seo-link span {
  color: #6f7882;
  font-size: 12px;
  line-height: 1.45;
}

.ks-source-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.ks-source-card > div {
  border: 1px solid #dce4eb;
  background: #f8fafc;
  padding: 12px 13px;
}

.ks-source-card strong,
.ks-source-card span {
  display: block;
}

.ks-source-card strong {
  color: #6f7882;
  font-size: 12px;
  margin-bottom: 2px;
}

.ks-source-card span {
  color: #27313a;
  font-weight: 700;
}

.ks-method-note {
  font-size: 13px;
  color: #6f7882 !important;
}

.ks-results-compare-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  margin-top: 12px;
  padding: 12px 16px;
  border: 1px solid #e6c54f;
  border-radius: 2px;
  background: #fff3bf;
  color: #27313a;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}

.ks-results-compare-cta:hover,
.ks-results-compare-cta:focus {
  background: #ffe89a;
  border-color: #d9b437;
  color: #1f2730;
  text-decoration: none;
}

.ks-faq-item {
  border-top: 1px solid #e5e9ed;
  padding: 12px 0;
}

.ks-faq-item:first-of-type {
  border-top: 0;
}

.ks-faq-item summary {
  cursor: pointer;
  color: #27313a;
  font-weight: 700;
  line-height: 1.45;
}

.ks-faq-item p {
  margin: 9px 0 0;
}

@media (max-width: 767.98px) {
  .ks-seo-section {
    padding: 16px;
  }

  .ks-seo-section h2 {
    font-size: 21px;
  }

  .ks-carrier-seo-links,
  .ks-source-card {
    grid-template-columns: 1fr;
  }

  .ks-trust-line {
    display: flex;
  }
}

/* A1.7.2 — live contract result states */
.ks-result-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ks-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef4fa;
  color: #44505b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.ks-status--direct {
  background: #eef8f0;
  color: #28713a;
}

.ks-status--estimate {
  background: #fff7d6;
  color: #795d00;
}

.ks-status--unavailable {
  background: #f3f4f6;
  color: #616b75;
}

.ks-result-card--loading .ks-result-card__total {
  color: #6f7882;
  font-size: 19px;
}

.ks-result-details {
  border-top: 1px solid #eef1f4;
  padding: 10px 15px 13px;
}

.ks-result-details summary {
  cursor: pointer;
  color: #145faf;
  font-weight: 700;
}

.ks-breakdown {
  margin-top: 10px;
}

.ks-breakdown__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid #f0f2f4;
  font-size: 12px;
}

.ks-breakdown__row:last-child {
  border-bottom: 0;
}

.ks-breakdown__row strong {
  white-space: nowrap;
}

.ks-result-disclosures {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #eef1f4;
}

.ks-result-disclosures p {
  margin: 0 0 7px;
  color: #6f7882;
  font-size: 12px;
  line-height: 1.45;
}

.ks-result-disclosures p:last-child {
  margin-bottom: 0;
}

/* PTT verified delivery and 100+ source-conflict presentation */
.ks-ptt-warning {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #f2d58a;
  border-radius: 12px;
  background: #fff4d6;
  color: #684714;
}

.ks-ptt-warning__title {
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 800;
}

.ks-ptt-warning__text {
  font-size: 12px;
  line-height: 1.55;
}

.ks-result-card--ptt-heavy {
  border-color: #eba33d;
}

.ks-ptt-heavy-title {
  color: #754b12;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.ks-ptt-heavy-copy {
  margin: 7px 0 14px;
  color: #684714;
  font-size: 13px;
  line-height: 1.55;
}

.ks-ptt-detail-cta,
.ks-ptt-official-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 12px;
  background: #ffd75e;
  color: #4f3b00;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.ks-ptt-detail-cta:hover,
.ks-ptt-detail-cta:focus,
.ks-ptt-official-link:hover,
.ks-ptt-official-link:focus {
  background: #ffcd32;
  color: #3d2d00;
  text-decoration: none;
}

.ks-ptt-official-link {
  margin-top: 12px;
  border: 1px solid #e5c66d;
  background: #fff8df;
}

.ks-ptt-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ks-ptt-source-box {
  display: flex;
  flex-direction: column;
  min-height: 130px;
  padding: 13px;
  border: 1px solid #eda848;
  border-radius: 12px;
  background: #fff0d5;
  color: #684714;
}

.ks-ptt-source-box--tariff {
  border-color: #b97928;
  background: #edb677;
}

.ks-ptt-source-box span {
  font-size: 12px;
  font-weight: 800;
}

.ks-ptt-source-box strong {
  margin-top: 10px;
  font-size: 23px;
}

.ks-ptt-source-box small {
  margin-top: auto;
  padding-top: 10px;
  font-size: 10px;
  line-height: 1.4;
}

@media (max-width: 767.98px) {
  .ks-result-card__head {
    align-items: flex-start;
  }

  .ks-status {
    max-width: 48%;
  }

  .ks-ptt-source-grid {
    grid-template-columns: 1fr;
  }

  .ks-ptt-source-box {
    min-height: 112px;
  }

  .ks-ptt-warning,
  .ks-ptt-detail-cta,
  .ks-ptt-official-link {
    border-radius: 10px;
  }
}

/* PTT P3: only single-carrier result grids use the full available width. */
.ks-results[data-page-mode="single"] .ks-result-grid {
  grid-template-columns: minmax(0, 1fr);
}

/* A1.6F informational price: non-sortable partial display */
.ks-price-plus { color: #E87512; font-size: 1em; font-weight: 800;
  white-space: nowrap; display: inline; margin-left: 0.12em; }
.ks-result-card__total { white-space: nowrap; }


/* FINAL LOCAL — Parasal sonuc standardi */

.ks-result-card:not(.ks-result-card--unavailable):not(.ks-result-card--loading) .ks-result-card__total,
.ks-result-card--unavailable:has(.ks-price-plus) .ks-result-card__total,
.ks-result-card--unavailable:has(.ks-dhl-standard-note) .ks-result-card__total {
    color: #145faf;
    font-size: 21px;
    font-weight: 900;
    background-color: #f9f9e2;
}

/* Onaylanan turuncu + isareti */
.ks-result-card__total .ks-price-plus {
    color: #FD9026;
    font-size: 1.20em;
    font-weight: 900;
    margin-left: 0.12em;
    display: inline-block;
    white-space: nowrap;
    vertical-align: baseline;
}
