/**
 * MTA Elektrik — v7.34.8 — Sipariş UX Stilleri
 */

/* ═══════════════════════════════════════════════════════
   THANK YOU PAGE (Teşekkür Sayfası)
   ═══════════════════════════════════════════════════════ */

.mta-thank-you-page {
  max-width: 720px;
  margin: 20px auto;
  padding: 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1a202c;
}

.mta-ty-hero {
  background: linear-gradient(135deg, #00a651, #008a44);
  color: #fff;
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(0, 166, 81, 0.25);
}

.mta-ty-success-icon {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 14px;
  color: #fff;
  font-weight: bold;
  border: 3px solid rgba(255,255,255,0.4);
  animation: mta-ty-pop 0.5s ease-out;
}

@keyframes mta-ty-pop {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.mta-ty-title {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 6px;
  color: #fff;
}

.mta-ty-sub {
  font-size: 14px;
  opacity: 0.95;
  margin: 0 0 18px;
  color: #fff;
}

.mta-ty-order-number {
  background: rgba(0,0,0,0.2);
  border-radius: 10px;
  padding: 12px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.mta-ty-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

.mta-ty-number {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-family: 'SF Mono', Monaco, monospace;
}

.mta-ty-copy-btn {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
  font-weight: 600;
}

.mta-ty-copy-btn:hover {
  background: rgba(255,255,255,0.3);
}

.mta-ty-meta {
  font-size: 12px;
  opacity: 0.9;
}

/* CARD'LAR */
.mta-ty-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border: 1px solid #e2e8f0;
}

.mta-ty-card-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f3f7;
  color: #1a202c;
}

.mta-ty-card-icon {
  font-size: 20px;
}

/* HAVALE BANK BLOK */
.mta-ty-bank {
  border: 2px solid #f59e0b;
}

.mta-ty-bank-warn {
  background: #fef3c7;
  color: #78350f;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 14px;
  border-left: 4px solid #f59e0b;
  line-height: 1.5;
}

.mta-ty-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 14px;
}

.mta-ty-table th {
  text-align: left;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  background: #f7fafc;
  width: 35%;
  border-bottom: 1px solid #e2e8f0;
}

.mta-ty-table td {
  padding: 8px 10px;
  font-size: 13px;
  color: #1e293b;
  border-bottom: 1px solid #e2e8f0;
}

.mta-ty-table tr:last-child th,
.mta-ty-table tr:last-child td {
  border-bottom: none;
}

.mta-ty-copy-btn-mini {
  background: transparent;
  border: 1px solid #cbd5e1;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 10px;
  margin-left: 4px;
  vertical-align: middle;
}

.mta-ty-bank-steps {
  background: #f0f9ff;
  padding: 14px;
  border-radius: 10px;
  margin-top: 12px;
}

.mta-ty-bank-steps h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #075985;
}

.mta-ty-bank-steps ol {
  margin: 0;
  padding-left: 22px;
  color: #1e293b;
  font-size: 13px;
  line-height: 1.7;
}

.mta-ty-bank-steps li {
  margin-bottom: 4px;
}

/* ITEMS */
.mta-ty-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.mta-ty-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: #f7fafc;
  border-radius: 10px;
}

.mta-ty-item-img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
  flex-shrink: 0;
}

.mta-ty-item-no-img {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #94a3b8;
}

.mta-ty-item-info {
  flex: 1;
  min-width: 0;
}

.mta-ty-item-name {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mta-ty-item-qty {
  font-size: 12px;
  color: #64748b;
}

.mta-ty-item-total {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  flex-shrink: 0;
}

/* TOTALS */
.mta-ty-totals {
  border-top: 2px dashed #e2e8f0;
  padding-top: 12px;
}

.mta-ty-total-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 13px;
  color: #4a5568;
}

.mta-ty-total-final {
  font-size: 18px;
  font-weight: 800;
  color: #1a202c;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
}

.mta-ty-address {
  background: #f7fafc;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: #1e293b;
  margin: 0;
}

/* AKSİYONLAR */
.mta-ty-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.mta-ty-btn {
  flex: 1;
  min-width: 140px;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  display: inline-block;
  transition: transform 0.1s;
  border: none;
  cursor: pointer;
}

.mta-ty-btn:hover {
  transform: translateY(-1px);
}

.mta-ty-btn:active {
  transform: translateY(0);
}

.mta-ty-btn-primary {
  background: #00a651;
  color: #fff;
}

.mta-ty-btn-secondary {
  background: #fff;
  color: #1e293b;
  border: 2px solid #e2e8f0;
}

.mta-ty-btn-whatsapp {
  background: #25D366;
  color: #fff;
}

/* TRUST */
.mta-ty-trust {
  background: #f0f9ff;
  padding: 14px;
  border-radius: 12px;
  text-align: center;
  font-size: 12px;
  color: #075985;
  line-height: 1.7;
}

.mta-ty-trust p {
  margin: 0 0 4px;
}

/* TOAST */
.mta-ty-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1e293b;
  color: #fff;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}
.mta-ty-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════════════════════════
   TRACKING PAGE (Sipariş Takip)
   ═══════════════════════════════════════════════════════ */

.mta-tracking-page {
  max-width: 720px;
  margin: 20px auto;
  padding: 16px;
}

