/* Ekspres Kargo Hesaplayıcı - Frontend Stilleri (Enfold ve Mobil / Tablet / Kolon Uyumlu) */

/* 1. Ana Konteyner ve Container Query Tanımı */
.ekspres-calculator-container {
    container-type: inline-size;
    container-name: eksprescalc;
    width: 100% !important;
    max-width: 760px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #2c3e50;
    box-sizing: border-box !important;
    overflow-x: hidden; /* Yan taşmaları kesin olarak engeller */
}

.ekspres-calculator-container *,
.ekspres-calculator-container *::before,
.ekspres-calculator-container *::after {
    box-sizing: border-box !important;
}

.ekspres-calc-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    padding: 26px 24px;
    width: 100% !important;
    min-width: 0;
}

.ekspres-calc-header {
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.ekspres-calc-title {
    font-size: 21px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.3;
}

.ekspres-calc-title .ekspres-icon {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #2563eb;
    flex-shrink: 0;
}

.ekspres-calc-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* 2. Gönderi Türü Seçim Sekmeleri (Koli vs Evrak) */
.ekspres-type-tabs {
    display: flex;
    gap: 10px;
    margin-top: 6px;
    width: 100%;
}

.ekspres-type-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    transition: all 0.2s ease;
    user-select: none;
    text-align: center;
}

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

.ekspres-type-tab .tab-icon {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #64748b;
    flex-shrink: 0;
}

.ekspres-type-tab:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.ekspres-type-tab.active {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1d4ed8;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.12);
}

.ekspres-type-tab.active .tab-icon {
    color: #2563eb;
}

/* 3. Evrak Hızlı Ağırlık Seçim Butonları */
.ekspres-evrak-presets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.ekspres-preset-btn {
    padding: 10px 8px;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ekspres-preset-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.ekspres-preset-btn.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(37, 99, 235, 0.25);
}

/* 4. Ağırlık Slider & Input Satırı */
.ekspres-weight-slider-row {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

/* 5. Form Alanları ve Etiketler */
.ekspres-form-group {
    margin-bottom: 20px;
    width: 100%;
}

.ekspres-label {
    display: block;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 8px;
}

.ekspres-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 4px;
}

.ekspres-label-inline {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.ekspres-label .required,
.ekspres-label-inline .required {
    color: #ef4444;
}

.ekspres-label-sub {
    font-size: 11px;
    color: #64748b;
    font-weight: normal;
}

/* 6. Select ve Input Stilleri */
.ekspres-locked-country-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eff6ff;
    border: 1.5px solid #93c5fd;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 700;
    color: #1e3a8a;
    width: 100%;
}

.ekspres-locked-country-badge .dashicons {
    color: #2563eb;
    font-size: 19px;
    width: 19px;
    height: 19px;
}

.ekspres-locked-country-badge .ekspres-locked-tag {
    background: #2563eb;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    margin-left: auto;
    letter-spacing: 0.5px;
}

.ekspres-inline-price {
    font-weight: 700;
    color: #1e293b;
    display: inline-block;
}

.ekspres-select-wrapper,
.ekspres-input-wrapper {
    position: relative;
    width: 100%;
    min-width: 0;
}

.ekspres-select,
.ekspres-input {
    width: 100% !important;
    height: 46px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    color: #1e293b !important;
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    transition: all 0.2s ease;
    outline: none;
}

.ekspres-select:focus,
.ekspres-input:focus {
    border-color: #2563eb !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

.ekspres-input-unit {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    font-size: 12px;
    color: #64748b;
    pointer-events: none;
}

/* 7. Paket Kartı ve Çoklu Paket Öğesi */
.ekspres-package-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: border-color 0.2s ease;
    width: 100%;
    min-width: 0;
}

.ekspres-package-card:hover {
    border-color: #cbd5e1;
}

.ekspres-pkg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
}

.ekspres-pkg-header .pkg-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.ekspres-pkg-header .pkg-title .dashicons {
    color: #2563eb;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.ekspres-btn-remove-pkg {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.ekspres-btn-remove-pkg:hover {
    background: #fecaca;
    color: #b91c1c;
}

.ekspres-btn-remove-pkg .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.ekspres-pkg-subsummary {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    color: #64748b;
    margin-top: 12px;
    flex-wrap: wrap;
}

