/* 전체 래퍼: 중앙 정렬 및 여백 */
.csb-wrapper {
    text-align: center;
    margin: 30px auto;
    width: 100%;
    max-width: 300px;
}

/* 배너 컨테이너 */
.csb-container {
    position: relative;
    width: 300px;
    height: 250px; 
    margin: 0 auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    background-color: #fff;
    cursor: pointer;
    user-select: none; 
}

/* 뒷면 이미지 */
.csb-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.csb-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 앞면 (슬라이딩 영역) */
.csb-front {
    position: absolute;
    top: 0;
    left: 0; 
    width: 100%;
    height: 100%;
    z-index: 10;
    background-color: transparent;
    will-change: left; 
}

.csb-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    display: block;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1); 
    
    /* [추가됨] 약간 투명하게 설정 */
    opacity: 0.95; 
    transition: opacity 0.3s;
}

/* 말풍선 */
.csb-bubble {
    position: absolute;
    top: 40%;
    right: 20px;
    background: #ff3300;
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 20;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    /* 말풍선 깜빡임 애니메이션 */
    animation: csb-blink 1.5s infinite alternate;
}
.csb-bubble::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 6px solid #ff3300;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

@keyframes csb-blink {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.1); opacity: 0.9; }
}

/* 화살표 아이콘 영역 */
.csb-arrow-box {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(50%, -50%); 
    width: 50px;
    height: 50px;
    z-index: 15;
}
.csb-arrow-circle {
    width: 36px;
    height: 36px;
    background: orange;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 하단 문구 */
.csb-footer {
    font-size: 11px;
    color: #aaa;
    margin-top: 8px;
    line-height: 1.4;
}