
:root {
    --csc-width: 390px;
    --csc-border: #e9e9e9;
    --csc-text: #111;
    --csc-muted: #666;
    --csc-button: #071d38;
}

#csc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.62);
    z-index: 999997;
    opacity: 0;
    visibility: hidden;
    transition: .25s ease;
}

#csc-overlay.csc-open {
    opacity: 1;
    visibility: visible;
}

#csc-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(var(--csc-width), 92vw);
    height: 100vh;
    background: #fff;
    z-index: 999998;
    transform: translateX(105%);
    transition: transform .3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 30px rgba(0,0,0,.14);
    font-family: inherit;
}

#csc-drawer.csc-open { 
    transform: translateX(0); 
    z-index: 9999999;
    
}

.csc-header {
    height: 58px;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border-bottom: 1px solid var(--csc-border);
}

.csc-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--csc-text);
}

#csc-close {
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #111;
    padding: 0;
}

#csc-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.csc-cart-items { padding: 12px 12px 0; }

.csc-cart-item {
    position: relative;
    display: flex;
    gap: 12px;
    padding: 10px 4px 14px;
    border-bottom: 1px solid #eee;
}

.csc-item-image {
    width: 70px;
    min-width: 70px;
}

.csc-item-image img {
    width: 70px !important;
    height: 70px !important;
    object-fit: cover;
    display: block;
}

.csc-item-content { min-width: 0; flex: 1; padding-right: 15px; }

.csc-item-name {
    display: block;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    margin: 2px 0 5px;
}

.csc-variation {
    font-size: 11px;
    color: #777;
    line-height: 1.4;
}

.csc-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 9px;
}

.csc-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 3px;
    overflow: hidden;
}

.csc-qty button {
    border: 0;
    background: #fff;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 15px;
}

.csc-qty span {
    min-width: 27px;
    text-align: center;
    font-size: 12px;
}

.csc-item-price {
    font-size: 12px;
    font-weight: 600;
}

.csc-remove {
    position: absolute;
    right: 1px;
    top: 8px;
    border: 0;
    background: transparent;
    color: #222;
    font-size: 19px;
    cursor: pointer;
    line-height: 1;
}

.csc-cross-wrap { padding: 14px 12px 4px; }

.csc-cross-sells {
    border-top: 1px solid #eee;
    padding-top: 13px;
}

.csc-section-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 10px;
}

.csc-cross-sell {
    display: flex;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #f0f0f0;
}

.csc-cross-image {
    width: 60px;
    min-width: 60px;
}

.csc-cross-image img {
    width: 60px !important;
    height: 60px !important;
    object-fit: cover;
    display: block;
}

.csc-cross-info {
    min-width: 0;
    flex: 1;
    position: relative;
    padding-right: 55px;
}

.csc-cross-name {
    display: block;
    color: #111;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
}

.csc-cross-price {
    margin-top: 5px;
    font-size: 11px;
}

.csc-add-cross,
.csc-select-cross {
    position: absolute;
    right: 0;
    bottom: 0;
    border: 0;
    border-radius: 2px;
    padding: 6px 10px;
    background: var(--csc-button);
    color: #fff !important;
    text-decoration: none;
    cursor: pointer;
    font-size: 11px;
    line-height: 1;
}

.csc-add-cross.csc-loading {
    opacity: .5;
    pointer-events: none;
}

.csc-footer {
    margin-top: auto;
    background: #fff;
    border-top: 1px solid #ddd;
    padding: 12px;
    box-shadow: 0 -3px 12px rgba(0,0,0,.04);
}

.csc-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 10px;
}

.csc-subtotal strong { font-size: 13px; }

.csc-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.csc-btn {
    width: 100%;
    box-sizing: border-box;
    min-height: 34px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none !important;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 600;
    background: var(--csc-button);
    color: #fff !important;
    border: 1px solid var(--csc-button);
    cursor: pointer;
}

.csc-continue {
    order: -1;
    background: #fff;
    color: var(--csc-button) !important;
}

.csc-empty {
    padding: 40px 20px;
    text-align: center;
    color: #777;
    font-size: 14px;
}

#csc-floating {
    position: fixed;
    right: 20px;
    bottom: 125px;
    width: 64px;
    height: 64px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #0a2641;
    cursor: pointer;
    z-index: 1000001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 7px 24px rgba(0,0,0,.28), 0 0 0 3px rgba(255,255,255,.9);
    transition: transform .2s ease, box-shadow .2s ease;
}

#csc-floating:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 28px rgba(0,0,0,.32), 0 0 0 3px rgba(255,255,255,.95);
}

.csc-bag-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.csc-bag-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

.csc-count {
    position: absolute;
    right: 43px;
    min-width: 18px;
    padding: 0 4px;
    box-sizing: border-box;
    border-radius: 20px;
    background: #111;
    color: #fff;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    top: -9px;
    left: -8px;
    height: 28px;
    line-height: 28px;
    width: 28px;
}

@media (max-width: 480px) {
    :root { --csc-width: 100vw; }
    #csc-floating { right: 14px; bottom: 108px; width: 54px; height: 54px; }
}