.ekspres-pkg-subsummary strong {
    color: #1e293b;
}

.ekspres-pkg-subsummary .divider {
    color: #cbd5e1;
}

/* 8. Ebat Kutuları Grid Düzeni (En, Boy, Yükseklik) */
.ekspres-dimensions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 8px;
    width: 100%;
    min-width: 0;
}

.ekspres-dim-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0 !important;
    width: 100%;
    overflow: visible; /* Kayan baloncuğun görünmesini sağlar */
}

.ekspres-dim-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    flex-wrap: wrap;
    gap: 4px;
}

.ekspres-dim-num-wrap {
    display: flex;
    align-items: center;
    gap: 2px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    padding: 2px 5px;
}

.ekspres-dim-input {
    width: 40px !important;
    height: 22px !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    text-align: right;
    font-size: 13px !important;
    font-weight: 700;
    color: #2563eb !important;
    outline: none !important;
}

.ekspres-dim-num-wrap .unit {
    font-size: 10px;
    color: #64748b;
    font-weight: 600;
}

/* 9. Slider Konteyneri, Kayan Baloncuk ve Cetvel */
.ekspres-slider-container {
    position: relative;
    width: 100%;
    min-width: 0;
    padding-top: 14px;
}

/* Kayan Değer Baloncuğu */
.ekspres-bubble {
    position: absolute;
    top: -6px;
    transform: translateX(-50%);
    background: #1e293b;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.ekspres-bubble::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px 4px 0 4px;
    border-style: solid;
    border-color: #1e293b transparent transparent transparent;
}

/* Hover veya kaydırma anında baloncuk parlar */
.ekspres-slider-container:hover .ekspres-bubble,
.ekspres-slider-container.active-sliding .ekspres-bubble {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

/* Range Slider Çubuğu */
.ekspres-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100% !important;
    min-width: 0;
    height: 6px;
    border-radius: 5px;
    background: #cbd5e1;
    outline: none;
    margin: 4px 0;
    padding: 0;
    cursor: pointer;
    display: block;
}

.ekspres-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2563eb;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    transition: transform 0.1s, background-color 0.1s;
}

.ekspres-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: #1d4ed8;
}

.ekspres-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2563eb;
    cursor: pointer;
    border: none;
}

/* Slider Cetvel / Barem Değerleri */
.ekspres-slider-scale {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    margin-top: 3px;
    padding: 0 2px;
    user-select: none;
    line-height: 1;
}

/* 10. + Yeni Paket Ekle Butonu */
.ekspres-add-pkg-row {
    margin-bottom: 20px;
    width: 100%;
}

.ekspres-btn-add-pkg {
    width: 100%;
    padding: 11px;
    background: #f8fafc;
    border: 2px dashed #93c5fd;
    border-radius: 10px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.ekspres-btn-add-pkg:hover {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1d4ed8;
}

/* 11. Fiyata Esas Ağırlık Canlı Göstergesi */
.ekspres-weight-summary-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    border-radius: 10px;
    padding: 14px 16px;
    margin: 18px 0;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}

.ekspres-weight-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ekspres-weight-col .weight-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

.ekspres-weight-col .weight-val {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.ekspres-weight-divider {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
}

.ekspres-weight-main-badge {
    background: #2563eb;
    color: #ffffff;
    padding: 7px 14px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.ekspres-weight-main-badge .badge-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.ekspres-weight-main-badge .badge-value {
    font-size: 17px;
    font-weight: 800;
}

/* 12. Taşıma Şartları Kutusu */
.ekspres-terms-box {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 18px;
    transition: all 0.2s ease;
    width: 100%;
}

.ekspres-terms-box.terms-error {
    border-color: #ef4444;
    background: #fef2f2;
    animation: shake 0.4s ease;
}

.ekspres-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 12px;
    color: #334155;
    line-height: 1.4;
}

.ekspres-terms-label input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
    cursor: pointer;
    flex-shrink: 0;
}

.ekspres-terms-label .terms-link {
    color: #2563eb;
    text-decoration: underline;
    font-weight: 600;
    margin-left: 4px;
}

/* 13. Sipariş Meta Özeti (Fiyat Kartında) */
.ekspres-shipment-meta-summary {
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 6px;
    padding: 8px 12px;
    margin-bottom: 14px;
    font-size: 12px;
    color: #1e40af;
    line-height: 1.4;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    50% { transform: translateX(6px); }
    75% { transform: translateX(-4px); }
}

