.search-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    padding: var(--space-3xs);
    box-sizing: border-box;
    min-height: 56px;
    align-items: center;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
}

.search-engine-form {
    width: 100%;
    height: 40px;
}

.search-engine-input-group {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 40px;
}

.search-engine-input-container {
    position: relative;
    flex-grow: 1;
    height: 40px;
}

#search-engine-input {
    width: 100%;
    padding: 0 20px;
    border: 1px solid #e0e0e0;
    border-radius: 0 8px 0 0;
    font-size: var(--text-sm);
    color: #333;
    background-color: #fff;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 40px;
    line-height: 40px;
}

#search-engine-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
}

.search-engine-dropdown {
    position: relative;
    min-width: 180px;
    gap: 1px;
    height: 40px;
}

#search-engine-provider {
    width: 100%;
    padding: 0 40px 0 15px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    appearance: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 40px;
    border-radius: 8px 0 0 8px;
    line-height: 40px;
}

#search-engine-provider:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
}

.search-engine-dropdown-arrow {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    pointer-events: none;
    color: #666;
    font-size: 12px;
}

.search-engine-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    background-color: var(--color-accent-400);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    height: 40px;
}

.search-engine-button:hover {
    background-color: var(--color-accent-500);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.4);
}

.suggestions-modal {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fafafa;
    border-radius: 0 0 8px 8px;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    border: 1px solid #e0e0e0;
    z-index: 1000;
    padding: 6px;
    font-size: var(--text-xs);
}

.suggestions-modal.active {
    display: block;
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #333;
    background: #fff;
    margin-bottom: 4px;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: background-color 0.2s, color 0.2s;
}

.suggestion-title {
    font-size: var(--text-sm);
    color: black;
}

.suggestion-item:last-child {
    margin-bottom: 0;
}

.suggestion-item:hover {
    background-color: #f0f7ff;
    color: #111;
}


.suggestion-item i {
    margin-left: 10px;
    color: #8c8c8c;
}

.suggestion-text {
    flex: 1;
}

.reset-button {
    background-color: #ff6b6b;
    border-radius: 8px;
    margin-right: 8px;
}

.reset-button:hover {
    background-color: #ff5252;
}


.suggestion-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 12px;    
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #f8f8f8;
  border-radius: 6px;
  cursor: pointer;
  font-size: var(--text-sm);
  white-space: nowrap;
  transition: background 0.2s;
}

.suggestion-item:hover {
  background: #e6e6e6;
}

@media (max-width: 768px) {
    .search-container {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        width: 100%;
        min-height: auto;
        padding: var(--space-xs);
        gap: 8px;
    }

    .search-engine-form {
        width: 100%;
        height: auto;
    }
    
    .search-engine-input-group {
        flex-direction: column;
        flex-wrap: nowrap;
        width: 100%;
        height: auto;
        gap: 0;
    }
    
    .search-engine-dropdown {
        min-width: 120px;
        width: auto;
        flex-shrink: 0;
        margin-bottom: 0;
        height: 40px;
    }
    
    #search-engine-provider {
        border-radius: 8px 0 0 8px;
        font-size: var(--text-xs);
    }
    
    .search-engine-input-container {
        flex-grow: 1;
        height: 40px;
    }
    
    #search-engine-input {
        border-radius: 0 8px 8px 0;
        font-size: var(--text-xs);
        width: 100%;
    }
    
    .search-button-container {
        flex-grow: 1;
        display: flex;
        flex-direction: row;
        gap: 8px;
        border: 1px solid red;
    }
    
    .search-engine-button {
        min-height: 40px;
        border-radius: 8px;
    }
    
    .suggestions-modal {
        width: 100%;
        left: 0;
        box-sizing: border-box;
    }
    
    .suggestion-title {
        font-size: var(--text-xs);
    }

    .suggestion-item {
        font-size: var(--text-xs);
        padding: 8px 10px;
    }
    
    .search-container > * {
        margin-bottom: 0;
    }
}