/* ============================================================
   EURO-DREWNO — Koszyk Zapytań  |  inquiry-cart.css
   ============================================================ */

/* ─── 0. WRAPPER 2-PANELOWY (koszyk ↔ konfigurator) ──────────── */
.ed-sidebar-wrap {
    position: relative;
    overflow: hidden;
    /* ukrywa drugi panel poza widokiem */
    border: 1.5px solid #E8E0D5;
    border-radius: 10px;
    background: #FDFAF6;
    font-family: Arial, sans-serif;
}

/* Oba panele leżą obok siebie wewnątrz wrappera */
.ed-sidebar-panels {
    display: flex;
    width: 200%;
    transition: transform 0.35s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}

/* Gdy wrapper ma klasę .show-cfg, przesuwa się do panelu B */
.ed-sidebar-wrap.show-cfg .ed-sidebar-panels {
    transform: translateX(-50%);
}

/* Każdy panel zajmuje połowę szerokości (= 100% widocznego obszaru) */
.ed-sidebar-panel {
    width: 50%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    box-sizing: border-box;
    min-width: 0;
    /* fix dla flex overflow */
}

/* ─── 1. SIDEBAR (Panel A) ────────────────────────────────────── */
/* Wygląd zachowany, layout przejmuje .ed-sidebar-panel */


/* ─── 2. HEADER ──────────────────────────────────────────────── */
.ed-cart-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ed-cart-header__icon {
    color: #5C3D1E;
    flex-shrink: 0;
}

.ed-cart-header__icon svg {
    stroke: #5C3D1E !important;
    fill: none !important;
    display: block;
}

.ed-cart-header__title {
    font-size: 15px !important;
    font-weight: 700;
    color: #5C3D1E;
    margin: 0;
    flex-grow: 1;
    letter-spacing: 0.3px !important;
    word-spacing: 1px !important;
}

/* ─── 3. BADGE (licznik) ─────────────────────────────────────── */
.ed-cart-badge {
    background: #C4956A;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    transition: transform 0.2s ease;
}

/* ─── 4. BOUNCE ANIMATION ────────────────────────────────────── */
@keyframes edCartBounce {
    0% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.55);
    }

    55% {
        transform: scale(0.88);
    }

    75% {
        transform: scale(1.18);
    }

    90% {
        transform: scale(0.96);
    }

    100% {
        transform: scale(1);
    }
}

.ed-cart-bounce {
    animation: edCartBounce 0.4s ease forwards;
}

/* ─── 5. EMPTY STATE ─────────────────────────────────────────── */
.ed-cart-empty {
    text-align: center;
    color: #888;
    font-size: 13px;
    line-height: 1.6;
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.ed-cart-empty svg {
    stroke: #C4956A !important;
    fill: none !important;
    display: block;
}

/* ─── 6. ITEMS LIST ──────────────────────────────────────────── */
.ed-cart-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 340px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #E8E0D5 transparent;
}