/* 14. Sonuç / Fiyat Kartı */
.ekspres-prompt-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 14px 16px;
    color: #64748b;
    font-size: 13px;
    width: 100%;
}

.ekspres-prompt-box .dashicons {
    color: #94a3b8;
    font-size: 20px;
    flex-shrink: 0;
}

.ekspres-prompt-box p {
    margin: 0;
}

.ekspres-price-card {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px;
    animation: fadeIn 0.3s ease;
    width: 100%;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.ekspres-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.ekspres-price-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
}

.ekspres-price-amount {
    font-size: 32px;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.1;
    margin: 4px 0;
}

.ekspres-price-subtext {
    display: block;
    font-size: 11px;
    color: #10b981;
    font-weight: 500;
}

.ekspres-carrier-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    flex-shrink: 0;
}

.ekspres-carrier-badge .dashicons {
    color: #2563eb;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Satın Al Butonu */
.ekspres-btn-submit {
    width: 100% !important;
    height: 50px !important;
    background: #2563eb !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
    transition: all 0.2s ease !important;
}

.ekspres-btn-submit:hover {
    background: #1d4ed8 !important;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35) !important;
    transform: translateY(-1px);
}

.ekspres-btn-submit:active {
    transform: translateY(0);
}

.ekspres-btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed !important;
}

/* 23 kg Üzeri WhatsApp Kartı */
.ekspres-overweight-card {
    background: #fffbeb;
    border: 1.5px solid #fde68a;
    border-radius: 12px;
    padding: 18px 20px;
    display: flex;
    gap: 14px;
    animation: fadeIn 0.3s ease;
    width: 100%;
}

.ekspres-overweight-icon .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #25d366;
    flex-shrink: 0;
}

.ekspres-overweight-content h4 {
    margin: 0 0 6px 0;
    font-size: 17px;
    font-weight: 700;
    color: #92400e;
}

.ekspres-overweight-content p {
    font-size: 13px;
    color: #78350f;
    margin: 0 0 14px 0;
    line-height: 1.5;
}

.ekspres-btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
    transition: all 0.2s ease;
}

.ekspres-btn-whatsapp:hover {
    background: #1ebc59;
    box-shadow: 0 6px 14px rgba(37, 211, 102, 0.4);
    transform: translateY(-1px);
}

/* Hata Kartı */
.ekspres-error-card {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    width: 100%;
}

.spin {
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

/* ==============================================================
   15. CONTAINER QUERIES (ENFOLD 1/3, 1/2, 2/3 KOLONLARI VE TABLET UYUMU)
   ============================================================== */

/* Orta Genişlikteki Alanlar (580px - 440px): Tablet, iPad Mini/Pro 2/3 kolon */
@container eksprescalc (max-width: 580px) {
    .ekspres-dimensions-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
        gap: 10px;
    }
    .ekspres-slider-scale .scale-mid {
        display: none !important; /* Ara değerleri gizle, sadece baş ve son kalsın */
    }
}

/* Dar Alanlar (< 440px): Enfold 1/3 Kolonu, Mobil ve Sıkışık Alanlar */
@container eksprescalc (max-width: 440px) {
    .ekspres-calc-card {
        padding: 16px 12px !important;
    }
    .ekspres-dimensions-grid {
        grid-template-columns: 1fr !important; /* Kesinlikle tek sütun, 100% genişlik, ASLA TAŞMAZ */
        gap: 10px !important;
    }
    .ekspres-type-tabs {
        flex-direction: column !important;
        gap: 8px !important;
    }
    .ekspres-weight-slider-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }
    .ekspres-weight-slider-row .ekspres-input-wrapper {
        max-width: 100% !important;
    }
    .ekspres-slider-scale .scale-mid {
        display: none !important;
    }
    .ekspres-weight-summary-box {
        flex-direction: column !important;
        align-items: stretch !important;
        text-align: center !important;
        padding: 12px !important;
    }
    .ekspres-weight-divider {
        display: none !important;
    }
    .ekspres-price-row {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
}

/* ==============================================================
   16. CSS MEDIA QUERIES FALLBACK (Eski Tarayıcılar İçin)
   ============================================================== */
