.cc-cart-calculate {
    margin: 22px 0;
    width: 100%;
    max-width: 430px;
    font-family: inherit;
}

.cc-color-section {
    margin: 0 0 22px 0;
}

.cc-color-header,
.cc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.cc-color-header span,
.cc-header span {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #111;
}

.cc-color-header small,
.cc-header small {
    font-size: 12px;
    color: #777;
    text-align: right;
}

.cc-color-swatches {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.cc-color-swatch {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 999px;
    border: 2px solid transparent;
    background: transparent;
    padding: 2px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    box-shadow: none;
}

.cc-color-swatch span {
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: var(--cc-swatch-color);
    border: 1px solid rgba(0,0,0,0.10);
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.cc-color-swatch.cc-active {
    border-color: #111;
}

.cc-color-swatch.cc-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.cc-color-swatch:hover {
    transform: translateY(-1px);
}

.cc-size-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.cc-size-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 44px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    box-sizing: border-box;
}

.cc-size-item.cc-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.cc-size-label {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    min-width: 36px;
}

.cc-qty-control {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cc-qty-btn {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    background: #fff;
    color: #111;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.15s ease;
}

.cc-qty-btn:hover {
    border-color: #111;
}

.cc-qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.cc-qty-input {
    width: 38px !important;
    height: 30px !important;
    min-height: 30px !important;
    text-align: center;
    border: 1px solid #e3e3e3 !important;
    border-radius: 6px !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 600;
    background: #fff !important;
    box-shadow: none !important;
    -moz-appearance: textfield;
}

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

.cc-stock-warning {
    display: none;
    margin: 14px 0 0 0;
    padding: 10px 12px;
    background: #fff1f1;
    border: 1px solid #f0b9b9;
    border-radius: 8px;
    color: #d63638;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.cc-stock-warning.cc-show {
    display: block;
}

.cc-total-box {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.cc-total-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 10px;
}

.cc-total-row div:last-child {
    text-align: right;
}

.cc-total-row span {
    display: block;
    font-size: 13px;
    color: #777;
    margin-bottom: 3px;
}

.cc-total-row strong {
    display: block;
    font-size: 24px;
    line-height: 1.1;
    color: #111;
}

.cc-min-message {
    margin: 10px 0 14px 0;
    font-size: 13px;
    font-weight: 600;
    color: #d63638;
    line-height: 1.4;
}

.cc-min-message.cc-success {
    color: #008a20;
}

.cc-error-message {
    display: none;
    margin: 10px 0 14px 0;
    font-size: 13px;
    font-weight: 600;
    color: #d63638;
    line-height: 1.4;
}

.cc-error-message.cc-show {
    display: block;
}

.cc-add-to-order {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 8px;
    background: #111;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cc-add-to-order:hover {
    opacity: 0.9;
}

.cc-add-to-order:disabled {
    background: #9aa0a6;
    cursor: not-allowed;
    opacity: 1;
}

.variations_form.cart .cc-size-attribute-row,
.variations_form.cart .cc-color-attribute-row {
    display: none !important;
}

.variations_form.cart .cc-hide-default-add .quantity,
.variations_form.cart .cc-hide-default-add .single_add_to_cart_button,
.variations_form.cart .cc-hide-default-add .single_variation {
    display: none !important;
}

@media (max-width: 480px) {
    .cc-cart-calculate {
        max-width: 100%;
    }

    .cc-color-header,
    .cc-header {
        align-items: flex-start;
    }

    .cc-color-swatches {
        gap: 10px;
    }

    .cc-color-swatch {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    .cc-color-swatch span {
        width: 28px;
        height: 28px;
    }

    .cc-size-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .cc-size-item {
        padding: 8px;
    }

    .cc-size-label {
        min-width: 28px;
        font-size: 13px;
    }

    .cc-qty-btn {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }

    .cc-qty-input {
        width: 34px !important;
        height: 28px !important;
    }
}
