.ccb-sidebar-menu {
    position: fixed;
    z-index: 5;
    background: #fff;
    border: 2px solid #D6D6D6;
    border-radius: 5px 0 0 5px;
}

.ccb-sidebar-menu.ccb-right {
    right: 0;
    border-right: none;
}

.ccb-sidebar-menu.ccb-left {
    left: 0;
    border-left: none;
    border-radius: 0 5px 5px 0;
}

.ccb-sidebar-menu.ccb-top {
    top: 20px;
}

.ccb-sidebar-menu.ccb-center {
    top: 50%;
    transform: translateY(-50%);
}

.ccb-sidebar-menu.ccb-bottom {
    bottom: 20px;
}

.ccb-menu-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    text-decoration: none;
    color: #333;
    background: #fff;
    border-bottom: 2px solid #D6D6D6;
    white-space: nowrap;
    transition: background-color 0.3s;
}

.ccb-menu-item:last-child {
    border-bottom: none;
}

.ccb-menu-item:hover {
    background: #F5F5F5;
}

.ccb-menu-item img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.ccb-menu-item span:not(.ccb-cart-count) {
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    width: 0;
    margin-left: 0;
    overflow: hidden;
    transition: all 0.3s;
}

.ccb-sidebar-menu:hover .ccb-menu-item span:not(.ccb-cart-count) {
    opacity: 1;
    width: auto;
    margin-left: 12px;
}

.ccb-quote-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ccb-quote-icon-wrapper img,
.ccb-quote-icon-wrapper svg {
    display: block;
}

.ccb-cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 16px;
    height: 16px;
    padding: 2px;
    background: #EF4444;
    border-radius: 50%;
    color: #fff;
    font-size: 10px;
    font-weight: 400;
    line-height: 12px;
    text-align: center;
    display: none;
    align-items: center;
    justify-content: center;
}

.ccb-cart-count.has-items {
    display: flex !important;
}

/* 悬停侧边栏时隐藏计数徽章 */
.ccb-sidebar-menu:hover .ccb-cart-count.has-items {
    display: none !important;
}

.ccb-floating-btn {
    position: fixed;
    z-index: 4;
    background: #fff;
    border: 1px solid #D6D6D6;
    border-radius: 8px;
    padding: 8px 8px 12px 8px;
    cursor: pointer;
    display: none;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ccb-floating-btn:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ccb-floating-btn img {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

.ccb-floating-btn span {
    color: #000;
    font-size: 14px;
    font-weight: 500;
}

.ccb-floating-btn.ccb-right {
    right: 2px;
}

.ccb-floating-btn.ccb-left {
    left: 2px;
}

.ccb-floating-btn.ccb-top {
    top: 20px;
}

.ccb-floating-btn.ccb-center {
    top: 50%;
    transform: translateY(-50%);
}

.ccb-floating-btn.ccb-bottom {
    bottom: 20px;
}

@media (max-width: 768px) {
    .ccb-floating-btn {
        display: flex !important;
    }
    
    .ccb-sidebar-menu {
        display: none !important;
    }
    
    .ccb-sidebar-menu.active {
        display: block !important;
    }
    
    .ccb-menu-item {
        padding: 8px 10px;
    }
    
    .ccb-menu-item img {
        width: 28px;
        height: 28px;
    }
    
    .ccb-menu-item span:not(.ccb-cart-count) {
        font-size: 12px;
        opacity: 1;
        width: auto;
        margin-left: 10px;
    }
}

.ccb-side-contact {
    position: fixed;
    z-index: 999;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.ccb-side-contact-btn {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    padding: 12px;
}

.ccb-side-contact:hover .ccb-side-contact-btn {
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.ccb-side-contact-btn img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.ccb-side-contact-btn svg {
    width: 40px;
    height: 40px;
}

.ccb-side-contact-panel {
    background: #F5F5F5;
    padding: 4px 8px 4px 40px;
    white-space: nowrap;
    border-radius: 0px;
    position: relative;
    z-index: 1;
}

.ccb-side-contact-panel h3 {
    margin: 0;
    color: var(--dc-color-text-secondary, #707070);
    font-size: var(--typography-base-sizes-extra-small-font-size, 12px);
    font-style: normal;
    font-weight: var(--font-weight-normal, 400);
    line-height: var(--typography-base-sizes-extra-small-line-height, 16px);
}

.ccb-side-contact-desc {
    margin: 0;
    color: var(--dc-color-text-brand-primary, #170057);
    font-size: var(--typography-base-sizes-base-font-size, 16px);
    font-style: normal;
    font-weight: var(--font-weight-medium, 500);
    line-height: var(--typography-base-sizes-base-line-height, 24px);
}

.ccb-side-contact-desc p {
    margin: 0;
}

.ccb-side-top {
    top: 70px;
}

.ccb-side-bottom {
    bottom: 70px;
}

.ccb-side-left {
    left: 0;
    flex-direction: row;
    transform: translateX(calc(-100% + 64px));
}

.ccb-side-left .ccb-side-contact-panel {
    margin-left: -32px;
}

.ccb-side-left:hover {
    transform: translateX(0);
}

.ccb-side-right {
    right: 0;
    flex-direction: row;
    transform: translateX(calc(100% - 64px));
}

.ccb-side-right .ccb-side-contact-panel {
    margin-left: -32px;
}

.ccb-side-right:hover {
    transform: translateX(0);
}

@media (max-width: 768px) {
    .ccb-side-contact {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .ccb-floating-btn {
        display: none !important;
    }
}