/* ===== PANEL KONTA ===== */

.orders-nr-link {
    display: block;
    color: #2f3a33 !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none !important;
}
.orders-nr-link:hover {
    color: #1f2a24 !important;
}
.order-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.order-meta span { font-size: 11px; color: #888; background: #f5f5f5; border-radius: 4px; padding: 1px 6px; }
.order-pay-link { display: inline-block; margin-top: 6px; padding: 3px 10px; background: #1565c0; color: #fff !important; border-radius: 20px; font-size: 11px; font-weight: 600; text-decoration: none !important; white-space: nowrap; text-transform: uppercase; letter-spacing: .3px; }
.order-pay-link:hover { background: #0d47a1; color: #fff !important; }
@media (max-width: 768px) {
    .orders-history tbody > tr > td {
        padding-bottom: 0 !important;
    }
}
.orders-details-row td {
    padding: 4px 0 14px 0 !important;
    border-top: 0 !important;
}
.orders-details-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0;
    min-height: 38px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fbfdfd;
    border: 1px solid #ebf3f3;
    color: #3a8d8d !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
    text-decoration: none !important;
    text-transform: uppercase;
}
.orders-details-btn svg {
    fill: currentColor;
    flex-shrink: 0;
    opacity: .82;
}
.orders-details-btn:hover {
    color: #2f7878 !important;
    background: #f6fbfb;
    border-color: #dfecec;
}

/* Nawigacja */
.konto-nav {
    display: flex;
    gap: 8px;
    margin: 0 0 20px;
    flex-wrap: wrap;
}
.konto-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 8px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    color: #555;
    text-decoration: none !important;
    transition: border-color .15s, color .15s;
    flex: 1;
    min-width: 60px;
    text-align: center;
}
.konto-nav-item svg { fill: #888; transition: fill .15s; }
.konto-nav-item:hover { border-color: #359444; color: #359444; }
.konto-nav-item:hover svg { fill: #359444; }
.konto-nav-item.kn-active {
    border-color: #359444;
    background: #f0f8f1;
    color: #359444;
    font-weight: 700;
}
.konto-nav-item.kn-active svg { fill: #359444; }
.konto-nav-logout {
    color: #767676;
}
.konto-nav-logout svg {
    fill: #9a9a9a !important;
}
.konto-nav-logout:hover {
    border-color: #d8d8d8 !important;
    color: #4f4f4f !important;
    background: #fafafa !important;
}
.konto-nav-logout:hover svg { fill: #666 !important; }

/* Welcome card */
.konto-welcome-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #359444 0%, #2d7a3a 100%);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 20px;
    color: #fff;
}
.konto-avatar {
    width: 48px; height: 48px;
    background: rgba(255,255,255,.2);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.konto-avatar svg { fill: #fff; }
.konto-welcome-name { font-size: 18px; font-weight: 700; line-height: 1.2; }
.konto-welcome-email { font-size: 12px; opacity: .8; margin-top: 3px; }

/* Section heading */
.konto-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #999;
    margin: 20px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
}

/* Status badges */
.status {
    display: inline-block !important;
    padding: 3px 10px !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: .3px !important;
    text-shadow: none !important;
    -webkit-text-stroke: 0 !important;
    font-family: 'Inter', Arial, sans-serif !important;
}
.status.send    { background: #e8f5e9 !important; color: #2e7d32 !important; }
.status.cancel  { background: #fdecea !important; color: #c62828 !important; }
.status.other   { background: #fffaf0 !important; color: #b26a1b !important; border: 1px solid #f2dfbf !important; }

/* Tabela historii */
.orders-history-desktop { display: block; }
.orders-history-mobile { display: none; }
.orders-history { width: 100%; font-size: 14px; border-collapse: separate; border-spacing: 0 0; }
.orders-history th {
    font-size: 11px !important;
    font-weight: 700 !important;
    font-family: 'Inter', Arial, sans-serif !important;
    color: #999 !important;
    text-transform: uppercase !important;
    letter-spacing: .3px;
    padding: 6px 10px;
    border-bottom: 2px solid #eee;
    text-align: left;
    background: none !important;
}
.orders-history td {
    padding: 11px 10px;
    border-top: 1px solid #ececec;
    border-bottom: 1px solid #ececec;
    vertical-align: middle;
    font-size: 14px;
    background: #fff;
}
.orders-history tbody > tr:not(.orders-details-row) td:first-child {
    border-left: 1px solid #ececec;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 0;
}
.orders-history tbody > tr:not(.orders-details-row) td:last-child {
    border-right: 1px solid #ececec;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 0;
}
.orders-history tbody > tr:not(.orders-details-row) td {
    border-bottom: 0;
}
.orders-history tr.orders-details-row td {
    padding: 0 10px 12px;
    border-top: 0;
    border-bottom: 1px solid #ececec;
    background: #fff;
}
.orders-history tr.orders-details-row td:first-child {
    border-left: 1px solid #ececec;
    border-right: 1px solid #ececec;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
.orders-history tbody > tr.orders-details-row {
    transform: translateY(0);
}
.orders-history tbody > tr.orders-details-row + tr:not(.orders-details-row) td {
    border-top-width: 12px;
    border-top-color: transparent;
}
.orders-history a { color: #359444; font-weight: 600; word-break: break-all; }
.orders-history .col-kwota { font-weight: 700; color: #333; text-align: right; }
.orders-history th.right { text-align: right; }

/* Mobile: historia zamówień jako osobne karty */
@media (max-width: 640px) {
    .orders-history-desktop { display: none; }
    .orders-history-mobile { display: block; }

    .orders-mobile-card {
        margin-bottom: 14px;
    }
    .orders-mobile-card__body {
        background: #fff;
        border: 1px solid #ececec;
        border-radius: 12px;
        overflow: hidden;
    }
    .orders-mobile-card__head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        padding: 14px 14px 10px;
        background: #fbfbfb;
        border-bottom: 1px solid #f2f2f2;
    }
    .orders-mobile-card__number {
        display: block;
        color: #2f3a33 !important;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.3;
        text-decoration: none !important;
        word-break: break-word;
    }
    .orders-mobile-card__date {
        flex-shrink: 0;
        font-size: 11px;
        font-weight: 600;
        color: #8a8a8a;
        text-align: right;
        line-height: 1.35;
        padding-top: 2px;
    }
    .orders-mobile-card__meta {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        padding: 10px 14px 0;
    }
    .orders-mobile-card__meta span {
        font-size: 10px;
        color: #7b7b7b;
        background: #f4f4f4;
        border-radius: 999px;
        padding: 3px 8px;
        line-height: 1.2;
    }
    .orders-mobile-card__products {
        padding: 12px 14px 0;
    }
    .orders-mobile-card__product-row {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        padding: 0 0 8px;
    }
    .orders-mobile-card__product-name {
        flex: 1 1 auto;
        min-width: 0;
        color: #2e2e2e;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.4;
    }
    .orders-mobile-card__product-meta {
        flex-shrink: 0;
        color: #666;
        font-size: 12px;
        font-weight: 600;
        text-align: right;
        line-height: 1.35;
        white-space: nowrap;
    }
    .orders-mobile-card__more {
        padding-top: 2px;
        color: #8a8a8a;
        font-size: 12px;
        font-weight: 600;
    }
    .orders-mobile-card__summary {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 14px;
        padding: 14px;
    }
    .orders-mobile-card__total-wrap,
    .orders-mobile-card__status-wrap {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    .orders-mobile-card__status-wrap {
        align-items: flex-end;
        text-align: right;
    }
    .orders-mobile-card__label {
        font-size: 10px;
        font-weight: 700;
        color: #9a9a9a;
        text-transform: uppercase;
        letter-spacing: .04em;
    }
    .orders-mobile-card__total {
        color: #222;
        font-size: 17px;
        font-weight: 700;
        line-height: 1.2;
    }
    .orders-mobile-card__actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 0 14px 14px;
    }
    .orders-mobile-card__pay {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 44px;
        padding: 12px 16px;
        box-sizing: border-box;
        border-radius: 10px;
        background: #1565c0;
        color: #fff !important;
        font-size: 14px;
        font-weight: 700;
        text-decoration: none !important;
        box-shadow: 0 2px 8px rgba(21,101,192,.22);
    }
    .orders-mobile-card__pay:hover {
        background: #0d47a1;
        color: #fff !important;
    }
    .orders-mobile-card__details {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 42px;
        padding: 11px 14px;
        box-sizing: border-box;
        border-radius: 10px;
        background: #fbfdfd;
        border: 1px solid #e8f1f1;
        color: #3a8d8d !important;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: .03em;
        text-transform: uppercase;
        text-decoration: none !important;
    }
    .orders-mobile-card__details:hover {
        color: #2f7878 !important;
        background: #f6fbfb;
        border-color: #dfecec;
    }
}

/* Sekcja opłacenia zamówienia */
.konto-pay-wrap {
    margin: 16px 0;
    border: 1.5px solid #fff3cd;
    border-radius: 10px;
    overflow: hidden;
}
.konto-pay-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff8e1;
    padding: 12px 14px;
    font-size: 13px;
    color: #5d4037;
    line-height: 1.5;
}
.konto-pay-alert svg { fill: #f59e0b; flex-shrink: 0; margin-top: 1px; }
.konto-pay-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px !important;
    background: #1565c0 !important;
    background-image: none !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(21,101,192,.3) !important;
    cursor: pointer;
    transition: background .15s;
    box-sizing: border-box;
}
.konto-pay-btn:hover {
    background: #0d47a1 !important;
    color: #fff !important;
}

/* Back / logout actions */
.konto-nav-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.konto-back-link,
.konto-nav-logout-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all .18s ease;
}
.konto-back-link {
    color: #359444;
    background: #f6fbf7;
    border: 1px solid #dcefe0;
    border-radius: 10px;
}
.konto-back-link:hover {
    color: #287a34;
    background: #eef8f0;
    border-color: #c8e5ce;
}
.konto-back-link svg { fill: #359444; }
.konto-nav-logout-link {
    color: #6b7280;
    background: #fff;
    border: 1px solid #e5e7eb;
    margin-left: auto;
}
.konto-nav-logout-link:hover {
    color: #111827;
    border-color: #d1d5db;
    background: #f9fafb;
}
.konto-nav-logout-link svg {
    fill: currentColor;
}
@media (max-width: 640px) {
    .konto-nav-actions {
        align-items: stretch;
    }
    .konto-back-link,
    .konto-nav-logout-link {
        justify-content: center;
        width: 100%;
    }
    .konto-nav-logout-link {
        margin-left: 0;
    }
    .orders-history tr {
        display: block;
        margin-bottom: 0;
        border: 1.5px solid #eee;
        border-radius: 12px;
        padding: 0;
        overflow: hidden;
        background: #fff;
    }
    .orders-history tr.orders-details-row {
        margin-bottom: 10px;
        border-top: 0;
        border-left: 1px solid #ececec;
        border-right: 1px solid #ececec;
        border-bottom: 1px solid #ececec;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
    .orders-history td:first-child a {
        font-size: 14px;
        font-weight: 700;
        word-break: break-all;
        display: block;
        line-height: 1.3;
        text-align: center;
    }
}

/* Szczegóły zamówienia — nagłówek */
.konto-order-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.konto-order-nr {
    font-size: 16px;
    font-weight: 700;
    color: #222;
}

/* Tabela podsumowania zamówienia */
.order-summary-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.order-summary-table td {
    padding: 8px 4px;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}
.order-summary-table td.right { text-align: right; color: #555; }
.order-summary-table td.left { text-align: left; padding-left: 12px; font-weight: 600; color: #333; }
.order-summary-table tr.grid-summary td { border-top: 2px solid #eee; border-bottom: none; padding-top: 12px; }
.order-summary-table tr.grid-summary td.right { font-size: 13px; font-weight: 700; color: #555; }
.order-summary-table tr.grid-summary td.left { font-size: 18px; color: #222 !important; }
.order-summary-table tr.grid-summary .prod-price { color: #222 !important; }
.order-summary-table tr.grid-summary strong { color: #359444 !important; font-size: 18px; }

/* Informacja o płatności */
.konto-payment-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    color: #555;
    margin: 12px 0;
}
.konto-payment-info strong { color: #222; }
.konto-payment-info svg { fill: #359444; flex-shrink: 0; }

/* Karta lojalnościowa */
.konto-loyalty-card {
    background: #fff;
    border: 1.5px solid #e8f5e9;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(53,148,68,.07);
}
.konto-loyalty-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.konto-loyalty-emoji {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}
.konto-loyalty-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    line-height: 1.2;
}
.konto-loyalty-count {
    font-size: 12px;
    color: #359444;
    font-weight: 600;
    margin-top: 2px;
}
.konto-loyalty-text {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 12px;
}
.konto-loyalty-progress { margin-top: 4px; }
.konto-loyalty-bar {
    height: 6px;
    background: #e8f5e9;
    border-radius: 10px;
    overflow: hidden;
}
.konto-loyalty-fill {
    height: 100%;
    background: linear-gradient(90deg, #359444, #5cb85c);
    border-radius: 10px;
    transition: width .4s ease;
}
.konto-loyalty-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #999;
    margin-top: 5px;
}
.konto-loyalty-labels strong { color: #359444; }
.konto-loyalty-info-tip {
    font-size: 11px;
    color: #aaa;
    cursor: help;
    margin-left: 2px;
}
.konto-orders-note {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 12px;
    color: #aaa;
    margin-bottom: 12px;
    line-height: 1.5;
}
.konto-orders-note svg { fill: #ccc; flex-shrink: 0; margin-top: 1px; }

/* Bottom spacing before site footer */
.konto-page-bottom,
.orders-history-desktop,
.orders-history-mobile,
.konto-tab-panel,
.basket-order-summary,
.form-gray {
    margin-bottom: 40px;
}
@media (max-width: 640px) {
    .konto-page-bottom,
    .orders-history-desktop,
    .orders-history-mobile,
    .konto-tab-panel,
    .basket-order-summary,
    .form-gray {
        margin-bottom: 32px;
    }
}

.konto-loyalty-rabat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 10px;
}
.konto-loyalty-rabat svg { fill: #359444; flex-shrink: 0; }
.konto-loyalty-rabat-grupa { font-weight: 400; opacity: .75; }
.konto-loyalty-max {
    font-size: 13px;
    color: #359444;
    font-weight: 600;
    text-align: center;
    padding: 6px 0 2px;
}

/* Zamów ponownie */
.konto-reorder-warning {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #5d4037;
    line-height: 1.5;
}
.konto-reorder-warning svg { fill: #f59e0b; flex-shrink: 0; margin-top: 1px; }
.konto-reorder-wrap {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}
.konto-reorder-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    padding: 13px 20px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    background: #359444 !important;
    background-image: none !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(53,148,68,.25);
    transition: background .15s, box-shadow .15s;
}
.konto-reorder-btn:hover {
    background: #2d7a3a !important;
    box-shadow: 0 4px 12px rgba(53,148,68,.35);
}
.konto-reorder-btn:disabled {
    background: #aaa !important;
    box-shadow: none;
    cursor: not-allowed;
}
.konto-reorder-note {
    font-size: 12px;
    color: #aaa;
    margin: 8px 0 0;
    text-align: center;
}

/* Formularz adresu — btn */
.account-form input[type="submit"],
.account-form .btn-success {
    margin-top: 4px;
}

/* Dwie kolumny wewnątrz karty lojalnościowej */
.konto-loyalty-cols {
    display: flex;
    gap: 0;
}
.konto-loyalty-col--left {
    flex: 3;
    padding-right: 20px;
    border-right: 1px solid #e8f5e9;
}
.konto-loyalty-col--right {
    flex: 2;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (max-width: 600px) {
    .konto-loyalty-cols { flex-direction: column; }
    .konto-loyalty-col--left { padding-right: 0; border-right: none; border-bottom: 1px solid #e8f5e9; padding-bottom: 14px; margin-bottom: 14px; }
    .konto-loyalty-col--right { padding-left: 0; }
}

/* Sekcja "Rabat za zakupy" wewnątrz karty lojalnościowej */
.konto-loyalty-spending-head {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin-bottom: 4px;
}
.konto-loyalty-spending-head svg { fill: #359444; flex-shrink: 0; }
.konto-loyalty-spending-pct {
    margin-left: auto;
    font-size: 14px;
    color: #359444;
    font-weight: 700;
}
.konto-loyalty-fill--spending {
    background: linear-gradient(90deg, #2d7a3a, #66bb6a) !important;
}
.konto-loyalty-spending-max {
    font-size: 13px;
    color: #359444;
    font-weight: 600;
    padding: 6px 0 4px;
}
.konto-loyalty-spending-note {
    font-size: 11px;
    color: #aaa;
    margin-top: 8px;
}
.konto-loyalty-spending-note a {
    color: #359444;
    font-weight: 600;
    text-decoration: none;
    margin-left: 2px;
}
.konto-loyalty-spending-note a:hover { text-decoration: underline; }

/* ===== ZAKŁADKI ZAMÓWIENIA ===== */
.konto-tabs {
    display: flex;
    background: #efefef;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 20px;
    gap: 3px;
    border-bottom: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.konto-tab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    padding: 9px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #777;
    background: none;
    border: none;
    border-bottom: none;
    border-radius: 9px;
    margin-bottom: 0;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, color .15s, box-shadow .15s;
    font-family: 'Inter', Arial, sans-serif;
    text-align: center;
}
.konto-tab-btn svg { fill: currentColor; flex-shrink: 0; }
.konto-tab-btn:hover { color: #444; }
.konto-tab-active {
    background: #fff !important;
    color: #222 !important;
    box-shadow: 0 1px 4px rgba(0,0,0,.13) !important;
    border-bottom: none !important;
}
.konto-tab-active svg { fill: #359444 !important; }
.konto-tab-hidden { display: none !important; }

/* Info row (dostawa) */
.konto-info-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    color: #555;
    margin-bottom: 4px;
}
.konto-info-row svg { fill: #359444; flex-shrink: 0; margin-top: 2px; }
.konto-info-row strong { color: #222; display: block; }
.konto-info-sub { font-size: 12px; color: #999; }
/* Adres dostawy */
.konto-address-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}
.konto-address-name { font-weight: 700; color: #222; }
.konto-address-tel {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
    font-size: 13px;
    color: #777;
}
.konto-address-tel svg { fill: #aaa; }
/* Uwagi */
.konto-order-uwagi {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #5d4037;
    line-height: 1.5;
}

/* ===== TIMELINE STATUSU ZAMÓWIENIA ===== */
.konto-timeline-card {
    background: #f8fdf9;
    border: 1.5px solid #e8f5e9;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 0 0 20px;
}
.konto-timeline-cancelled {
    background: #fff5f5;
    border-color: #fca5a5;
}
.konto-tl-header {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #999;
    margin-bottom: 14px;
}
.konto-tl-steps {
    display: flex;
    flex-direction: column;
}
.konto-tl-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.konto-tl-step:not(:last-child) {
    padding-bottom: 18px;
}
.konto-tl-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 24px;
    bottom: 0;
    width: 2px;
    background: repeating-linear-gradient(to bottom, #ddd 0px, #ddd 4px, transparent 4px, transparent 9px);
    z-index: 0;
}
.konto-tl-step.tl-done:not(:last-child)::before,
.konto-tl-step.tl-active:not(:last-child)::before {
    background: #359444;
}
.konto-tl-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    background: #f0f0f0;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.konto-tl-step.tl-done .konto-tl-dot {
    background: #359444;
    border-color: #359444;
}
.konto-tl-step.tl-done .konto-tl-dot::after {
    content: '✓';
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    margin-top: -1px;
}
.konto-tl-step.tl-active .konto-tl-dot {
    background: #359444;
    border-color: #359444;
    box-shadow: 0 0 0 5px rgba(53,148,68,.15);
}
.konto-tl-step.tl-active .konto-tl-dot::after {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fff;
    display: block;
}
.konto-tl-info {
    flex: 1;
    padding-top: 2px;
}
.konto-tl-name {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    line-height: 1.3;
}
.konto-tl-step.tl-future .konto-tl-name {
    color: #bbb;
    font-weight: 400;
}
.konto-tl-step.tl-active .konto-tl-name {
    color: #2e7d32;
    font-weight: 700;
}
/* Starsze eventy — wygaszone jak w Temu */
.konto-tl-step.tl-old .konto-tl-name { color: #999; font-weight: 400; }
.konto-tl-step.tl-old .konto-tl-dot { background: #e8e8e8; border-color: #ddd; }
.konto-tl-step.tl-old .konto-tl-dot::after { color: #bbb; }
/* Zwinięte eventy */
.konto-tl-collapsed { display: none; }
.konto-tl-time {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
}
.konto-tl-loc {
    font-size: 11px;
    color: #aaa;
    margin-top: 1px;
}
.konto-tl-tracking-nr {
    display: inline-block;
    margin-left: 8px;
    font-size: 10px;
    font-weight: 400;
    color: #aaa;
    letter-spacing: .3px;
    text-transform: none;
    vertical-align: middle;
}
.konto-tl-badge {
    display: inline-block;
    margin-top: 3px;
    padding: 2px 8px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
}
/* "Wyświetl więcej" */
.konto-tl-more-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #359444;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 0 4px;
    font-family: 'Inter', Arial, sans-serif;
}
.konto-tl-more-btn svg { fill: #359444; }
.konto-tl-more-btn:hover { text-decoration: underline; }
/* Mini pasek produktów */
.konto-tl-products-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.konto-tl-prod-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e8f5e9;
    flex-shrink: 0;
}
.konto-tl-prod-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    color: #359444;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: 'Inter', Arial, sans-serif;
    white-space: nowrap;
    text-decoration: none;
}
.konto-tl-prod-link svg { fill: #359444; }
.konto-tl-prod-link:hover { text-decoration: underline; }
/* Cancelled */
.konto-tl-cancel-row {
    display: flex;
    align-items: center;
    gap: 14px;
}
.konto-tl-cancel-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #c62828;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.konto-tl-cancel-title {
    font-size: 15px;
    font-weight: 700;
    color: #c62828;
}
.konto-tl-cancel-sub {
    font-size: 12px;
    color: #888;
    margin-top: 3px;
    line-height: 1.4;
}

/* Desktop: horizontal stepper — najstarszy po lewej, bieżący po prawej */
@media (min-width: 640px) {
    .konto-tl-steps {
        flex-direction: row-reverse; /* odwrócenie: DB daje DESC (newest first), tu newest ląduje po prawej */
    }
    .konto-tl-step {
        flex-direction: column;
        align-items: center;
        flex: 1;
        gap: 8px;
        text-align: center;
    }
    .konto-tl-step:not(:last-child) {
        padding-bottom: 0;
    }
    .konto-tl-step:not(:last-child)::before {
        top: 11px;
        left: calc(50% + 12px);
        right: -50%;
        bottom: auto;
        width: auto;
        height: 2px;
    }
    /* przy row-reverse linia "done" idzie od lewej do aktywnego */
    .konto-tl-step.tl-active:not(:last-child)::before,
    .konto-tl-step.tl-done:not(:last-child)::before {
        background: #359444;
    }
    .konto-tl-info { padding-top: 0; }
    .konto-tl-name { font-size: 11px; }
    .konto-tl-badge { font-size: 9px; padding: 1px 6px; }
    /* "Wyświetl więcej" schowane na desktopie — wszystkie eventy widoczne */
    .konto-tl-more-btn { display: none; }
    .konto-tl-collapsed { display: flex !important; }
}
