/* Expandable Search Button - Apple Liquid Flow Style */
.dh-search-expandable {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: white;
    border-radius: 28px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    overflow: hidden;
    z-index: 99999;
}

.dh-search-expandable:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.dh-search-expandable.expanded {
    width: 400px;
    border-radius: 28px;
}

.dh-search-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--dh-primary-color);
    cursor: pointer;
}

.dh-search-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.dh-search-input {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent;
    font-size: 16px;
    width: 0;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
}

.dh-search-expandable.expanded .dh-search-input {
    width: 300px;
    opacity: 1;
    padding: 0 10px;
}

.dh-search-close {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--dh-text-light);
    flex-shrink: 0;
}

.dh-search-expandable.expanded .dh-search-close {
    opacity: 1;
}

.dh-search-close:hover {
    color: var(--dh-primary-color);
}

.dh-search-close .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .dh-search-expandable {
        bottom: 90px;
        right: 20px;
    }
    
    .dh-search-expandable.expanded {
        width: calc(100vw - 40px);
        right: 20px;
    }
    
    .dh-search-expandable.expanded .dh-search-input {
        width: calc(100% - 96px);
    }
}