.cmc-c-root {
    --cmc-c-ink: #171717;
    --cmc-c-muted: #6b6b6b;
    --cmc-c-line: rgba(23, 23, 23, 0.08);
    --cmc-c-soft: #f6f6f6;
    --cmc-c-hot: #f58220;
    --cmc-c-hot-soft: rgba(245, 130, 32, 0.12);
    --cmc-c-ok: #0a8f3d;
    --cmc-c-ok-soft: #e8f7ee;
    --cmc-c-bad: #c01515;
    --w: 400px;
    font-family: inherit;
    color: var(--cmc-c-ink);
}

.cmc-c-root,
.cmc-c-root * {
    letter-spacing: 0 !important;
    word-spacing: normal !important;
    text-transform: none !important;
}

.cmc-c-root *,
.cmc-c-root *::before,
.cmc-c-root *::after {
    box-sizing: border-box;
}

.cmc-c-opac {
    position: fixed;
    inset: 0;
    z-index: 100180;
    background: rgba(17, 17, 17, 0.38);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

body.cmc-c-open .cmc-c-opac {
    opacity: 1;
    pointer-events: auto;
}

.cmc-c-drawer {
    position: fixed;
    top: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 100190;
    width: min(var(--w), calc(100vw - 40px));
    transform: translateX(calc(100% + 40px));
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

body.cmc-c-open .cmc-c-drawer {
    transform: translateX(0);
    pointer-events: auto;
}

.cmc-c-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border-radius: 16px;
    box-shadow: 20px 20px 48px -12px rgba(0, 0, 0, 0.35), 0 2px 10px rgba(0, 0, 0, 0.08);
}

.cmc-c-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--cmc-c-line);
}

.cmc-c-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--cmc-c-soft);
    color: var(--cmc-c-ink);
    cursor: pointer;
}

.cmc-c-x:hover {
    background: var(--cmc-c-hot-soft);
    color: var(--cmc-c-hot);
}

.cmc-c-head-copy h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--cmc-c-hot);
}

.cmc-c-count-label {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--cmc-c-muted);
}

.cmc-c-bar {
    padding: 12px 16px 14px;
    background: #fff;
}

.cmc-c-bar-copy {
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.35;
    color: var(--cmc-c-muted);
}

.cmc-c-bar-sum,
.cmc-c-bar-sum .amount,
.cmc-c-bar-sum .woocommerce-Price-amount {
    display: inline-block;
    margin: 0 2px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--cmc-c-ink);
    letter-spacing: -0.02em !important;
}

.cmc-c-bar.is-done {
    background: var(--cmc-c-ok-soft);
}

.cmc-c-bar.is-done .cmc-c-bar-copy,
.cmc-c-bar.is-done .cmc-c-bar-copy strong,
.cmc-c-bar.is-done .cmc-c-bar-copy .amount {
    color: var(--cmc-c-ok);
    font-size: 14px;
    font-weight: 700;
}

.cmc-c-track {
    display: block;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #eee;
}

.cmc-c-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f59a3d, var(--cmc-c-hot));
    transition: width 0.35s ease, background 0.25s ease;
}

.cmc-c-bar.is-done .cmc-c-fill {
    background: var(--cmc-c-ok);
}

.cmc-c-notice {
    margin: 0 16px 8px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    background: var(--cmc-c-ok-soft);
    color: var(--cmc-c-ok);
}

.cmc-c-notice.is-err {
    background: #fdecec;
    color: var(--cmc-c-bad);
}

.cmc-c-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 12px;
    background: var(--cmc-c-soft);
}

.cmc-c-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cmc-c-item {
    position: relative;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--cmc-c-line);
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.cmc-c-item:hover {
    border-color: #e4e4e4;
    box-shadow: 0 8px 18px -12px rgba(0, 0, 0, 0.28);
    transform: translateY(-1px);
}

.cmc-c-thumb,
.cmc-c-thumb img {
    display: block;
    width: 76px;
    height: 76px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--cmc-c-soft);
}

.cmc-c-info {
    min-width: 0;
    padding-right: 18px;
}

.cmc-c-name,
.cmc-c-name a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--cmc-c-ink);
    text-decoration: none;
}

.cmc-c-item:hover .cmc-c-name a {
    color: var(--cmc-c-hot);
}

.cmc-c-sku,
.cmc-c-item .variation,
.cmc-c-item .variation dt,
.cmc-c-item .variation dd {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--cmc-c-muted);
}

.cmc-c-item .variation {
    display: flex;
    flex-wrap: wrap;
    gap: 0 6px;
}

.cmc-c-item .variation p {
    margin: 0;
}

