/* LINE Inquiry Button and Popup - Complete CSS with multilingual support */
.line-inquiry-container {
    position: relative;
    display: inline-block;
}

/* Button Style - Updated to match image and support English text */
.line-inquiry-button {
    background-color: #06C755;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-width: 150px; /* Ensure consistent width for different languages */
}

/* For English text which might be longer */
html[lang="en-US"] .line-inquiry-button,
html[lang="en-GB"] .line-inquiry-button,
html[lang="en"] .line-inquiry-button {
    min-width: 180px;
    padding: 8px 12px;
    font-size: 14px;
}

.line-inquiry-button:hover {
    background-color: #05a648;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* LINE Icon */
.line-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='white' d='M272.1 204.2v71.1c0 1.8-1.4 3.2-3.2 3.2h-11.4c-1.1 0-2.1-.6-2.6-1.3l-32.6-44v42.2c0 1.8-1.4 3.2-3.2 3.2h-11.4c-1.8 0-3.2-1.4-3.2-3.2v-71.1c0-1.8 1.4-3.2 3.2-3.2H219c1.1 0 2.1.6 2.6 1.3l32.6 44v-42.2c0-1.8 1.4-3.2 3.2-3.2h11.4c1.8-.1 3.3 1.4 3.3 3.1zm-82-3.2h-11.4c-1.8 0-3.2 1.4-3.2 3.2v71.1c0 1.8 1.4 3.2 3.2 3.2h11.4c1.8 0 3.2-1.4 3.2-3.2v-71.1c0-1.7-1.4-3.2-3.2-3.2zm-27.5 59.6h-31.1v-56.4c0-1.8-1.4-3.2-3.2-3.2h-11.4c-1.8 0-3.2 1.4-3.2 3.2v71.1c0 .9.3 1.6.9 2.2.6.5 1.3.9 2.2.9h45.7c1.8 0 3.2-1.4 3.2-3.2v-11.4c0-1.7-1.4-3.2-3.1-3.2zM332.1 201h-45.7c-1.7 0-3.2 1.4-3.2 3.2v71.1c0 1.7 1.4 3.2 3.2 3.2h45.7c1.8 0 3.2-1.4 3.2-3.2v-11.4c0-1.8-1.4-3.2-3.2-3.2H301v-12h31.1c1.8 0 3.2-1.4 3.2-3.2V234c0-1.8-1.4-3.2-3.2-3.2H301v-12h31.1c1.8 0 3.2-1.4 3.2-3.2v-11.4c-.1-1.7-1.5-3.2-3.2-3.2zM448 113.7V399c-.1 44.8-36.8 81.1-81.7 81H81c-44.8-.1-81.1-36.9-81-81.7V113c.1-44.8 36.9-81.1 81.7-81H367c44.8.1 81.1 36.8 81 81.7zm-61.6 122.6c0-73-73.2-132.4-163.1-132.4-89.9 0-163.1 59.4-163.1 132.4 0 65.4 58 120.2 136.4 130.6 19.1 4.1 16.9 11.1 12.6 36.8-.7 4.1-3.3 16.1 14.1 8.8 17.4-7.3 93.9-55.3 128.2-94.7 23.6-26 34.9-52.3 34.9-81.5z'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Popup Styles */
.line-inquiry-popup {
    display: none;
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 250px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 100;
    padding: 15px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.line-inquiry-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -10px;
    border-width: 10px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.line-inquiry-popup-content {
    padding: 5px;
}

.line-inquiry-popup h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.line-qr-code {
    margin: 10px 0;
    display: flex;
    justify-content: center;
}

.line-qr-code img {
    max-width: 150px;
    height: auto;
    border: 1px solid #eee;
}

.line-inquiry-popup p {
    margin-bottom: 0;
    font-size: 14px;
    color: #666;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.line-inquiry-popup a {
    color: #06C755;
    text-decoration: none;
    word-break: break-all;
}

.line-inquiry-popup a:hover {
    text-decoration: underline;
}

/* Animation */
@keyframes fadeIn {
    from {opacity: 0; transform: translateY(10px) translateX(-50%);}
    to {opacity: 1; transform: translateY(0) translateX(-50%);}
}

/* Responsive adjustments */
@media screen and (max-width: 480px) {
    .line-inquiry-popup {
        min-width: 220px;
    }
    
    .line-qr-code img {
        max-width: 120px;
    }
    
    .line-inquiry-popup p {
        font-size: 12px;
    }
    
    html[lang="en-US"] .line-inquiry-button,
    html[lang="en-GB"] .line-inquiry-button,
    html[lang="en"] .line-inquiry-button {
        font-size: 13px;
        min-width: 160px;
    }
}