.ed-cart-item {
    background: #FFFFFF;
    border: 1px solid #E8E0D5;
    border-radius: 6px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ed-cart-item__name {
    font-size: 13px;
    font-weight: 700;
    color: #5C3D1E;
    line-height: 1.3;
}

.ed-cart-item__config {
    font-size: 11px;
    color: #888;
    line-height: 1.4;
    font-style: italic;
}


/* Kontrolki ilości */
.ed-cart-item__controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ed-qty-btn {
    width: 28px;
    height: 28px;
    border: 1.5px solid #C4956A;
    border-radius: 6px;
    background: transparent;
    color: #C4956A;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
    flex-shrink: 0;
}

.ed-qty-btn:hover {
    background: #C4956A;
    color: #FFFFFF;
}

.ed-qty-input {
    width: 44px;
    height: 28px;
    text-align: center;
    border: 1.5px solid #E8E0D5;
    border-radius: 6px;
    font-size: 13px;
    font-family: Arial, sans-serif;
    color: #5C3D1E;
    -moz-appearance: textfield;
    appearance: textfield;
}

.ed-qty-input::-webkit-inner-spin-button,
.ed-qty-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.ed-cart-item__unit {
    font-size: 12px;
    color: #888;
    margin-right: auto;
}

.ed-cart-remove {
    background: #8D6E4E;
    border: none;
    cursor: pointer;
    color: #FFFFFF !important;
    font-size: 20px;
    line-height: 1;
    padding: 4px;
    transition: color 0.15s ease, background 0.15s ease;
    border-radius: 50%;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ed-cart-remove:hover {
    color: #FFFFFF !important;
    background: #c0392b;
}

/* ─── 7. CART FOOTER ─────────────────────────────────────────── */
.ed-cart-footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ed-cart-submit-btn {
    padding: 12px;
    background: #C4956A;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: background 0.18s ease;
}

.ed-cart-submit-btn:not(:disabled):hover {
    background: #5C3D1E;
}

.ed-cart-submit-btn:disabled,
.ed-cart-submit-btn[aria-disabled="true"] {
    background: #ccc;
    cursor: not-allowed;
}

.ed-cart-clear-btn {
    background: none;
    border: 1px solid #c0392b;
    color: #c0392b !important;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    padding: 4px 10px;
    border-radius: 4px;
    transition: color 0.15s ease, background 0.15s ease;
}

.ed-cart-clear-btn:hover {
    background: #c0392b;
    color: #fff !important;
}

/* ─── 8. OVERLAY ─────────────────────────────────────────────── */
.ed-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999998;
    animation: edFadeIn 0.2s ease;
}

@keyframes edFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ─── 9. MODAL ───────────────────────────────────────────────── */
.ed-inquiry-modal {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    pointer-events: none;
}

.ed-inquiry-modal:not([hidden]) {
    pointer-events: auto;
    animation: edModalIn 0.25s ease;
}

@keyframes edModalIn {
    from {
        opacity: 0;
        transform: translateY(-16px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.ed-inquiry-modal[hidden] {
    display: none;
}

.ed-modal-inner {
    background: #FFFFFF;
    border-radius: 12px;
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    font-family: Arial, sans-serif;
    scrollbar-width: thin;
}

/* ─── 10. MODAL HEADER ───────────────────────────────────────── */
.ed-modal-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.ed-modal-title {
    font-size: 20px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    color: #5C3D1E;
    margin: 0;
    flex-grow: 1;
}

.ed-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #888;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.15s ease, background 0.15s ease;
}

.ed-modal-close:hover {
    color: #5C3D1E;
    background: #F5EFE6;
}

/* ─── 11. CART SUMMARY W MODALU ──────────────────────────────── */
.ed-modal-cart-summary {
    background: #F5EFE6;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 24px;
}

.ed-modal-cart-summary h3 {
    font-size: 13px;
    font-weight: 700;
    color: #5C3D1E;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ed-modal-cart-summary ul {
    margin: 0;
    padding: 0 0 0 16px;
    font-size: 13px;
    color: #333;
    line-height: 1.7;
}

/* ─── 12. FORMULARZ ──────────────────────────────────────────── */
.ed-form-row--2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.ed-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
}

.ed-form-group label {
    font-size: 13px;
    font-weight: 700;
    color: #5C3D1E;
}

.ed-form-group label span {
    font-weight: 400;
    color: #888;
}

.ed-form-group input[type=text],
.ed-form-group input[type=email],
.ed-form-group input[type=tel],
.ed-form-group textarea {
    padding: 9px 12px;
    border: 1.5px solid #D8D0C5;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: #333;
    transition: border-color 0.18s ease;
    outline: none;
}

.ed-form-group input:focus,
.ed-form-group textarea:focus {
    border-color: #C4956A;
    box-shadow: 0 0 0 3px rgba(196, 149, 106, 0.15);
}

.ed-form-group textarea {
    resize: vertical;
    min-height: 70px;
}

/* Checkbox — pozycjonowanie absolutne checkboxa, tekst płynie normalnie */
.ed-form-group--checkbox label {
    display: block;
    position: relative;
    padding-left: 26px;
    font-weight: 400;
    font-size: 12px !important;
    color: #555;
    cursor: pointer;
    line-height: 1.6;
}

.ed-form-group--checkbox input[type="checkbox"] {
    position: absolute;
    left: 0;
    top: 3px;
    width: 15px;
    height: 15px;
    accent-color: #C4956A;
    flex-shrink: unset;
    margin: 0;
}

.ed-form-group--checkbox a {
    color: #C4956A;
    font-size: 12px !important;
    font-weight: 400 !important;
    text-decoration: underline;
    display: inline !important;
    line-height: inherit;
}

/* ─── 13. KOMUNIKAT ──────────────────────────────────────────── */
.ed-form-msg {
    font-size: 14px;
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 14px;
    display: none;
}

.ed-form-msg:not(:empty) {
    display: block;
}

.ed-form-msg--success {
    background: #EBF5EB;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.ed-form-msg--error {
    background: #FDECEA;
    color: #c0392b;
    border: 1px solid #ef9a9a;
}

/* ─── 14. PRZYCISK WYŚLIJ ────────────────────────────────────── */
.ed-form-actions {
    display: flex;
    justify-content: flex-end;
}

.ed-form-submit {
    padding: 13px 36px;
    background: #C4956A;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: background 0.18s ease;
}

.ed-form-submit:not(:disabled):hover {
    background: #5C3D1E;
}

.ed-form-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ─── 15. RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 640px) {
    .ed-form-row--2col {
        grid-template-columns: 1fr;
    }

    .ed-modal-inner {
        padding: 20px 16px;
    }

    .ed-modal-title {
        font-size: 17px;
    }
}

/* ─── 16. MINI-KONFIGURATOR (Panel B) ────────────────────────── */
.ed-cfg-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid #E8E0D5;
}

