.ald-fixed-btn {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #022f7c 0%, #0347b8 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(2, 47, 124, 0.3), 0 2px 6px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 4px;
    outline: none;
}

.ald-fixed-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(2, 47, 124, 0.4), 0 4px 8px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #0347b8 0%, #022f7c 100%);
}

.ald-fixed-btn:active {
    transform: translateY(0) scale(0.98);
}

.ald-fixed-btn:focus-visible {
    outline: 3px solid rgba(2, 47, 124, 0.5);
    outline-offset: 2px;
}

.ald-fixed-btn-text {
    font-size: 9px;
    font-weight: 700;
    color: white;
    line-height: 1.3;
    letter-spacing: 0.01em;
    text-align: center;
}

.ald-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ald-modal.ald-modal-open {
    display: block;
    opacity: 1;
}

.ald-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

.ald-modal-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.ald-modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ald-modal-close:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ald-modal-close:active {
    transform: scale(0.95);
}

.ald-modal-close:focus-visible {
    outline: 3px solid rgba(2, 47, 124, 0.5);
    outline-offset: 2px;
}

.ald-modal-close-icon {
    font-size: 28px;
    line-height: 1;
    color: #333;
    font-weight: 300;
}

.ald-modal-content {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#ald-modal-wizard {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

#ald-modal-wizard .ald-card {
    border-radius: 0;
    box-shadow: none;
}

#ald-modal-wizard .ald-diagnosis-container {
    padding: 12px;
    max-width: 100%;
}

#ald-modal-wizard .ald-start-card {
    padding: 12px;
}

#ald-modal-wizard .ald-card {
    padding: 12px;
}

#ald-modal-wizard .ald-screen-result .ald-card {
    padding: 16px 12px;
}

#ald-modal-wizard .ald-recommended-card {
    margin: 0 0 16px 0;
}

#ald-modal-wizard .ald-other-item {
    margin: 0;
    padding: 12px;
}

#ald-modal-wizard .ald-result-container {
    padding: 0;
}

#ald-modal-wizard .ald-other-products {
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .ald-fixed-btn {
        bottom: 100px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
    
    .ald-fixed-btn-text {
        font-size: 9px;
    }
    
    .ald-modal-container {
        padding: 20px;
    }
    
    .ald-modal-content {
        max-width: 560px;
        max-height: 85vh;
    }
    
    .ald-modal-close {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
    
    .ald-modal-close-icon {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .ald-fixed-btn {
        bottom: 100px;
        right: 20px;
        width: 56px;
        height: 56px;
    }
    
    .ald-fixed-btn-text {
        font-size: 9px;
    }
    
    .ald-modal-container {
        padding: 16px;
    }
    
    .ald-modal-content {
        max-width: 560px;
        max-height: 85vh;
    }
    
    #ald-modal-wizard .ald-diagnosis-container {
        padding: 10px;
    }
    
    #ald-modal-wizard .ald-start-card,
    #ald-modal-wizard .ald-card {
        padding: 10px;
    }
    
    #ald-modal-wizard .ald-other-item {
        padding: 10px;
    }
}

body.ald-modal-active {
    overflow: hidden;
}
