/* WC Cargo Tracker — Frontend */

.wct-wrap { margin: 28px 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

.wct-section-title { font-size: 18px; font-weight: 700; margin-bottom: 18px; }

/* ── Card ── */
.wct-fe-card {
    background: #fff; border: 1px solid #e5e7eb;
    border-radius: 12px; padding: 24px; margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    /* overflow visible — scale() animasyonu kırpılmasın */
    overflow: visible;
}

/* ── Head ── */
.wct-fe-head {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 22px; gap: 12px; flex-wrap: wrap;
}
.wct-fe-carrier { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; }
.wct-fe-icon    { font-size: 26px; }
.wct-fe-tn      { text-align: right; }
.wct-fe-tn small{ display: block; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: #9ca3af; }
.wct-fe-tn strong{ display: block; font-size: 18px; font-family: monospace; letter-spacing: 2px; color: #374151; margin: 2px 0; }
.wct-fe-link { font-size: 12px; color: #667eea; text-decoration: none; font-weight: 600; }
.wct-fe-link:hover { text-decoration: underline; }

/* ── Steps ── */
.wct-steps {
    display: flex !important;
    align-items: center !important;
    overflow-x: auto !important;
    /* Tema overflow:hidden'ı geçersiz kıl — noktalar kırpılmasın */
    overflow-y: visible !important;
    /* Üst padding: active dot'un scale() ile büyüyünce kırpılmaması için */
    padding: 12px 2px 6px !important;
    margin-bottom: 16px !important;
}
.wct-step {
    display: flex !important; flex-direction: column !important;
    align-items: center !important; flex-shrink: 0 !important; width: 80px !important;
}
.wct-step-dot {
    width: 36px !important; height: 36px !important; border-radius: 50% !important;
    background: #e5e7eb !important; border: 2px solid #e5e7eb !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    font-size: 13px !important; font-weight: 700 !important; color: #9ca3af !important;
    transition: background .25s, box-shadow .25s, border-color .25s, color .25s !important;
    transform: none !important;
    position: relative !important;
    z-index: 2 !important;
    box-sizing: border-box !important;
}
/* Done: class ile renk ver — inline style !important ile çakışmasın */
.wct-step.done .wct-step-dot,
.wct-step.active .wct-step-dot {
    background: var(--wct-status-color, #3b82f6) !important;
    border-color: var(--wct-status-color, #3b82f6) !important;
    color: #fff !important;
}
.wct-step.active .wct-step-dot {
    box-shadow: 0 0 0 4px rgba(102,126,234,.2) !important;
}
.wct-step-lbl {
    font-size: 10px !important; text-align: center !important; margin-top: 8px !important;
    color: #9ca3af !important; line-height: 1.3 !important; max-width: 72px !important;
}
.wct-step.done .wct-step-lbl,
.wct-step.active .wct-step-lbl { color: #374151 !important; font-weight: 700 !important; }

.wct-step-line {
    flex: 1 !important; height: 3px !important; background: #e5e7eb !important;
    border-radius: 2px !important; min-width: 14px !important;
    margin-bottom: 26px !important;
    transition: background .25s !important;
    flex-shrink: 1 !important;
}
.wct-step-line.done {
    background: var(--wct-status-color, #3b82f6) !important;
}

/* ── Status banner (returned / failed) ── */
.wct-status-banner {
    text-align: center; padding: 14px; border-radius: 8px;
    color: #fff; font-weight: 700; font-size: 16px; margin-bottom: 20px;
}

/* ── Meta ── */
.wct-fe-meta {
    display: flex; flex-wrap: wrap; gap: 20px;
    background: #f9fafb; border-radius: 8px;
    padding: 14px 18px; margin-bottom: 20px;
}
.wct-meta-item small  { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .7px; color: #9ca3af; }
.wct-meta-item strong { font-size: 14px; font-weight: 700; color: #374151; }

/* ── Timeline ── */
.wct-tl-wrap { margin-top: 18px; }
.wct-tl-heading { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #6b7280; margin-bottom: 12px; }
.wct-tl { position: relative; padding-left: 14px; }
.wct-tl::before {
    content: ''; position: absolute; left: 15px;
    top: 0; bottom: 0; width: 2px; background: #e5e7eb;
}
.wct-tl-item { display: flex; gap: 12px; margin-bottom: 16px; position: relative; }
.wct-tl-dot {
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; flex-shrink: 0; z-index: 1;
    box-shadow: 0 0 0 3px #fff;
}
.wct-tl-body { padding-top: 3px; font-size: 13px; line-height: 1.4; }
.wct-tl-body strong { display: block; font-size: 14px; color: #1f2937; }
.wct-tl-body em     { font-size: 12px; color: #6b7280; display: block; margin-top: 2px; }
.wct-tl-body p      { margin: 3px 0 0; color: #374151; }
.wct-tl-body small  { display: block; margin-top: 4px; color: #9ca3af; font-size: 11px; }

/* ── Notes ── */
.wct-fe-notes {
    background: #fefce8; border-left: 4px solid #fbbf24;
    border-radius: 0 6px 6px 0; padding: 10px 14px;
    font-size: 13px; color: #374151; margin-top: 14px;
}

/* ════════════ PUBLIC TRACKER ════════════ */
.wct-public-tracker { max-width: 600px; margin: 0 auto; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

.wct-pt-form {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
    padding: 28px; box-shadow: 0 2px 12px rgba(102,126,234,.1);
    margin-bottom: 20px;
}
.wct-pt-title { font-size: 22px; font-weight: 800; margin: 0 0 20px; text-align: center; }

.wct-pt-tabs  { display: flex; border-bottom: 2px solid #f3f4f6; margin-bottom: 18px; }
.wct-pt-tab {
    background: none; border: none; cursor: pointer;
    padding: 9px 16px; font-size: 13px; font-weight: 600;
    color: #9ca3af; border-bottom: 3px solid transparent; margin-bottom: -2px;
    transition: color .2s, border-color .2s;
}
.wct-pt-tab.active { color: #667eea; border-bottom-color: #667eea; }

.wct-pt-input {
    width: 100%; padding: 13px 16px; border: 2px solid #e5e7eb;
    border-radius: 9px; font-size: 15px; box-sizing: border-box;
    margin-bottom: 12px; transition: border-color .2s; font-family: inherit;
}
.wct-pt-input:focus { outline: none; border-color: #667eea; }

.wct-pt-btn {
    width: 100%; padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff; border: none; border-radius: 9px;
    font-size: 15px; font-weight: 700; cursor: pointer;
    transition: opacity .2s;
}
.wct-pt-btn:hover    { opacity: .9; }
.wct-pt-btn:disabled { opacity: .65; cursor: not-allowed; }

.wct-pt-error {
    background: #fee2e2; color: #dc2626; border-radius: 8px;
    padding: 12px 16px; font-weight: 600; text-align: center;
    margin-bottom: 14px;
}

.wct-pt-result .wct-fe-card { box-shadow: 0 4px 20px rgba(102,126,234,.12); }

/* responsive */
@media (max-width: 480px) {
    .wct-fe-head  { flex-direction: column; }
    .wct-fe-tn    { text-align: left; }
    .wct-step     { width: 58px; }
    .wct-step-lbl { font-size: 9px; }
}

/* ── Copy-only carrier button ── */
.wct-copy-hint {
    display: block; font-size: 11px; color: #9ca3af; margin-top: 4px;
}
.wct-copy-btn {
    display: inline-block; margin-top: 6px;
    background: #fff7ed; color: #c2410c;
    border: 1.5px solid #fed7aa; border-radius: 6px;
    padding: 5px 12px; font-size: 12px; font-weight: 700;
    cursor: pointer; transition: background .2s;
}
.wct-copy-btn:hover { background: #ffedd5; }
.wct-copy-btn.wct-copied { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }

/* ════════════ HESABIM KARGO TAKİP SAYFASI ════════════ */
.wct-account-page { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

.wct-account-empty {
    text-align: center; padding: 48px 24px;
    background: #f9fafb; border-radius: 12px;
    border: 2px dashed #e5e7eb;
}
.wct-empty-icon  { font-size: 48px; display: block; margin-bottom: 12px; }
.wct-account-empty p { color: #6b7280; font-size: 15px; margin-bottom: 16px; }
.wct-btn-orders {
    display: inline-block; background: #667eea; color: #fff;
    padding: 10px 24px; border-radius: 8px; text-decoration: none;
    font-weight: 700; font-size: 14px;
}

/* Sipariş referans satırı */
.wct-order-ref {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 14px; padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}
.wct-order-ref a {
    font-weight: 700; color: #667eea; text-decoration: none; font-size: 14px;
}
.wct-order-ref a:hover { text-decoration: underline; }
.wct-order-date { font-size: 12px; color: #9ca3af; }

/* ── Tema override: sm-content-box ve benzeri overflow:hidden olan sarmalayıcılar ── */
/* WooCommerce hesabım sayfasında bazı temalar içeriği overflow:hidden ile sarar.
   Kargo takip proses adımlarının görünmesi için bu override gereklidir. */
.wct-account-page .wct-fe-card,
.wct-account-page .wct-steps,
.woocommerce-account .wct-fe-card,
.woocommerce-account .wct-steps {
    overflow: visible !important;
}
.woocommerce-account .sm-content-box,
.woocommerce-account .sm-content-body {
    overflow: visible !important;
}
