/* Isolated cart behavior; tvall-inner-btn supplies the theme's visual effects. */
#cjsc-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 1000;
    box-sizing: border-box;
    padding: 12px 24px calc(12px + env(safe-area-inset-bottom, 0px));
    margin: 0;
    border: 1px solid #e3e1dd;
    background: #fffefa;
    box-shadow: 0 -4px 18px rgb(0 0 0 / 8%);
    font-family: inherit;
    color: #222;
    letter-spacing: 0;
    text-align: left;
}
#cjsc-bar *, #cjsc-bar *::before, #cjsc-bar *::after {
    box-sizing: border-box;
    letter-spacing: 0;
}
#cjsc-bar[hidden], #cjsc-spacer[hidden], #cjsc-bar [hidden] {
    display: none !important;
}
#cjsc-bar .cjsc-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 1320px;
    margin: 0 auto;
}
#cjsc-bar .cjsc-image {
    flex: 0 0 56px;
    display: block;
    width: 56px;
    height: 56px;
    object-fit: contain;
    background: #fff;
}
#cjsc-bar .cjsc-summary {
    flex: 1;
    min-width: 0;
}
#cjsc-bar .cjsc-name {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}
#cjsc-bar .cjsc-options {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    min-height: 30px;
    margin: 0;
    padding: 2px 0;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 13px;
    line-height: 1.4;
    color: #555;
    cursor: pointer;
}
#cjsc-bar .cjsc-selection {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-decoration: underline;
    text-underline-offset: 3px;
}
#cjsc-bar .cjsc-prices {
    flex: 0 0 auto;
    text-align: right;
    white-space: nowrap;
}
#cjsc-bar .cjsc-old-price {
    display: block;
    font-size: 12px;
    line-height: 1.25;
    color: #777;
    text-decoration: line-through;
}
#cjsc-bar .cjsc-price {
    display: block;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}
#cjsc-bar .cjsc-buy {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 240px;
    min-height: 52px;
    padding: 12px 24px;
    margin: 0;
    border: 0;
    border-radius: var(--cjsc-radius, 3px);
    background: var(--cjsc-button-bg, #f9e489);
    color: var(--cjsc-button-color, #111);
    font: inherit;
    font-family: var(--cjsc-button-font, inherit);
    font-size: 15px;
    font-weight: var(--cjsc-button-weight, 300);
    text-transform: var(--cjsc-button-transform, uppercase);
    box-shadow: var(--cjsc-button-shadow, 4px 4px 4px rgb(0 0 0 / 14%));
    line-height: 1.3;
    cursor: pointer;
}
#cjsc-bar .cjsc-buy-label {
    letter-spacing: var(--cjsc-button-tracking, .3px);
}
#cjsc-bar .cjsc-buy svg {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}
#cjsc-bar .cjsc-buy:hover:not(:disabled) svg {
    color: #fff;
}
#cjsc-bar .cjsc-buy:disabled {
    opacity: .55;
    cursor: not-allowed;
}
#cjsc-bar button:focus-visible {
    outline: 2px solid #222;
    outline-offset: 3px;
}
#cjsc-spacer {
    display: block;
    height: var(--cjsc-reserved-height, 0px);
}
body#product.cjsc-hide-top .tvbottom-to-top {
    display: none !important;
}
body#product.cjsc-wa-managed .cjwa-fab {
    bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important;
}
body#product.cjsc-wa-managed.cjsc-visible .cjwa-fab {
    bottom: calc(var(--cjsc-reserved-height, 0px) + 20px) !important;
}
body#product .cjsc-highlight {
    outline: 2px solid #c9a654;
    outline-offset: 5px;
}
@media (max-width: 767px) {
    #cjsc-bar {
        padding: 9px 12px calc(9px + env(safe-area-inset-bottom, 0px));
    }
    #cjsc-bar .cjsc-inner {
        display: grid;
        grid-template-columns: minmax(92px, 1fr) minmax(0, 1.4fr);
        gap: 0 10px;
    }
    #cjsc-bar .cjsc-image, #cjsc-bar .cjsc-name {
        display: none;
    }
    #cjsc-bar .cjsc-prices {
        grid-column: 1;
        grid-row: 1;
        text-align: left;
    }
    #cjsc-bar .cjsc-summary {
        grid-column: 1;
        grid-row: 2;
    }
    #cjsc-bar .cjsc-options {
        min-height: 28px;
        font-size: 12px;
    }
    #cjsc-bar .cjsc-price {
        font-size: 18px;
    }
    #cjsc-bar .cjsc-buy {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: stretch;
        min-width: 0;
        min-height: 48px;
        padding: 10px 8px;
        font-size: 13px;
    }
    #cjsc-bar .cjsc-buy svg {
        flex: 0 0 18px;
        width: 18px;
        height: 18px;
    }
}