@media (max-width: 768px) {
    .ekspres-dimensions-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
    }
}

@media (max-width: 520px) {
    .ekspres-dimensions-grid {
        grid-template-columns: 1fr !important;
    }
    .ekspres-calc-card {
        padding: 16px 12px !important;
    }
    .ekspres-type-tabs {
        flex-direction: column !important;
    }
    .ekspres-weight-slider-row {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .ekspres-weight-slider-row .ekspres-input-wrapper {
        max-width: 100% !important;
    }
    .ekspres-slider-scale .scale-mid {
        display: none !important;
    }
    .ekspres-weight-summary-box {
        flex-direction: column !important;
        align-items: stretch !important;
        text-align: center !important;
    }
    .ekspres-weight-divider {
        display: none !important;
    }
    .ekspres-price-row {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
}

/* ==============================================================
   17. KARGO FİYAT TABLOSU SHORTCODE STİLLERİ
   ============================================================== */

.ekspres-price-table-container {
    container-type: inline-size;
    container-name: eksprestbl;
    width: 100% !important;
    max-width: 960px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #1e293b;
    box-sizing: border-box !important;
}

.ekspres-price-table-container *,
.ekspres-price-table-container *::before,
.ekspres-price-table-container *::after {
    box-sizing: border-box !important;
}

.ekspres-price-table-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    padding: 28px 24px;
    width: 100% !important;
}

/* Başlık Alanı */
.ekspres-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.ekspres-table-header-left {
    flex: 1;
    min-width: 250px;
}

.ekspres-table-title {
    font-size: 23px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.3;
}

.ekspres-country-flag {
    font-size: 28px;
    line-height: 1;
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.ekspres-table-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Güven Rozetleri */
.ekspres-table-trust-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ekspres-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

.ekspres-trust-badge .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: #2563eb;
}

.ekspres-trust-badge.carrier-highlight {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.ekspres-trust-badge.carrier-highlight .dashicons {
    color: #1d4ed8;
}

/* Araç Çubuğu: Filtre Butonları ve Arama */
.ekspres-table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.ekspres-table-filter-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.ekspres-filter-tab {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    line-height: 1.2;
}

.ekspres-filter-tab .tab-count,
.ekspres-filter-tab .tab-sub {
    font-size: 11px;
    opacity: 0.8;
}

.ekspres-filter-tab:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}

.ekspres-filter-tab.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.ekspres-table-search-box {
    position: relative;
    min-width: 200px;
}

.ekspres-table-search-box .search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #94a3b8;
    pointer-events: none;
}

.ekspres-search-input {
    width: 100%;
    padding: 8px 12px 8px 34px !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    color: #1e293b !important;
    background: #ffffff !important;
    outline: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ekspres-search-input:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

/* Fiyat Tablosu ve Kapsayıcısı */
.ekspres-table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
}

.ekspres-price-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    font-size: 14px;
    margin: 0 !important;
    background: #ffffff;
}

.ekspres-price-table thead th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 13px 16px;
    border-bottom: 2px solid #e2e8f0;
    text-align: left;
    white-space: nowrap;
}

.ekspres-price-table thead th.th-action {
    text-align: right;
}

.ekspres-price-table tbody tr {
    transition: background-color 0.15s ease;
}

.ekspres-price-table tr.ekspres-row-hidden,
.ekspres-price-table tbody tr.ekspres-row-hidden {
    display: none !important;
}

.ekspres-price-table tbody tr:nth-child(even) {
    background: #fbfcfe;
}

.ekspres-price-table tbody tr:hover {
    background: #f1f5f9;
}

.ekspres-price-table tbody td {
    padding: 11px 16px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.ekspres-price-table tbody tr:last-child td {
    border-bottom: none;
}

.ekspres-price-table tbody td.td-action {
    text-align: right;
    white-space: nowrap;
}

/* Hücre Bileşenleri */
.ekspres-weight-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 5px 11px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid #dbeafe;
}

.ekspres-weight-pill .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
    color: #2563eb;
}

.ekspres-service-pill {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.ekspres-delivery-badge {
    font-size: 13px;
    font-weight: 600;
    color: #059669;
    white-space: nowrap;
}

.ekspres-price-val {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.3px;
    white-space: nowrap;
}

.ekspres-table-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2563eb;
    color: #ffffff !important;
    padding: 7px 15px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.15);
    white-space: nowrap;
}