.mta-tracking-hero {
  background: linear-gradient(135deg, #2271b1, #1d4ed8);
  color: #fff;
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 16px;
}

.mta-tracking-hero h1 {
  font-size: 22px;
  margin: 0 0 6px;
}

.mta-tracking-hero p {
  font-size: 13px;
  opacity: 0.9;
  margin: 0;
}

.mta-tracking-form-wrap {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.mta-tracking-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mta-tracking-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 6px;
}

.mta-tracking-field input {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
}

.mta-tracking-field input:focus {
  border-color: #2271b1;
  outline: none;
}

.mta-tracking-field small {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 4px;
}

.mta-tracking-submit {
  background: #2271b1;
  color: #fff;
  border: 0;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.mta-tracking-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.mta-tracking-error {
  color: #dc2626;
  font-size: 13px;
  text-align: center;
  font-weight: 600;
}

.mta-tracking-divider {
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
  margin: 14px 0;
  position: relative;
}

.mta-tracking-divider::before,
.mta-tracking-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background: #e2e8f0;
}

.mta-tracking-divider::before { left: 0; }
.mta-tracking-divider::after { right: 0; }

.mta-tracking-account-link {
  display: block;
  text-align: center;
  background: #f7fafc;
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #2271b1;
  font-weight: 600;
  font-size: 13px;
}

/* DURUM ADIMLARI */
.mta-tracking-detail {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.mta-tracking-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f3f7;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.mta-tracking-num span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.mta-tracking-num strong {
  font-size: 17px;
  font-weight: 800;
  color: #1a202c;
  font-family: 'SF Mono', Monaco, monospace;
}

.mta-tracking-status {
  padding: 6px 14px;
  border-radius: 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.mta-tracking-steps {
  display: flex;
  align-items: center;
  margin: 16px 0;
  overflow-x: auto;
  padding-bottom: 6px;
}

.mta-tracking-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 80px;
}

.mta-tracking-step-icon {
  width: 44px;
  height: 44px;
  background: #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 6px;
  border: 2px solid transparent;
}

.mta-tracking-step.done .mta-tracking-step-icon {
  background: #22c55e;
  color: #fff;
}

.mta-tracking-step.active .mta-tracking-step-icon {
  background: #f59e0b;
  border-color: #fbbf24;
  animation: mta-pulse 1.5s infinite;
}

@keyframes mta-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
  50%      { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
}

.mta-tracking-step-label {
  font-size: 11px;
  color: #4a5568;
  font-weight: 600;
}

.mta-tracking-step.done .mta-tracking-step-label {
  color: #22c55e;
}

.mta-tracking-step.active .mta-tracking-step-label {
  color: #f59e0b;
}

.mta-tracking-step-line {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  min-width: 30px;
  margin: 0 4px;
  margin-bottom: 24px;
}

.mta-tracking-step-line.done {
  background: #22c55e;
}

/* ═══════════════════════════════════════════════════════
   CUSTOMER ORDERS (Hesabım > Siparişlerim)
   ═══════════════════════════════════════════════════════ */

.mta-customer-orders {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.mta-co-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f1f3f7;
}

.mta-co-header h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
  color: #1a202c;
}

.mta-co-count {
  background: #f7fafc;
  padding: 4px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #4a5568;
}

.mta-co-empty {
  text-align: center;
  padding: 40px 20px;
  background: #f7fafc;
  border-radius: 14px;
}

.mta-co-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.mta-co-empty h3 {
  font-size: 16px;
  margin: 0 0 6px;
  color: #1a202c;
}

.mta-co-empty p {
  color: #64748b;
  font-size: 13px;
  margin: 0 0 16px;
}

.mta-co-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mta-co-card {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.mta-co-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.mta-co-card-num {
  font-size: 14px;
  font-weight: 800;
  color: #1a202c;
  font-family: 'SF Mono', Monaco, monospace;
}

.mta-co-card-date {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.mta-co-card-status {
  padding: 4px 10px;
  border-radius: 10px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.mta-co-card-items {
  display: flex;
  gap: 6px;
  margin: 12px 0;
  flex-wrap: wrap;
}

.mta-co-card-item img,
.mta-co-card-item-noimg {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: #f7fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #94a3b8;
}

.mta-co-card-more {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #f1f3f7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #4a5568;
}

.mta-co-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
  flex-wrap: wrap;
  gap: 10px;
}

.mta-co-card-total span {
  font-size: 11px;
  color: #94a3b8;
  margin-right: 4px;
}

.mta-co-card-total strong {
  font-size: 16px;
  font-weight: 800;
  color: #1a202c;
}

.mta-co-card-actions {
  display: flex;
  gap: 6px;
}

.mta-co-btn {
  padding: 6px 12px;
  background: #f7fafc;
  border-radius: 8px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  border: 1px solid #e2e8f0;
}

.mta-co-btn:hover {
  background: #e2e8f0;
}

.mta-co-btn-track {
  background: #2271b1;
  color: #fff;
  border-color: #2271b1;
}

.mta-co-btn-track:hover {
  background: #1d4ed8;
  color: #fff;
}

/* MOBILE */
@media (max-width: 600px) {
  .mta-thank-you-page,
  .mta-tracking-page {
    padding: 10px;
  }

  .mta-ty-title {
    font-size: 20px;
  }

  .mta-ty-number {
    font-size: 17px;
  }

  .mta-ty-actions {
    flex-direction: column;
  }

  .mta-ty-btn {
    width: 100%;
  }

  .mta-tracking-steps {
    overflow-x: scroll;
  }
}
