/* ========================================
   서비스 바로가기 버튼 (폐차견적, 내차팔기)
   - 기존 floating-buttons 바로 위에 표시
   - 카톡상담/전화상담과 동일한 스타일
   ======================================== */

/* 서비스 버튼 컨테이너 */
.service-floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 264px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9990;
    transition: bottom 0.3s ease;
}

.service-floating-buttons.with-bar {
    bottom: 344px;
}

/* 서비스 버튼 - 기존 floating-btn과 동일한 크기 */
.service-btn {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.service-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.35);
}

.service-btn:active {
    transform: translateY(-1px);
}

.service-btn i {
    font-size: 24px;
}

.service-btn-text {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: -0.3px;
    line-height: 1.2;
    text-align: center;
	   margin-top: -8px;
}

/* 폐차견적 버튼 - 레드 계열 */
.service-btn.pecha {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}

.service-btn.pecha i {
    color: white;
}

.service-btn.pecha .service-btn-text {
    color: white;
}

/* 내차팔기 버튼 - 블루 계열 */
.service-btn.sellcar {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.service-btn.sellcar i {
    color: white;
}

.service-btn.sellcar .service-btn-text {
    color: white;
}

/* ========================================
   Mobile Responsive - 중앙 우측 배치
   ======================================== */
@media (max-width: 768px) {
    .service-floating-buttons {
        right: 16px;
        bottom: auto;
        top: 50%;
        transform: translateY(calc(-50% - 70px)); /* 4개 버튼 중 위쪽 2개 */
        gap: 10px;
    }
    
    .service-floating-buttons.with-bar {
        bottom: auto;
        top: 50%;
        transform: translateY(calc(-50% - 70px));
    }
    
    .service-btn {
        width: 60px;
        height: 60px;
        border-radius: 14px;
    }
    
    .service-btn i {
        font-size: 20px;
    }
    
    .service-btn-text {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .service-floating-buttons {
        right: 12px;
        transform: translateY(calc(-50% - 66px)); /* 56px + 10px gap */
    }
    
    .service-floating-buttons.with-bar {
        transform: translateY(calc(-50% - 66px));
    }
    
    .service-btn {
        width: 56px;
        height: 56px;
        border-radius: 12px;
    }
    
    .service-btn i {
        font-size: 18px;
    }
    
    .service-btn-text {
        font-size: 10px;
    }
}

/* ========================================
   RTL Support (Arabic)
   ======================================== */
   /*
[data-lang="ar"] .service-floating-buttons {
    right: auto;
    left: 20px;
}

@media (max-width: 768px) {
    [data-lang="ar"] .service-floating-buttons {
        left: 16px;
    }
}

@media (max-width: 480px) {
    [data-lang="ar"] .service-floating-buttons {
        left: 12px;
    }
}*/

/* ========================================
   Small Height Screens (폴더폰 등)
   ======================================== */
@media (max-height: 700px) and (max-width: 768px) {
    .service-floating-buttons {
        gap: 6px;
        transform: translateY(calc(-50% - 54px));
    }
    
    .service-btn {
        width: 48px;
        height: 48px;
        border-radius: 10px;
    }
    
    .service-btn i {
        font-size: 16px;
    }
    
    .service-btn-text {
        font-size: 9px;
    }
}

@media (max-height: 600px) and (max-width: 768px) {
    .service-floating-buttons {
        gap: 4px;
        transform: translateY(calc(-50% - 48px));
    }
    
    .service-btn {
        width: 44px;
        height: 44px;
        border-radius: 8px;
    }
    
    .service-btn i {
        font-size: 14px;
    }
    
    .service-btn-text {
        font-size: 8px;
    }
}