.ed-cfg-back {
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: 1.5px solid #E8E0D5;
    border-radius: 6px;
    padding: 5px 10px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #888;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color .15s, color .15s;
}

.ed-cfg-back:hover {
    border-color: #C4956A;
    color: #5C3D1E;
}

.ed-cfg-header__product {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ed-cfg-header__product strong {
    font-size: 14px;
    color: #5C3D1E;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ed-cfg-header__product span {
    font-size: 12px;
    color: #888;
}

.ed-cfg-intro {
    font-size: 13px;
    color: #888;
    margin: 0;
    line-height: 1.5;
}

.ed-cfg-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    max-height: 340px;
    scrollbar-width: thin;
    scrollbar-color: #E8E0D5 transparent;
    padding-right: 2px;
}

.ed-cfg-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ed-cfg-field-group label {
    font-size: 12px;
    font-weight: 700;
    color: #5C3D1E;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.ed-cfg-field-group input[type="text"],
.ed-cfg-field-group input[type="number"],
.ed-cfg-field-group textarea {
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: #333;
    background: #fff;
    border: 1.5px solid #E8E0D5;
    border-radius: 6px;
    padding: 8px 10px;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    transition: border-color .15s;
}

.ed-cfg-field-group input:focus,
.ed-cfg-field-group textarea:focus {
    border-color: #C4956A;
    box-shadow: 0 0 0 3px rgba(196, 149, 106, .12);
}

.ed-cfg-field-group textarea {
    resize: vertical;
    min-height: 70px;
}

.ed-cfg-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ed-cfg-chip {
    padding: 5px 12px;
    border: 1.5px solid #E8E0D5;
    border-radius: 20px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #5C3D1E;
    background: #fff;
    cursor: pointer;
    transition: border-color .13s, background .13s, color .13s;
    white-space: nowrap;
}

.ed-cfg-chip:hover {
    border-color: #C4956A;
    background: #FFF7EF;
}

.ed-cfg-chip.selected {
    background: #5C3D1E;
    border-color: #5C3D1E;
    color: #fff;
}

.ed-cfg-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1.5px solid #E8E0D5;
}

.ed-cfg-add-btn {
    width: 100%;
    padding: 12px;
    background: #C4956A;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background .18s;
}

.ed-cfg-add-btn:hover {
    background: #5C3D1E;
}

/* Info Box w konfiguratorze */
.ed-cfg-info-box {
    background: #FDF5ED;
    border: 1px solid #E8E0D5;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 24px;
}

.ed-cfg-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ed-cfg-info-list li {
    font-size: 13px;
    color: #5C3D1E;
    line-height: 1.4;
    display: flex;
    justify-content: space-between;
}

.ed-cfg-info-list li strong {
    color: #8D6E4E;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   FLOATING SIDEBAR (globalny — poza /produkty)
   Slideout drawer z prawej strony ekranu
═══════════════════════════════════════════════════════════ */

.ed-floating-sidebar {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    pointer-events: none;
    visibility: hidden;
    overflow: hidden; /* zapobiega overflow content poza viewport */
}

.ed-floating-sidebar.is-open {
    pointer-events: auto;
    visibility: visible;
}

/* Backdrop */
.ed-floating-sidebar__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ed-floating-sidebar.is-open .ed-floating-sidebar__backdrop {
    opacity: 1;
}

/* Drawer */
.ed-floating-sidebar__drawer {
    position: absolute;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 92vw;
    height: 100%;
    background: #FDFAF6;
    box-shadow: -6px 0 30px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(.4, 0, .2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden; /* zapobiega h-scroll od ed-sidebar-panels 200% */
}

.ed-floating-sidebar.is-open .ed-floating-sidebar__drawer {
    transform: translateX(0);
}

/* Close button */
.ed-floating-sidebar__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #5C3D1E;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: background 0.2s, transform 0.2s;
}

.ed-floating-sidebar__close:hover {
    background: #3D2610;
    transform: scale(1.1);
}

.ed-floating-sidebar__close svg {
    stroke: #FFFFFF !important;
    fill: none !important;
    display: block;
    pointer-events: none;
}

/* Sidebar wrap wewnątrz drawera — zajmuje 100% */
.ed-floating-sidebar .ed-sidebar-wrap {
    border: none;
    border-radius: 0;
    flex: 1;
    min-height: 0;
}

.ed-floating-sidebar .ed-sidebar-panel {
    padding: 68px 24px 28px;
}

/* Mobilne poprawki */
@media (max-width: 480px) {
    .ed-floating-sidebar__drawer {
        width: 100vw;
        max-width: 100vw;
    }
}

/* ═══════════════════════════════════════════════════════════
   FLOATING ACTION BUTTON (FAB) — globalny przycisk koszyka
═══════════════════════════════════════════════════════════ */
.ed-cart-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 99998;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: #292929;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(41, 41, 41, 0);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.2s ease;
}

