/* ======================================================= */
/* 💡 [Apple Style] 오타이산 최적화 CTA & PC 토스트 */
/* ======================================================= */

/* [공통] 모바일 플로팅 카드 */
#fixedCtaWrap.fixed-bottom-cta-wrap {
    position: fixed !important;
    bottom: 20px !important;
    left: 15px !important;
    right: 15px !important;
    width: calc(100% - 30px) !important;
    height: 75px !important;
    z-index: 10000 !important;
    background-color: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
    display: none; /* JS 제어 */
    align-items: center !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
    transform: translateY(120%) !important;
    opacity: 0 !important;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#fixedCtaWrap.fixed-bottom-cta-wrap.visible {
    display: flex !important;
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto;
}

/* [PC 전용] 스마트 토스트 팝업 */
.toast-popup {
    position: fixed !important; 
    bottom: 30px !important;
    right: 30px !important;
    width: 300px !important;
    height: auto !important;
    z-index: 100000 !important;
    background-color: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 15px 20px !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-popup.visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* 내부 공통 레이아웃 */
.product-image-box {
    width: 50px !important;
    height: 50px !important;
    background-color: #fff !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;    /* 수직 중앙 */
    justify-content: center !important; /* 수평 중앙 */
    flex-shrink: 0 !important;
    overflow: hidden !important;
}

.product-cta-image {
    max-width: 90% !important;
    max-height: 90% !important;
    object-fit: contain !important;
}

.text-info-box {
    flex-grow: 1 !important;
    padding: 0 12px !important;
    display: flex !important;
    flex-direction: column !important;
    text-align: left !important;
    min-width: 0 !important;
}

.cta-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1d1d1f !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.cta-subtitle {
    font-size: 12px !important;
    color: #1a5196 !important; /* 오타이산 블루 포인트 */
    font-weight: 500 !important;
    margin-top: 3px !important;
    white-space: nowrap !important;
}

/* 모바일 전용 캡슐 버튼 */
.fixed-cta-button-new {
    background-color: #1d1d1f !important;
    color: #fff !important;
    padding: 0 15px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    flex-shrink: 0 !important;
    width: 85px !important;
}

.cta-subtitle::after {
    content: ' →';
    transition: transform 0.3s ease;
}

.toast-popup:hover .cta-subtitle::after {
    transform: translateX(4px);
}

@media (max-width: 767px) {
    .toast-popup { display: none !important; }
}
@media (min-width: 768px) {
    #fixedCtaWrap.fixed-bottom-cta-wrap { display: none !important; }
}