.cmc-c-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.cmc-c-step {
    display: inline-flex;
    align-items: center;
    height: 32px;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.cmc-c-step button,
.cmc-c-qty,
.cmc-c-qty-fixed {
    height: 32px;
    border: 0;
    background: transparent;
    color: var(--cmc-c-ink);
    font: inherit;
}

.cmc-c-step button {
    width: 28px;
    padding: 0;
    cursor: pointer;
}

.cmc-c-step button:hover {
    background: var(--cmc-c-soft);
}

.cmc-c-qty {
    width: 36px;
    padding: 0;
    text-align: center;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    -moz-appearance: textfield;
}

.cmc-c-qty::-webkit-outer-spin-button,
.cmc-c-qty::-webkit-inner-spin-button {
    appearance: none;
    margin: 0;
}

.cmc-c-sum {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.cmc-c-line,
.cmc-c-line .amount,
.cmc-c-line .woocommerce-Price-amount {
    font-size: 15px;
    font-weight: 700;
    color: var(--cmc-c-ok);
}

.cmc-c-save,
.cmc-c-save .amount {
    font-size: 11px;
    font-weight: 600;
    color: var(--cmc-c-ok);
}

.cmc-c-del {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #bbb;
    box-shadow: 0 0 0 1px #eee;
    cursor: pointer;
}

.cmc-c-del:hover {
    color: #fff;
    background: var(--cmc-c-bad);
    box-shadow: none;
}

.cmc-c-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 28px 16px;
    text-align: center;
}

.cmc-c-empty-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: var(--cmc-c-hot-soft);
    color: var(--cmc-c-hot);
}

.cmc-c-empty-ico svg {
    width: 32px;
    height: 32px;
}

.cmc-c-empty-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.cmc-c-empty-hint {
    max-width: 260px;
    margin: 8px 0 18px;
    font-size: 13px;
    color: var(--cmc-c-muted);
}

.cmc-c-foot {
    padding: 14px 16px 16px;
    background: #fff;
    border-top: 1px solid var(--cmc-c-line);
    box-shadow: 0 -10px 24px -18px rgba(0, 0, 0, 0.35);
}

.cmc-c-amts {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cmc-c-amt {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 16px;
    font-weight: 700;
}

.cmc-c-amt-save,
.cmc-c-amt-save .amount,
.cmc-c-amt-ship {
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--cmc-c-ok-soft);
    color: var(--cmc-c-ok);
    font-size: 13px;
    font-weight: 700;
}

.cmc-c-amt-ship {
    align-items: center;
    font-size: 15px;
}

.cmc-c-hint {
    margin: 8px 0 12px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--cmc-c-muted);
}

.cmc-c-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.cmc-c-btn {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
}

.cmc-c-btn-ghost {
    border: 1.5px solid var(--cmc-c-ink);
    background: #fff;
    color: var(--cmc-c-ink) !important;
}

.cmc-c-btn-ghost:hover {
    border-color: var(--cmc-c-hot);
    background: var(--cmc-c-hot);
    color: #fff !important;
}

.cmc-c-btn-hot {
    border: 1.5px solid var(--cmc-c-hot);
    background: var(--cmc-c-hot);
    color: #fff !important;
}

.cmc-c-btn-hot:hover {
    filter: brightness(1.05);
}

.cmc-c-btn-hot::after {
    content: "";
    position: absolute;
    top: 0;
    left: -160%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(28deg);
    animation: cmc-c-shine 6s ease-in-out infinite;
}

@keyframes cmc-c-shine {
    0%, 70% { left: -160%; }
    100% { left: 160%; }
}

.cmc-c-basket {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 100170;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: var(--cmc-c-hot);
    color: #fff;
    box-shadow: 12px 12px 22px -8px rgba(0, 0, 0, 0.38);
    cursor: pointer;
    transition: transform 0.2s ease, right 0.34s ease, opacity 0.2s ease;
}

.cmc-c-basket:hover {
    transform: translateY(-2px);
}

.cmc-c-basket.is-empty,
.cmc-c-root.is-checkout .cmc-c-basket,
body.cmc-c-open .cmc-c-basket {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.92);
}

.xoo-wsc-markup,
.xoo-wsc-modal,
.xoo-wsc-container,
.xoo-wsc-basket,
.xoo-wsc-slider,
.xoo-wsc-markup-notices {
    display: none !important;
}

.cmc-c-badge,
.cmc-c-mini-count {
    position: absolute;
    top: -8px;
    left: -8px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #fff;
    color: var(--cmc-c-hot);
    font-size: 12px;
    font-weight: 800;
    line-height: 22px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
}

.cmc-c-mini {
    display: inline-flex;
    align-items: center;
}

.cmc-c-mini .cmc-c-open {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.cmc-c-mini-count {
    top: -4px;
    left: auto;
    right: -6px;
    background: var(--cmc-c-hot);
    color: #fff;
}

.cmc-c-spin {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: rgba(255, 255, 255, 0.55);
}

.cmc-c-spin::after {
    content: "";
    position: absolute;
    top: 46%;
    left: 50%;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border: 3px solid #eee;
    border-top-color: var(--cmc-c-hot);
    border-radius: 999px;
    animation: cmc-c-spin 0.7s linear infinite;
}

.cmc-c-root.is-load .cmc-c-spin {
    display: block;
}

.cmc-c-spin[hidden] {
    display: none;
}

@keyframes cmc-c-spin {
    to { transform: rotate(360deg); }
}

body.cmc-c-open,
html.cmc-c-open {
    overflow: hidden;
}

@media (max-width: 720px) {
    .cmc-c-drawer {
        top: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        transform: translateX(100%);
    }

    .cmc-c-panel {
        border-radius: 0;
    }

    .cmc-c-btns {
        grid-template-columns: 1fr;
    }

    .cmc-c-basket {
        right: 16px;
        bottom: 16px;
        width: 54px;
        height: 54px;
    }
}