.ed-cart-fab svg {
    stroke: #FFFFFF !important;
    fill: none !important;
    display: block;
    pointer-events: none;
}

.ed-cart-fab:hover {
    transform: scale(1.1);
    background: #3D3D3D;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.3);
}

.ed-cart-fab:active {
    transform: scale(0.95);
}

/* Badge na FAB */
.ed-cart-fab__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #C4956A;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 6px rgba(196, 149, 106, 0.4);
    pointer-events: none;
}

/* Bounce na FAB po dodaniu */
@keyframes edFabPulse {
    0% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, .25), 0 0 0 0 rgba(196, 149, 106, .5);
    }

    50% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, .25), 0 0 0 14px rgba(196, 149, 106, 0);
    }

    100% {
        box-shadow: 0 4px 20px rgba(0, 0, 0, .25), 0 0 0 0 rgba(196, 149, 106, 0);
    }
}

.ed-cart-fab--pulse {
    animation: edFabPulse 0.6s ease;
}

@keyframes edFabBadgePop {
    0% {
        transform: scale(0.5);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.ed-cart-fab__badge--pop {
    animation: edFabBadgePop 0.35s ease;
}

/* Ukryj FAB na stronie katalogu (sidebar jest inline) */
.page-template-page-produkty .ed-cart-fab {
    display: none;
}

/* ═══════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
═══════════════════════════════════════════════════════════ */
.ed-toast-container {
    position: fixed;
    bottom: 96px;
    right: 28px;
    z-index: 99997;
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
    pointer-events: none;
}

.ed-toast {
    pointer-events: auto;
    background: #292929;
    color: #FFFFFF;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 22px 14px 18px;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 340px;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: edToastIn 0.35s ease forwards;
}

.ed-toast--success {
    border-left: 4px solid #4caf50;
}

.ed-toast__icon {
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1;
}

.ed-toast--out {
    animation: edToastOut 0.3s ease forwards;
}

@keyframes edToastIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes edToastOut {
    to {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
}

/* Mobilne poprawki FAB + toast */
@media (max-width: 480px) {
    .ed-cart-fab {
        bottom: 18px;
        right: 18px;
        width: 50px;
        height: 50px;
    }

    .ed-toast-container {
        bottom: 80px;
        right: 16px;
        left: 16px;
    }

    .ed-toast {
        max-width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════
   Z-INDEX — obniż Elementor sticky header gdy koszyk otwarty
═══════════════════════════════════════════════════════════ */
body.ed-cart-open #site-header,
body.ed-cart-open header.site-header,
body.ed-cart-open .elementor-sticky--active,
body.ed-cart-open [data-elementor-type="header"] {
    z-index: 99 !important;
}

/* ═══════════════════════════════════════════════════════════
   TEKST — fix dla "Twoje zapytanie" i innych napisów w koszyku
═══════════════════════════════════════════════════════════ */
.ed-floating-sidebar__drawer .ed-cart-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    writing-mode: horizontal-tb !important;
}

.ed-floating-sidebar__drawer .ed-cart-header__title,
.ed-floating-sidebar__drawer .ed-cart-item__name,
.ed-floating-sidebar__drawer .ed-cart-item__config,
.ed-floating-sidebar__drawer p,
.ed-floating-sidebar__drawer h2,
.ed-floating-sidebar__drawer h3,
.ed-floating-sidebar__drawer span,
.ed-floating-sidebar__drawer label,
.ed-floating-sidebar__drawer button {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
}