/* TransTrade – Slide Cart */
.ttsc-floating-button {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 99991;
    width: 62px;
    height: 62px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0870f8;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 15px 38px rgba(8, 112, 248, .32);
    transition: transform .2s ease, background .2s ease;
}

.ttsc-floating-button:hover {
    background: #005ed9;
    transform: translateY(-2px);
}

.ttsc-floating-button svg {
    width: 27px;
    height: 27px;
    fill: currentColor;
}

.ttsc-count {
    position: absolute;
    top: -4px;
    right: -3px;
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    border: 3px solid #fff;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ff4d4f;
    color: #fff;
    font: 700 10px/1 Poppins, Arial, sans-serif;
    box-sizing: border-box;
}

.ttsc-overlay {
    position: fixed;
    inset: 0;
    z-index: 99992;
    background: rgba(5, 22, 46, .42);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    backdrop-filter: blur(2px);
}

.ttsc-drawer {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99993;
    width: min(420px, calc(100vw - 24px));
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    font-family: Poppins, Arial, sans-serif;
    box-shadow: 25px 0 60px rgba(5, 24, 52, .18);
    transform: translateX(-105%);
    transition: transform .3s cubic-bezier(.2,.8,.2,1);
}

body.ttsc-open {
    overflow: hidden;
}

body.ttsc-open .ttsc-overlay {
    opacity: 1;
    visibility: visible;
}

body.ttsc-open .ttsc-drawer {
    transform: translateX(0);
}

.ttsc-header {
    min-height: 92px;
    padding: 20px 22px;
    border-bottom: 1px solid #e1eaf3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.ttsc-header span {
    display: block;
    margin-bottom: 3px;
    color: #0870f8;
    font-size: 10px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: .05em;
}

.ttsc-header h3 {
    margin: 0;
    color: #071a38;
    font-size: 22px;
    line-height: 1.25;
}

.ttsc-close {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #d7e3ef;
    border-radius: 9px;
    background: #f7faff;
    color: #243b59;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.ttsc-panel-content {
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ttsc-products {
    min-height: 0;
    padding: 18px;
    overflow-y: auto;
}

.ttsc-product {
    position: relative;
    padding: 16px 38px 16px 14px;
    border: 1px solid #dae5f0;
    border-radius: 11px;
    display: flex;
    gap: 13px;
    background: #fff;
    transition: opacity .2s ease;
}

.ttsc-product + .ttsc-product {
    margin-top: 11px;
}

.ttsc-product.ttsc-removing {
    opacity: .4;
    pointer-events: none;
}

.ttsc-product-icon {
    width: 45px;
    height: 45px;
    flex: 0 0 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaf3ff;
    color: #0870f8;
}

.ttsc-product-icon svg,
.ttsc-empty-icon svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.ttsc-product-info {
    min-width: 0;
    flex: 1;
}

.ttsc-product-info h4 {
    margin: 0;
    color: #071a38;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
}

.ttsc-product-info p {
    margin: 4px 0 7px;
    color: #718197;
    font-size: 10px;
}

.ttsc-product-info strong {
    color: #0870f8;
    font-size: 15px;
}

.ttsc-remove {
    position: absolute;
    top: 9px;
    right: 10px;
    width: 25px;
    height: 25px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca9b8;
    text-decoration: none;
    font-size: 20px;
    line-height: 1;
}

.ttsc-remove:hover {
    background: #fff0f0;
    color: #d63638;
}

.ttsc-summary {
    margin-top: auto;
    padding: 18px 22px;
    border-top: 1px solid #e1eaf3;
    background: #f7faff;
}

.ttsc-summary > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ttsc-summary span {
    color: #60728a;
    font-size: 12px;
}

.ttsc-summary strong {
    color: #071a38;
    font-size: 20px;
}

.ttsc-summary p {
    margin: 7px 0 0;
    color: #718197;
    font-size: 9px;
    line-height: 1.5;
}

.ttsc-actions {
    padding: 15px 22px 22px;
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 9px;
    background: #f7faff;
}

.ttsc-actions a {
    min-height: 46px;
    padding: 0 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    box-sizing: border-box;
}

.ttsc-cart-link {
    border: 1px solid #bfd1e5;
    background: #fff;
    color: #17304f;
}

.ttsc-checkout-link {
    border: 1px solid #0870f8;
    background: #0870f8;
    color: #fff;
}

.ttsc-empty {
    margin: auto;
    padding: 40px 24px;
    text-align: center;
}

.ttsc-empty-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaf3ff;
    color: #0870f8;
}

.ttsc-empty h4 {
    margin: 0 0 6px;
    color: #071a38;
    font-size: 18px;
}

.ttsc-empty p {
    margin: 0;
    color: #718197;
    font-size: 11px;
}

@media (max-width: 600px) {
    .ttsc-floating-button {
        left: 14px;
        bottom: 14px;
        width: 56px;
        height: 56px;
    }

    .ttsc-drawer {
        width: calc(100vw - 14px);
    }

    .ttsc-actions {
        grid-template-columns: 1fr;
    }
}


/* Ukrycie pływającej ikony, gdy koszyk jest pusty */
.ttsc-floating-button.ttsc-cart-empty {
    display: none !important;
}