.ekspres-table-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.25);
    color: #ffffff !important;
}

/* Çift Sütunlu Grid */
.ekspres-dual-table-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

/* Boş / Sonuç Bulunamadı */
.ekspres-table-empty-notice {
    padding: 16px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    text-align: center;
    font-size: 13px;
    color: #64748b;
    margin-top: 12px;
}

/* 23 Kg Üzeri WhatsApp Alanı */
.ekspres-table-overweight-callout {
    margin-top: 22px;
    padding: 20px 22px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1.5px solid #86efac;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
}

.ekspres-callout-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 260px;
}

.ekspres-callout-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.35);
}

.ekspres-callout-icon .dashicons {
    font-size: 26px;
    width: 26px;
    height: 26px;
}

.ekspres-callout-text .callout-heading {
    font-size: 16px;
    font-weight: 700;
    color: #065f46;
    margin: 0 0 4px 0;
}

.ekspres-callout-text .callout-desc {
    font-size: 13px;
    color: #047857;
    margin: 0;
    line-height: 1.45;
}

.ekspres-callout-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: #ffffff !important;
    padding: 11px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.28);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ekspres-callout-wa-btn:hover {
    background: #1eb857;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.38);
    color: #ffffff !important;
}

.ekspres-callout-wa-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Alt Açıklamalar */
.ekspres-table-footer-notes {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ekspres-footer-note-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
}

.ekspres-footer-note-item .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
    color: #059669;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Bilgi ve Uyarı Kutuları */
.ekspres-alert-box {
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
    margin: 16px 0;
}

.ekspres-alert-warning {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    color: #92400e;
}

.ekspres-alert-info {
    background: #eff6ff;
    border: 1px solid #dbeafe;
    color: #1e40af;
}

/* Responsive Kurallar: Container Query */
@container eksprestbl (max-width: 680px) {
    .ekspres-dual-table-grid {
        grid-template-columns: 1fr !important;
    }
    .ekspres-table-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
    .ekspres-table-toolbar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    .ekspres-table-search-box {
        width: 100% !important;
    }
    .ekspres-callout-content {
        flex-direction: column !important;
        text-align: center !important;
    }
    .ekspres-callout-action,
    .ekspres-callout-wa-btn {
        width: 100% !important;
        justify-content: center !important;
    }
}

@container eksprestbl (max-width: 480px) {
    .ekspres-price-table-card {
        padding: 16px 12px !important;
    }
    .ekspres-price-table thead th:nth-child(2),
    .ekspres-price-table tbody td:nth-child(2) {
        display: none !important; /* Hizmet sütununu dar ekranda gizle, Ağırlık ve Fiyat öne çıksın */
    }
    .ekspres-price-table thead th:nth-child(3),
    .ekspres-price-table tbody td:nth-child(3) {
        display: none !important; /* Teslimat sütununu da dar ekranda gizle */
    }
    .ekspres-price-table thead th,
    .ekspres-price-table tbody td {
        padding: 9px 10px !important;
    }
    .ekspres-price-val {
        font-size: 15px !important;
    }
    .ekspres-table-btn {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }
}

/* Media Query Fallback */
@media (max-width: 680px) {
    .ekspres-dual-table-grid {
        grid-template-columns: 1fr !important;
    }
    .ekspres-table-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }
    .ekspres-table-toolbar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }
    .ekspres-table-search-box {
        width: 100% !important;
    }
    .ekspres-callout-content {
        flex-direction: column !important;
        text-align: center !important;
    }
    .ekspres-callout-action,
    .ekspres-callout-wa-btn {
        width: 100% !important;
        justify-content: center !important;
    }
}

@media (max-width: 480px) {
    .ekspres-price-table-card {
        padding: 16px 12px !important;
    }
    .ekspres-price-table thead th:nth-child(2),
    .ekspres-price-table tbody td:nth-child(2) {
        display: none !important;
    }
    .ekspres-price-table thead th:nth-child(3),
    .ekspres-price-table tbody td:nth-child(3) {
        display: none !important;
    }
    .ekspres-price-table thead th,
    .ekspres-price-table tbody td {
        padding: 9px 10px !important;
    }
    .ekspres-price-val {
        font-size: 15px !important;
    }
    .ekspres-table-btn {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }
}

