/* Samil Contact Icon Module CSS - CSS-only solution */

.samil-contact-widget {
    position: fixed;
    bottom: 10px;
    right: 20px;
    z-index: 1000;
}

/* Hidden checkbox for toggle state */
.samil-contact-toggle {
    display: none;
}

/* Mobile overlay backdrop */
.samil-contact-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Floating contact icon */
.samil-contact-icon {
    width: 60px;
    height: 60px;
    background: #fff002;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    color: #282828;
}

.samil-contact-icon:focus {
    outline: 2px solid #0056b3;
    outline-offset: 2px;
}

.samil-contact-icon:hover {
    background: #e6d800;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    transform: scale(1.05);
}

.samil-contact-icon svg {
    width: 28px;
    height: 28px;
}

/* Contact panel */
.samil-contact-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 450px;
    max-width: calc(100vw - 20px);
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.samil-contact-toggle:checked ~ .samil-contact-overlay {
    opacity: 1;
    visibility: visible;
}

.samil-contact-toggle:checked ~ .samil-contact-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Panel header */
.samil-contact-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.samil-contact-panel-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.samil-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    color: #666;
}

.samil-close-btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.samil-close-btn:hover {
    background: #e9ecef;
    color: #333;
}

.samil-close-btn svg {
    width: 16px;
    height: 16px;
}

/* Panel content */
.samil-contact-panel-content {
    padding: 20px;
    max-height: 475px;
    overflow-y: auto;
}

.samil-contact-panel-content .contact-item {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.samil-contact-panel-content .contact-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.samil-contact-panel-content .contact-item strong {
    display: block;
    margin-bottom: 4px;
    color: #333;
    font-size: 14px;
}

.samil-contact-panel-content .contact-item a {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.samil-contact-panel-content .contact-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    .samil-contact-overlay {
        display: block;
    }
    
    .samil-contact-panel {
        width: calc(100vw - 20px);
        max-width: none;
        right: 0px;
    }
}

@media (max-width: 480px) {
    .samil-contact-widget {
        bottom: 10px;
        right: 10px;
    }

    .samil-contact-icon {
        width: 50px;
        height: 50px;
    }

    .samil-contact-icon svg {
        width: 24px;
        height: 24px;
    }

    .samil-contact-panel {
        width: calc(100vw - 20px);
        max-width: none;
        right: 0px;
        bottom: 70px;
    }
}
