/* YEKTEK checkout refresh — scoped by page-only stylesheet inclusion */

.page-hero {
  margin-top: 18px;
  margin-bottom: 0;
  overflow: hidden;
  border: 1px solid #dfe6ee;
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 20%, rgba(227, 27, 53, .12), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 68%, #fff4f6 100%);
  box-shadow: 0 14px 38px rgba(17, 24, 39, .06);
}

.page-hero__grid {
  min-height: 0 !important;
  padding: 28px 30px !important;
}

.page-hero h1 {
  max-width: 720px;
  margin: 7px 0 8px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #5d6b7e;
  font-size: 15px;
  line-height: 1.6;
}

.page-hero .eyebrow {
  color: #d81731;
}

.checkout-layout {
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  margin-top: 14px;
  padding: 0 0 36px;
}

.checkout-main {
  gap: 12px;
  padding: 0;
}

.checkout-tabs {
  position: relative;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 8px;
  border: 1px solid #dce4ed;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, .055);
}

.checkout-tab {
  position: relative;
  z-index: 1;
  min-height: 50px;
  gap: 9px;
  border: 0;
  border-radius: 11px;
  color: #66758a;
  font-size: 13px;
}

.checkout-tab:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -8px;
  width: 16px;
  height: 1px;
  background: #dce4ed;
}

.checkout-tab span {
  width: 28px;
  height: 28px;
  border: 1px solid #dce4ed;
  background: #f5f7fa;
  color: #65748a;
  font-weight: 900;
}

.checkout-tab.is-current {
  border: 0;
  background: #fff0f2;
  box-shadow: inset 0 0 0 1px rgba(227, 27, 53, .22);
  color: #d81731;
}

.checkout-tab.is-done {
  background: #f1fbf6;
}

.step-card,
.step-card.is-active {
  border: 1px solid #dce4ed;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(17, 24, 39, .065);
}

.step-card.is-active {
  border-color: rgba(227, 27, 53, .28);
}

.step-card summary {
  min-height: 64px;
  padding: 0 20px;
  border-bottom: 0;
  background: linear-gradient(180deg, #fff, #fbfcfd);
  font-size: 17px;
}

.step-no {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.step-body {
  padding: 20px;
  border-top: 1px solid #e5eaf0;
  background: #fff;
}

.step-intro {
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 0;
  border-left: 3px solid #e31b35;
  border-radius: 0 12px 12px 0;
  background: #f7f9fb;
}

.step-intro b {
  color: #151d28;
  font-size: 16px;
}

.invoice-type,
.customer-mode {
  gap: 12px;
}

.choice-card {
  min-height: 92px;
  padding: 15px;
  border: 1px solid #dce4ed;
  border-radius: 14px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.choice-card:hover {
  border-color: #bbc8d6;
  transform: translateY(-1px);
}

.choice-card.is-selected {
  border-color: rgba(227, 27, 53, .5);
  background: #fff7f8;
  box-shadow: 0 8px 20px rgba(227, 27, 53, .07);
}

.invoice-fields-panel,
.customer-panel {
  margin-top: 14px;
  padding: 17px;
  border: 1px solid #e1e7ee;
  border-radius: 14px;
  background: #f8fafc;
}

.invoice-fields-panel--common {
  background: #fff;
}

.mini-label {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 10px;
  border-radius: 999px;
  background: #151d28;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .02em;
}

.form-grid {
  gap: 13px;
  margin-top: 14px;
}

.field {
  gap: 7px;
  color: #445268;
}

.field input,
.field select,
.field textarea {
  min-height: 48px;
  border-color: #cfd8e3;
  border-radius: 10px;
  background: #fff;
  color: #17202b;
  font-size: 14px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.field textarea {
  min-height: 104px;
  padding-top: 12px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: #e31b35;
  box-shadow: 0 0 0 3px rgba(227, 27, 53, .11);
}

.order-line.cart-line {
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 16px;
  border: 1px solid #e0e6ed;
  border-radius: 14px;
  background: #fbfcfd;
}

.order-line.cart-line img {
  width: 112px;
  height: 94px;
  padding: 6px;
  border-radius: 11px;
  background: #fff;
}

.order-line.cart-line > strong {
  display: inline-flex;
  min-width: 100px;
  min-height: 50px;
  align-self: center;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: #111925;
  color: #fff;
  font-size: 19px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
  box-shadow: 0 7px 16px rgba(17, 25, 37, .12);
  white-space: nowrap;
}

.cart-controls {
  margin-top: 12px;
}

.step-actions {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e8edf2;
}

.step-actions a,
.step-actions button {
  min-height: 48px;
  border-radius: 11px;
}

.step-next--primary,
.checkout-pay-cta .step-next--primary {
  background: #e31b35;
  box-shadow: 0 10px 24px rgba(227, 27, 53, .2);
}

.side-progress {
  top: 88px;
  padding: 18px;
  border: 1px solid #dce4ed;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(17, 24, 39, .08);
}

.side-progress h2 {
  position: relative;
  margin: 0 0 15px;
  padding-bottom: 13px;
  border-bottom: 1px solid #e4e9ef;
  font-size: 21px;
}

.side-progress h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 48px;
  height: 2px;
  background: #e31b35;
}

.summary-product {
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  min-height: 88px;
  padding: 10px;
  border: 1px solid #e2e8ef;
  border-radius: 13px;
  background: #f8fafc;
}

.summary-product img {
  width: 84px;
  height: 68px;
  padding: 4px;
  border-radius: 9px;
  background: #fff;
}

.summary-product b {
  display: block;
  margin-bottom: 5px;
  color: #18212d;
  line-height: 1.3;
}

.summary-total {
  gap: 0;
  margin-top: 12px;
  padding: 5px 14px;
  border-radius: 14px;
  background: #141d28;
}

.summary-total b {
  min-height: 56px;
  padding: 9px 0;
}

.summary-total b + b {
  border-top: 1px solid rgba(255, 255, 255, .13);
}

.summary-total b:first-child span:last-child {
  color: #f5b9c1;
  font-size: 16px;
}

.summary-total b:last-child span:first-child {
  color: #fff;
  font-size: 12px;
}

.summary-total b:last-child span:last-child {
  color: #fff;
  font-size: 22px;
  font-weight: 950;
}

.summary-badges {
  gap: 8px;
  margin-top: 13px;
}

.summary-badges span {
  min-height: 39px;
  padding: 8px 10px;
  border: 1px solid #dce9e2;
  border-radius: 10px;
  background: #f4fbf7;
  color: #275740;
}

.summary-badges i {
  width: 20px;
  color: #138a51;
  text-align: center;
}

.checkout-pay-cta {
  gap: 12px;
}

.checkout-contract {
  min-height: 54px;
  padding: 11px 13px;
  border: 1px solid #dfe5ec;
  border-radius: 11px;
  background: #f8fafc;
}

.checkout-pay-amounts {
  gap: 7px;
  padding: 7px;
  border-radius: 13px;
  background: #141d28;
}

.checkout-pay-amounts b {
  position: relative;
  min-height: 68px;
  padding: 9px 11px 8px;
  border-radius: 9px;
}

.checkout-pay-amounts span {
  color: #aeb9c7;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.checkout-pay-amounts strong {
  font-size: 21px;
  letter-spacing: -.025em;
}

.checkout-pay-amounts small {
  color: #aeb9c7;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.15;
}

.checkout-pay-amounts b:last-child {
  background: rgba(255, 255, 255, .08);
}

.checkout-pay-amounts b:last-child strong {
  font-size: 20px;
}

@media (max-width: 1020px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .side-progress {
    position: static;
  }
}

@media (max-width: 720px) {
  .page-hero {
    width: calc(100% - 20px);
    border-radius: 15px;
  }

  .page-hero__grid {
    padding: 20px 17px !important;
  }

  .page-hero h1 {
    font-size: 31px;
  }

  .checkout-layout {
    margin-top: 10px;
  }

  .checkout-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 5px;
  }

  .checkout-tab {
    min-width: 0;
    min-height: 44px;
    padding: 0 5px;
    font-size: 11.5px;
  }

  .checkout-tab span {
    width: 23px;
    height: 23px;
  }

  .checkout-tab::after {
    display: none;
  }

  .step-card summary {
    min-height: 58px;
    padding: 0 13px;
    font-size: 15px;
  }

  .step-body {
    padding: 13px;
  }

  .invoice-type,
  .customer-mode,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .order-line.cart-line {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 11px;
    padding: 11px;
  }

  .order-line.cart-line img {
    width: 84px;
    height: 76px;
  }

  .order-line.cart-line > strong {
    grid-column: 1 / -1;
    justify-self: end;
    font-size: 18px;
  }

  .side-progress {
    padding: 14px;
  }

  .checkout-pay-cta {
    grid-template-columns: 1fr;
  }

  .checkout-pay-amounts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 400px) {
  .checkout-pay-amounts b {
    min-height: 64px;
    padding: 8px 9px;
  }

  .checkout-pay-amounts strong,
  .checkout-pay-amounts b:last-child strong {
    font-size: 18px;
  }
}

/* Çok ürünlü sepet: her ürün ayrı ve okunabilir bir satırda kalır. */
.checkout-cart-list,
.summary-products {
  display: grid;
  gap: 10px;
}

.checkout-cart-list:empty,
.summary-products:empty {
  display: none;
}

.checkout-cart-list .cart-line + .cart-line {
  margin-top: 0;
}

.summary-products {
  max-height: 318px;
  overflow: auto;
  padding-right: 3px;
  scrollbar-width: thin;
}

.summary-products .summary-product {
  margin: 0;
}

.summary-products .summary-product b {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.checkout-cart-list .qty-control button,
.checkout-cart-list .qty-control input,
.checkout-cart-list .cart-remove {
  min-width: 44px;
  min-height: 44px;
}

.checkout-cart-list .qty-control button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

@media (max-width: 720px) {
  .checkout-cart-list {
    gap: 9px;
  }

  .summary-products {
    max-height: 250px;
  }
}
